core-admin/qubes/tests/vm
Marek Marczykowski-Górecki 6c7af109e5
ext/block: prefer connecting cdrom as xvdd
Only first 4 disks can be emulated as IDE disks by QEMU. Specifically,
CDROM must be one of those first 4 disks, otherwise it will be
ignored. This is especially important if one wants to boot the VM from
that CDROM.
Since xvdd normally is a kernel-related volume (boot image, modules) it
makes perfect sense to re-use it for CDROM. It is either set for kernel
volume (in which case, VM should boot from it and not the CDROM), or
(possibly bootable) CDROM.

This needs to be done in two places:
 - BlockExtension for dynamic attach
 - libvirt xen.xml - for before-boot attach

In theory the latter would be enough, but it would be quite confusing
that device will get different options depending on when it's attached
(in addition to whether the kernel is set - introduced here).

This all also means, xvdd not always is a "system disk". Adjust listing
connected disks accordingly.
2019-11-19 14:03:21 +01:00
..
mix vm/mix/net: prevent setting provides_network=false if qube is still used 2018-12-06 20:37:50 +01:00
__init__.py tests: make libvirt mockup more robust 2019-09-10 03:34:11 +02:00
adminvm.py tests: AdminVM.run_service*() 2019-06-21 20:45:38 +02:00
appvm.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
dispvm.py Don't fail create/clone if /var/lib/qubes/TYPE/NAME/ exists 2018-01-21 22:28:47 +00:00
init.py qubes/features: check_with_(template_and_)adminvm 2018-12-20 18:28:33 +01:00
qubesvm.py ext/block: prefer connecting cdrom as xvdd 2019-11-19 14:03:21 +01:00