Installing Windows on KVM
How to install Windows
virt-install -n iis1 -r 1048 --disk
path=/var/kvm/images/iis1.img,bus=virtio,cache=none,sparse=false,size=20,format=raw
--vcpus=1 --os-type windows --os-variant=win2k8 --hvm --vnc --network network=default,model=virtio -c /var/kvm/en_windows_server_2012_x64.iso
--noautoconsole
Switching CD-roms for drivers
Since we are using VIRTIO you will need
to switch CD-rom during the installation phase
virsh attach-disk iis1
/var/kvm/virtio-win-0.1-52.iso hdc --driver qemu --type cdrom --mode
readonly
You can switch back by (and continue
installation):
virsh attach-disk iis1
/var/kvm/en_windows_server_2012_x64.iso hdc --driver qemu --type
cdrom --mode readonly
Be aware that you have to mark the
drive in the installer in order to enable the "Next"
button.
Lower CPU usage
Consider removing this from the
configuration. It seems to generate many context switches.
<input type='tablet' bus='usb'/>
To edit you enter
$ virsh edit iis1
$ virsh start iis1
Making a clone
When you are done, you can make copies
by
virt-clone --original iis1 --name iis3
--file /var/kvm/images/iis3.img
Optionally you can also add a
mac-adress
--mac 52:54:00:34:11:57
Comments
Post a Comment