core-admin/qubes/ext
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
..
__init__.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00
admin.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
block.py ext/block: prefer connecting cdrom as xvdd 2019-11-19 14:03:21 +01:00
core_features.py ext/core-features: make 'template-postinstall' event async 2018-11-15 18:25:29 +01:00
gui.py gui: make pylint happy 2019-11-11 11:27:40 +01:00
pci.py ext/pci: fix error message about missing device 2018-11-01 22:28:50 +01:00
qubesmanager.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
r3compatibility.py Do not generate R3 compat firewall rules if R4 format is supported 2018-10-15 06:05:05 +02:00
services.py ext/services: add automatic migration meminfo-writer=False -> maxmem=0 2018-11-21 02:13:25 +01:00
windows.py factor out utils.coro_maybe() 2019-06-28 10:29:24 +00:00