mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #528 from darkengine-io/kvm-hidden
Allow KVM hiding with the kvm_hidden attr
This commit is contained in:
commit
bc81274f6e
@ -201,6 +201,7 @@ end
|
|||||||
* `graphics_passwd` - Sets the password for the display protocol. Working for vnc and spice. by default working without passsword.
|
* `graphics_passwd` - Sets the password for the display protocol. Working for vnc and spice. by default working without passsword.
|
||||||
* `graphics_autoport` - Sets autoport for graphics, libvirt in this case ignores graphics_port value, Defaults to 'yes'. Possible value are "yes" and "no"
|
* `graphics_autoport` - Sets autoport for graphics, libvirt in this case ignores graphics_port value, Defaults to 'yes'. Possible value are "yes" and "no"
|
||||||
* `keymap` - Set keymap for vm. default: en-us
|
* `keymap` - Set keymap for vm. default: en-us
|
||||||
|
* `kvm_hidden` - [Hide the hypervisor from the guest](https://libvirt.org/formatdomain.html#elementsFeatures). Useful for GPU passthrough on stubborn drivers. Default is false.
|
||||||
* `video_type` - Sets the graphics card type exposed to the guest. Defaults to "cirrus". [Possible values](http://libvirt.org/formatdomain.html#elementsVideo) are "vga", "cirrus", "vmvga", "xen", "vbox", or "qxl".
|
* `video_type` - Sets the graphics card type exposed to the guest. Defaults to "cirrus". [Possible values](http://libvirt.org/formatdomain.html#elementsVideo) are "vga", "cirrus", "vmvga", "xen", "vbox", or "qxl".
|
||||||
* `video_vram` - Used by some graphics card types to vary the amount of RAM dedicated to video. Defaults to 9216.
|
* `video_vram` - Used by some graphics card types to vary the amount of RAM dedicated to video. Defaults to 9216.
|
||||||
* `machine` - Sets machine type. Equivalent to qemu `-machine`. Use `qemu-system-x86_64 -machine help` to get a list of supported machines.
|
* `machine` - Sets machine type. Equivalent to qemu `-machine`. Use `qemu-system-x86_64 -machine help` to get a list of supported machines.
|
||||||
|
@ -57,6 +57,7 @@ module VagrantPlugins
|
|||||||
@video_type = config.video_type
|
@video_type = config.video_type
|
||||||
@video_vram = config.video_vram
|
@video_vram = config.video_vram
|
||||||
@keymap = config.keymap
|
@keymap = config.keymap
|
||||||
|
@kvm_hidden = config.kvm_hidden
|
||||||
|
|
||||||
# Boot order
|
# Boot order
|
||||||
@boot_order = config.boot_order
|
@boot_order = config.boot_order
|
||||||
|
@ -78,6 +78,7 @@ module VagrantPlugins
|
|||||||
attr_accessor :video_type
|
attr_accessor :video_type
|
||||||
attr_accessor :video_vram
|
attr_accessor :video_vram
|
||||||
attr_accessor :keymap
|
attr_accessor :keymap
|
||||||
|
attr_accessor :kvm_hidden
|
||||||
|
|
||||||
# Sets the max number of NICs that can be created
|
# Sets the max number of NICs that can be created
|
||||||
# Default set to 8. Don't change the default unless you know
|
# Default set to 8. Don't change the default unless you know
|
||||||
@ -140,6 +141,7 @@ module VagrantPlugins
|
|||||||
@video_type = UNSET_VALUE
|
@video_type = UNSET_VALUE
|
||||||
@video_vram = UNSET_VALUE
|
@video_vram = UNSET_VALUE
|
||||||
@keymap = UNSET_VALUE
|
@keymap = UNSET_VALUE
|
||||||
|
@kvm_hidden = UNSET_VALUE
|
||||||
|
|
||||||
@nic_adapter_count = UNSET_VALUE
|
@nic_adapter_count = UNSET_VALUE
|
||||||
|
|
||||||
@ -401,6 +403,7 @@ module VagrantPlugins
|
|||||||
@video_type = 'cirrus' if @video_type == UNSET_VALUE
|
@video_type = 'cirrus' if @video_type == UNSET_VALUE
|
||||||
@video_vram = 9216 if @video_vram == UNSET_VALUE
|
@video_vram = 9216 if @video_vram == UNSET_VALUE
|
||||||
@keymap = 'en-us' if @keymap == 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
|
@nic_adapter_count = 8 if @nic_adapter_count == UNSET_VALUE
|
||||||
|
|
||||||
# Boot order
|
# Boot order
|
||||||
|
@ -44,6 +44,11 @@
|
|||||||
<acpi/>
|
<acpi/>
|
||||||
<apic/>
|
<apic/>
|
||||||
<pae/>
|
<pae/>
|
||||||
|
<% if @kvm_hidden %>
|
||||||
|
<kvm>
|
||||||
|
<hidden state='on'/>
|
||||||
|
</kvm>
|
||||||
|
<% end %>
|
||||||
</features>
|
</features>
|
||||||
<clock offset='utc'/>
|
<clock offset='utc'/>
|
||||||
<devices>
|
<devices>
|
||||||
|
Loading…
Reference in New Issue
Block a user