kvm-img create -f raw windowsxp.img 10G
wget http://alt.fedoraproject.org/pub/alt/virtio-win/archives/virtio-win-0.1-59/virtio-win-0.1-59.iso
wget http://www.linuxwind.org/download/virtio-win-1.1.16.vfd
sudo kvm -m 1024 -cdrom windowsxp.iso -drive file=windowsxp.img,if=virtio,boot=on -fda virtio-win-1.1.16.vfd -boot d -nographic -vnc :0
我是在ubuntu下完成的,安装一个vncview即可
vncview localhost:5900
sudo kvm -m 1024 -cdrom virtio-win-0.1-59.iso -drive file=windowsxp.img,if=virtio,boot=on -net nic,model=virtio -boot d -nographic -net user -usb -usbdevice tablet -vnc :0
进入虚拟机以后,安装网卡驱动,然后驱动从CD-ROM中搜索即可
sudo kvm -m 1024 -drive file=windowsxp.img,if=virtio,boot=on -net nic,model=virtio -boot d -nographic -vnc :0
openstack的命令以最新文档为标准,网上博客难免有过时的
glance image-create --name="My WinServer" --is-public=true --container-format=ovf --disk-format=raw < windowsserver.img
另外几个常用端口