diff --git a/lib/vagrant-libvirt/templates/domain.xml.erb b/lib/vagrant-libvirt/templates/domain.xml.erb index fc23b61..63afa75 100644 --- a/lib/vagrant-libvirt/templates/domain.xml.erb +++ b/lib/vagrant-libvirt/templates/domain.xml.erb @@ -8,6 +8,14 @@ <% 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| %> <% end %>