[DRE-commits] [vagrant-libvirt] 75/104: Support AMD and Intel processors with nested vm's

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:55:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag 0.0.11
in repository vagrant-libvirt.

commit aac710e4542426746f73a4695141ca6352baa843
Author: Jordan Tardif <jordan at dreamhost.com>
Date:   Sat Sep 21 02:12:31 2013 -0400

    Support AMD and Intel processors with nested vm's
    
    Use a more generic model and optional vmx or svm feature.
---
 lib/vagrant-libvirt/templates/domain.xml.erb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/vagrant-libvirt/templates/domain.xml.erb b/lib/vagrant-libvirt/templates/domain.xml.erb
index 5c4a3d8..f8a7820 100644
--- a/lib/vagrant-libvirt/templates/domain.xml.erb
+++ b/lib/vagrant-libvirt/templates/domain.xml.erb
@@ -4,9 +4,10 @@
   <vcpu><%= @cpus %></vcpu>
 
   <% if @nested %>
-    <cpu match='exact'>
-      <model>core2duo</model>
-      <feature policy='require' name='vmx'/>
+    <cpu mode='host-passthrough'>
+      <model fallback='allow'>qemu64</model>
+      <feature policy='optional' name='vmx'/>
+      <feature policy='optional' name='svm'/>
     </cpu>
   <% end %>
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-libvirt.git



More information about the Pkg-ruby-extras-commits mailing list