创建磁盘(qcow2格式)
qemu-img create -f qcow2 win7.qcow2 100G
系统安装(加载光盘镜像,加载软盘驱动,添加网卡)
sudo kvm -m 2048 -drive if=virtio,file=win7.img -cdrom cn_windows_7_ultimate_x64_dvd_x15-66043.iso -fda virtio-win-1.1.16.vfd -net nic,model=virtio,macaddr=DE:AD:AF:22:33:33 -net tap,vlan=0,ifname=tap0,script=no -boot order=cd -nographic -vnc :14 -localtime
网卡驱动
sudo kvm -m 2048 -drive if=virtio,file=win7.img -cdrom virtio-win-0.1-100.iso -net nic,model=virtio,macaddr=DE:AD:AF:22:33:33 -net tap,vlan=0,ifname=tap0,script=no -boot order=cd -nographic -vnc :14 -localtime
启动一个系统
sudo kvm -m 2048 -drive if=virtio,file=win7.img -cdrom cn_windows_7_ultimate_x64_dvd_x15-66043.iso -net nic,model=virtio,macaddr=DE:AD:AF:22:33:33 -net tap,vlan=0,ifname=tap0,script=no -boot order=d -nographic -vnc :14 -localtime
转换qcow2
qemu-img create -f qcow2 win7.qcow2 100G
系统安装(加载光盘镜像,加载软盘驱动,添加网卡)
sudo kvm -m 2048 -drive if=virtio,file=win7.img -cdrom cn_windows_7_ultimate_x64_dvd_x15-66043.iso -fda virtio-win-1.1.16.vfd -net nic,model=virtio,macaddr=DE:AD:AF:22:33:33 -net tap,vlan=0,ifname=tap0,script=no -boot order=cd -nographic -vnc :14 -localtime
网卡驱动
sudo kvm -m 2048 -drive if=virtio,file=win7.img -cdrom virtio-win-0.1-100.iso -net nic,model=virtio,macaddr=DE:AD:AF:22:33:33 -net tap,vlan=0,ifname=tap0,script=no -boot order=cd -nographic -vnc :14 -localtime
启动一个系统
sudo kvm -m 2048 -drive if=virtio,file=win7.img -cdrom cn_windows_7_ultimate_x64_dvd_x15-66043.iso -net nic,model=virtio,macaddr=DE:AD:AF:22:33:33 -net tap,vlan=0,ifname=tap0,script=no -boot order=d -nographic -vnc :14 -localtime
转换qcow2