Вы просматриваете старую версию данной страницы. Смотрите текущую версию.

Сравнить с текущим просмотр истории страницы

Версия 1 Следующий »

This instruction specific to MAI VCI classroom

 

1. For windows XP:
- Replace HDD Controller with Standard IDE
- Set 'Start' value to '4' for:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Processor
Or
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Intelppm

For windows 7:
- Replace HDD Controller with Standard IDE

2. Share VHD disk file on windows server

3. Go to Linux server, run
smbget smb://HVServer/shared/Ecology.vhd

4. Create volume for master disk
lvcreate --size 4196M --name /dev/vg_storage/ecology_master

5. Convert VHD disk to Volume
qemu-img convert -p -f vpc -O raw Ecology.vhd /dev/vg_storage/ecology_master

6. Create Master VM
virt-install \
--name ecology_master \
--ram 512 \
--os-type=windows --os-variant=winxp \
--vcpus 1 \
--disk /dev/vg_storage/ecology_master,device=disk,bus=virtio,format=raw \
--network network=default,model=virtio \
--graphics vnc \
--noautoconsole \
--import \
--noreboot \
--debug

7. virsh edit ecology_master
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. 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




  • Нет меток