歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> KVM虛擬機在線更改iso

KVM虛擬機在線更改iso

日期:2017/2/28 15:33:06   编辑:Linux教程

解釋:guest01代表需更改的虛機名,*.iso為需添加的iso

如果報錯:

virsh # attach-disk ICCS-PM /gfs/sysdisk/installdisk-pool/cn_win_srv_2003_r2_enterprise_with_sp2_vl_cd2.iso hdc --driver file --type cdrom --mode readonly

錯誤:Failed to attach disk

錯誤:internal error unsupported driver name 'file' for disk '/gfs/sysdisk/installdisk-pool/cn_win_srv_2003_r2_enterprise_with_sp2_vl_cd2.iso'

取消--driver file參數即可

-----------------------------------------------------------------

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

Copyright © Linux教程網 All Rights Reserved