KVM虚拟机在线更改iso

  • Post author:
  • Post category:其他



Add CDROM:

#virsh

attach-disk guest01 /root/disc1.iso hdc –driver file –type cdrom

–mode readonly


Change CDROM:

attach-disk guest01 /root/disc2.iso hdc –driver file –type cdrom

–mode readonly


Remove CDROM:

attach-disk guest01 ” ” hdc –driver file –type cdrom

–mode readonly




attach-disk 虚拟机名字 /home/kvm/soft/RHEL4.7.iso hdc –driver file –type cdrom –mode readonly