Kvm虚拟机挂载临时急救iso启动的方法:
首先去到宿主机
编辑虚机文件virsh edit vis-18-32-6
1 <disk type='file' device='cdrom'>
2 <driver name='qemu' type='raw'/>
3 <target dev='hda' bus='ide'/>
4 <readonly/>
5 <address type='drive' controller='0' bus='0' target='0' unit='0'/>
6 </disk>
在target下面增加一行source:
1 <disk type='file' device='cdrom'>
2 <driver name='qemu' type='raw'/>
3 <target dev='hda' bus='ide'/>
4 <source file="/export/kvm/systemrescuecd-x86-5.2.2.iso"/>
5 <readonly/>
6 <address type='drive' controller='0' bus='0' target='0' unit='0'/>
7 </disk>
再修改boot为cdrom,改回去则是hd
1 <os>
2 <type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>
3 <boot dev='cdrom'/>
4 </os>
然后启动虚机就可以了。