diff --git a/lib/vagrant-libvirt/templates/domain.xml.erb b/lib/vagrant-libvirt/templates/domain.xml.erb index ee159ad..63afa75 100644 --- a/lib/vagrant-libvirt/templates/domain.xml.erb +++ b/lib/vagrant-libvirt/templates/domain.xml.erb @@ -9,8 +9,12 @@ <% if @cpu_mode != 'host-passthrough' %> <% if @cpu_mode == 'custom' %><%= @cpu_model %><% end %> <% if @nested %> - - + <% if @cpu_features.select{|x| x[:name] == 'vmx'}.empty? %> + + <% end %> + <% if @cpu_features.select{|x| x[:name] == 'svm'}.empty? %> + + <% end %> <% end %> <% @cpu_features.each do |cpu_feature| %>