[pve-devel] Pre select virtio-blk and virtio-net when creating a VM and the Os Type is a modern Linux

Emmanuel Kasper e.kasper at proxmox.com
Wed Jul 6 10:32:06 CEST 2016


Hi

This patch series adds capabilities to store Qemu Wizard Defaults, and use these capabilities
to set virtio by default for Linux machines.

Implementation:
We listen for the 'change' event sent by the 'l26' ( Linux 2.6+ ) radio
box, and changes the value of the target controller.
Deselecting 'l26' makes the target controller value be reset to the OS generic
defaults. This works correctly because all panels belonging to the wizard
are available in the DOM from the begining, and because the OS selection panel
is before the hard disk and network card panels.

Please note that if for instance, you select the Linux OS, then select
a alternate controller, then go back and switch to another OS, then
your alternate controller selection is lost. This is intentional as
it would leave the user wiht a suboptimal controller ( ie VirtIO still selected
when you create a Other OS machine type )

This is similar to oVirt/VirtualBox who preselect different kind of controllers
based on target guest OS.





More information about the pve-devel mailing list