Creating Windows Instances¶
- Creating Windows Instances
Copy installer ISO /stuff/cdimages¶
Download the iso image via the network or plug in the usb-flash with the image (it will be automatically mounted to /media/usb).
Copy the image into /stuff/cdimages.
To transfer the files you can use the visual file manager "mc".
If you wish to make the copy of a real CD-ROM, then use the command
# dd if=/dev/cdrom of=/stuff/cdimages/Image.iso
The name of the CD-drive may be /dev/cdrom, /dev/scd0 or other. To figure out the drive's device name, plug in the CD-ROM into the drive, then wait several seconds and check the log of the kernel:
# dmesg|tail -20
Copy the image on the both cluster nodes - otherwise the instance will not start.
Use the comand
gnt1# scp /stuff/cdimages/Image.iso gnt2:/stuff/cdimages/Image.iso
or the command
gnt-cluster copyfile /stuff/cdimages/Image.iso
but the last is available only on the master node.
Add new instance¶
gnt-instance add -t drbd --disk=0:size=20g --net=0:link=xen-lan -H xen-hvm:cdrom_image_path=/stuff/cdimages/ru_win_srv_2008_r2_sp2.iso,boot_order=cd,disk_type=ioemu,use_localtime=true -o windows+default -B memory=8g --no-ip-check --no-name-check -n gnt1:gnt2 INSTANCE
Connect to instance vnc console and install the system¶
You should use vncviewer to connect vnc console (e.g. from xtightvncviewer package).
address and port:
# gnt-instance info INSTANCE|grep vnc
On windows we recommend to use ultravnc:
GPLPV Driver install¶
After install you should add the PV-drivers in system.
We suggest to use the signed drivers from Uniention: http://wiki.univention.de/index.php?title=Installing-signed-GPLPV-drivers
This drivers are already placed into your distribution in the file /stuff/cdimages/gplpv.iso, you don't need to download them again.
There is no additional actions after install.
You must reboot twice and check that disks in device manager your disk drives have disk type consist XEN word.
# gnt-instance modify -H cdrom_image_path='/stuff/cdimages/gplpv.iso' INSTANCE
and reboot the instance.
Upon the drivers installation no additional manipulations are needed.
After the installations you should reboot the instance twice and then check the "Devices" in the "Computer/Properties" - the disk should contain the word "XEN".
With the pv-drivers installed, the system will support the correct instance shutdown from the gom0 via the commands "gnt-instance shutdown" and "xm shutdown".
After install you may detach the iso image:
# gnt-instance modify -H boot_order=c cdrom_image_path='' INSTANCE
Disable TaskOffload and TX Offloas¶
Without it there will be lags in rdp and in other tasks.
1. Load the Windows Registry editor - regedit.
2. Add a new DWORD key named DisableTaskOffload with a value of 1 to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
3. Restart server.
TX Offload May be disabled in NIC settings.
Set the time¶
Upon the instance setup via above instructions, the system time should set up correctly.
If the system time is wrong, you need following:
- Set "use_localtime=true" in the hypervisor parameters (as in the "instance add" example)
- Set timezone in Windows
- Set proper local time in Windows (via standard clock tool)
this will set the time shift which will be saved upon shutdown
- Reboot to verify that time shift is saved and taken in effect
RDP-6 in 32bpp generate less traffic than 24bpp and sometimes not more than 16bpp.
Default bpp policy setup:
Performance Tuning Guidelines for Windows Server 2008 R2