You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bea778d
Browse filesBrowse the repository at this point in the historyBrowse files
server,kvm: Calculate the device id of the config drive ISO
The config drive ISO is attached as a CD-ROM, but its device id was
hardcoded to 4.
The config drive ISO is now the CD-ROM following the ones of the ISOs, so
its device id is the primary CD-ROM device id plus the number of the CD-ROMs
of the ISOs (TemplateManager.getConfigDriveDeviceId). The number of the CD-ROMs
of the ISOs is 1 as only one ISO can be attached to an Instance, so the
device id of the config drive ISO is still 4.
The number of CD-ROM devices of an Instance (TemplateManager.getVmCdromCount)
includes the config drive ISO, so the device ids reserved for the volumes
follow it, and the volume device id allocator does not need to know about the
config drive any more.
The KVM agent finds the config drive CD-ROM by the path of its ISO, and keeps
its label and bus when refreshing it, instead of using the hardcoded id 4 and
the label hdd (which does not match the SATA CD-ROMs of UEFI Instances).
0 commit comments