ISO轉換QCOW2格式

首選建立虛擬磁盤linux

qemu-img create -f qcow2 CentOS-6.3-x86_64.qcow2 10Gwindows

其次從iso啓動鏡像centos

virt-install  --name centos-6.3 --ram 1024 --cdrom=CentOS-6.3-x86_64-bin-DVD1.iso --disk CentOS-6.3-x86_64.qcow2,format=qcow2 --graphics vnc,listen=0.0.0.0 --noautoconsole --os-type=linux --os-variant=rhel6 --check all=offide


virt-install  --name Windows2008_x64 --ram 2048 --cdrom=win2008_x64fre_server_eval_zh-cn-GRMSXEVAL_CN_DVD.iso --disk Windows2008_x64.qcow2,format=qcow2 --graphics vnc,listen=0.0.0.0 --noautoconsole --os-type=windows --os-variant=win2k8 --check all=ofform

查看vnc端口server

 virsh vncdisplay centos-6.3it

使用vnc去鏈接安裝系統console

最後關閉系統後就能夠使用QCOW2的鏡像了form

相關文章
相關標籤/搜索