Virt-install
**************
qemu-img create -f qcow2 win7.img 15G
virt-install --connect qemu:///system \--name WIN7KVM --ram 2048 --vcpus=2 --cpuset=auto \
--disk path=/var/lib/libvirt/images/win7.img,bus=virtio \
--network=network=openstackvms,model=virtio,mac=RANDOM \
--graphics vnc,port=5903 \
--disk device=cdrom,path=/home/boris/isos/virtio-win-0.1-81.iso \
--disk device=cdrom,path=/home/boris/isos/Win7.iso \
--os-type=windows --os-variant=win7 --boot cdrom,hd
[boris@juno2 ~]$ virt-install --connect qemu:///system \
> --name WIN7KVM --ram 2048 --vcpus=2 --cpuset=auto \
> --disk path=/var/lib/libvirt/images/win7.img,bus=virtio \
> --network=network=openstackvms,model=virtio,mac=RANDOM \
> --graphics vnc,port=5904 \
> --disk device=cdrom,path=/home/boris/isos/virtio-win-0.1-81.iso \
> --disk device=cdrom,path=/home/boris/isos/Win7.iso \
> --os-type=windows --os-variant=win7 --boot cdrom,hd
Starting install...
Creating domain... | 0 B 00:00:00
(virt-viewer:4713): Gtk-WARNING **: Attempting to add a widget with type VncDisplay to a container of type VirtViewerDisplayVnc, but the widget is already inside a container of type VirtViewerDisplayVnc, please use gtk_widget_reparent()
Domain creation completed. You can restart your domain by running:
virsh --connect qemu:///system start WIN7KVM
************************
Virt-Manager
************************
Convertion raw => qcow2
qemu-img convert -f raw -O qcow2 Windows7.img Windows7.qcow2
virsh edit Windows7 => /var/lib/libvirt/images/Windows7.qcow2
Update Virt-manager page Virtio Disk1=>Advanced Options=>Storage format=>qcow2