Configuring an ISO image as IPL device
Boot a guest from an ISO 9660 image following the EL Torito specification.
Before you begin
Usually, your distribution provides an ISO image of the installation DVD.
Procedure
Example
- Specify the ISO image.Configure the ISO image as a virtual DVD:
<devices> ... <controller type="scsi" model="virtio-scsi" index="4"/> <disk type="file" device="cdrom"> <driver name="qemu" type="raw" io="native" cache="none"/> <source file="/var/lib/libvirt/images/LinuxDVD1.iso"/> <target dev="sda" bus="scsi"/> <address type="drive" controller="4" bus="0" target="0" unit="0"/> <readonly/> <boot order="1"/> </disk> ... </devices>When you start the virtual server, it will be booted from this ISO image:# virsh start vserv1 --console Domain vserv1 started Initializing cgroup subsys cpuacct Linux version 3.12.4911-default (geeko@buildhost) (gcc version 4.8.5 (SUSE Linux) ) #1 SMP Fri Sep 15 20:52:43 UTC 2022 (8d714a0) setup.289988: Linux is running under KVM in 64bit mode Zone ranges: DMA [mem 0x000000000x7fffffff] Normal empty ... - Provide a disk for the guest
installation:
<disk type="block" device="disk"> <driver name="qemu" type="raw" cache="none" io="native" iothread="2"/> <source dev="/dev/mapper/36005076305ffc1ae00000000000021d7"/> <target dev="vdb" bus="virtio"/> <address type="ccw" cssid="0xfe" ssid="0x0" devno="0xe716"/> </disk>