...
wget http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/bin/virtio-win-0.1-30.iso
7. virsh edit ecology_master
Now we should connect master disk as IDE (so that windows able to boot without BSOD) and connect additional virtio disk to let windows install and load virtio drivers at the same time.
Also we connect cdrom with virtio drivers.
Replace existing disk tag with the following :
Add disks temporary:
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/vg_storage/ecology_master'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/mnt/storage/disk.img'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/mnt/storage/iso/virtio-win-0.1-30.iso'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' unit='0'/>
</disk>
8. virsh start ecology_master
9. Check VNC port with
virsh vncdisplay ecology_master
Make a tunnel via putty port 5900 (5900 + N)
Connect with VNC Viewer to localhost:N
Check Windows started and install drivers from CD-ROM
Shutdown windows
10. Now when virtio drivers has been installed we switch master disk to virtio and disconnect second disk from disk.img. CD-ROM will remain for future use.
virsh edit ecology_master
Remove
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/mnt/storage/disk.img'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
Replace
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/vg_storage/ecology_master'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
with Initial disk
<disk type='block' device='disk'>
<driver name='qemu' type='raw'/>
<source dev='/dev/vg_storage/ecology_master'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</disk>
11. Start windows and check it works
12. Copy existing template to new
cd /opt/VCI/etc/templates
cp ./oraclient-win7/ ./ecology -R
13. Fix ./ecology/env.sh
- change LVM_MASTER and VM_MEMORY if required
14. Fix ./ecology/ip.reg.template
- change Interface GUID. Take from target master VM ([HKEY_LOCAL_MACHINE\SYSTEM
\ControlSet001\services\Tcpip\Parameters\Interfaces\)
15. Fix ./ecology/template.xml
- change tags <name> and <description>
16. Execute /opt/VCI/etc/reload.sh
...