core-admin/qubes
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
..
api Merge branch 'devel20191029' 2019-11-12 23:11:30 +01:00
ext ext/block: prefer connecting cdrom as xvdd 2019-11-19 14:03:21 +01:00
qmemman qmemman: fix early crash 2018-01-18 17:36:37 +01:00
storage Correct inconsistent behavior on unavailable usage data 2019-11-15 20:01:43 +01:00
tests ext/block: prefer connecting cdrom as xvdd 2019-11-19 14:03:21 +01:00
tools app: setup_pools() must be a coroutine 2019-06-28 10:29:26 +00:00
vm vm: improve error message about missing IOMMU 2019-10-30 15:45:52 +01:00
__init__.py Fixed unexpected error on empty default template and incorrect error handling 2019-09-19 20:20:36 +02:00
app.py default_guivm: set to dom0 due to migration R4.0->R4.1 problems 2019-11-16 13:04:42 +01:00
backup.py Remove unused core2migration.py 2018-12-04 16:12:33 +01:00
config.py vm/adminvm: add run_service* functions 2019-06-09 21:00:02 +02:00
devices.py Make pylint happy 2019-09-27 16:29:20 +02:00
dochelpers.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00
events.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00
exc.py Throw BackupAlreadyRunningError when backup is already running 2019-11-11 19:16:03 +01:00
features.py qubes/features: check_with_(template_and_)adminvm 2018-12-20 18:28:33 +01:00
firewall.py Make pylint happy 2019-09-27 16:29:20 +02:00
log.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
rngdoc.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00
tarwriter.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
utils.py Fix invalid timezone 2019-08-06 18:23:00 -03:00