Allow KVM hiding with the kvm_hidden attr

This commit is contained in:
Simon McFarlane 2015-12-16 13:42:28 -08:00
parent 3e0c3ae4d8
commit a478c3a81d
3 changed files with 9 additions and 0 deletions

View File

@ -57,6 +57,7 @@ module VagrantPlugins
@video_type = config.video_type
@video_vram = config.video_vram
@keymap = config.keymap
@kvm_hidden = config.kvm_hidden
# Boot order
@boot_order = config.boot_order

View File

@ -78,6 +78,7 @@ module VagrantPlugins
attr_accessor :video_type
attr_accessor :video_vram
attr_accessor :keymap
attr_accessor :kvm_hidden
# Sets the max number of NICs that can be created
# Default set to 8. Don't change the default unless you know
@ -140,6 +141,7 @@ module VagrantPlugins
@video_type = UNSET_VALUE
@video_vram = UNSET_VALUE
@keymap = UNSET_VALUE
@kvm_hidden = UNSET_VALUE
@nic_adapter_count = UNSET_VALUE
@ -401,6 +403,7 @@ module VagrantPlugins
@video_type = 'cirrus' if @video_type == UNSET_VALUE
@video_vram = 9216 if @video_vram == UNSET_VALUE
@keymap = 'en-us' if @keymap == UNSET_VALUE
@kvm_hidden = false if @kvm_hidden == UNSET_VALUE
@nic_adapter_count = 8 if @nic_adapter_count == UNSET_VALUE
# Boot order

View File

@ -44,6 +44,11 @@
<acpi/>
<apic/>
<pae/>
<% if @kvm_hidden %>
<kvm>
<hidden state='on'/>
</kvm>
<% end %>
</features>
<clock offset='utc'/>
<devices>