Thursday, March 27, 2014

Creating Windows Image from ISO

Here are steps for creating windows image from ISO using virsh and qemu

1. Copy ISO to m/c
2. Create Disk file using qemu-img :
qemu-img create -f qcow2 -o preallocation=metadata windows_base_2012R2.qcow2 50G

3. Start VM using ISO:
virt-install --virt-type kvm --name windwos2012R2 --ram 2048 --cdrom=en_windows_server_2012_r2_x64_dvd_2707946.iso --disk windows_base_2012R2.qcow2,format=qcow2,cache=none --network network=default --graphics vnc,listen=0.0.0.0 --noautoconsole --os-type=windows


alternate command

virt-install --name windwos2012  --ram 2048 --cdrom /var/lib/libvirt/images/vm2/en_windows_server_2012_x64_dvd_915478.iso --disk /var/lib/libvirt/images/vm2/windows_base_2012.qcow2,bus=virtio,format=qcow2  --network  network=default,model=virtio --noautoconsole
4. use virt-manager to access GUI


Happy windows installation

No comments:

Post a Comment