CentOS6 KVM配置软驱,相关配置如下:
重点为粗体部分
- <os>
- <type arch=‘x86_64’ machine=‘rhel6.0.0’>hvm</type>
- <boot dev=‘cdrom’/>
- <boot dev=‘fd‘/> #代表软驱
- </os>
- <features>
- <acpi/>
- <apic/>
- <pae/>
- </features>
- <clock offset=‘localtime’/>
- <on_poweroff>destroy</on_poweroff>
- <on_reboot>restart</on_reboot>
- <on_crash>restart</on_crash>
- <devices>
- <emulator>/usr/libexec/qemu-kvm</emulator>
- <disk type=‘file’ device=‘disk’>
- <driver name=‘qemu’ type=‘qcow2’ cache=‘none’/>
- <source file=‘/gfs/sysdisk/sysdisk-pool/virtio-xp2.img’/>
- <target dev=‘hda’ bus=‘ide’/>
- <address type=‘drive’ controller=‘0’ bus=‘0’ unit=‘0’/>
- </disk>
- <disk type=‘file’ device=‘cdrom’>
- <driver name=‘qemu’ type=‘raw’/>
- <source file=‘/gfs/sysdisk/installdisk-pool/custom-xp-sp3.iso’/>
- <target dev=‘hdc’ bus=‘ide’/>
- <readonly/>
- <address type=‘drive’ controller=‘0’ bus=‘1’ unit=‘0’/>
- </disk>
- <disk type=‘file’ device=‘floppy‘>
- <driver name=‘qemu’ type=‘raw’/>
- <source file=‘/gfs/sysdisk/installdisk-pool/virtio-win-1.5.3.vfd’/>
- <target dev=‘fda‘ bus=‘fdc‘/>
- <address type=‘drive’ controller=‘0’ bus=‘0’ unit=‘0’/>
- </disk>