Creating Windows Instances » История » Версия 12
Dmitry Chernyak, 24.02.2013 21:31
| 1 | 4 | Владимир Ипатов | h1. Creating Windows Instances |
|---|---|---|---|
| 2 | 1 | Владимир Ипатов | |
| 3 | 5 | Dmitry Chernyak | {{toc}} |
| 4 | 5 | Dmitry Chernyak | |
| 5 | 10 | Dmitry Chernyak | [[OVERVIEW]] | [[BUILD-ISO]] | [[INSTALL]] | [[SETUP]] | [[OPERATIONS]] | [[GITMAGIC]] | [[LICENSE]] | [[STATUS]] |
| 6 | 5 | Dmitry Chernyak | [[УСТАНОВКА]] | [[СБОРКА-ISO]] | [[НАСТРОЙКА]] | [[ОПЕРАЦИИ]] | [[ЛИЦЕНЗИЯ]] | [[СОСТОЯНИЕ]] |
| 7 | 5 | Dmitry Chernyak | |
| 8 | 1 | Владимир Ипатов | h2. System install |
| 9 | 1 | Владимир Ипатов | |
| 10 | 1 | Владимир Ипатов | h3. Copy installer ISO /stuff/cdimages |
| 11 | 1 | Владимир Ипатов | |
| 12 | 5 | Dmitry Chernyak | Download the iso image via the network or plug in the usb-flash with the image (it will be automatically mounted to /media/usb). |
| 13 | 11 | Dmitry Chernyak | Copy the image into /stuff/cdimages. |
| 14 | 5 | Dmitry Chernyak | |
| 15 | 5 | Dmitry Chernyak | To transfer the files you can use the visual file manager "mc". |
| 16 | 5 | Dmitry Chernyak | |
| 17 | 5 | Dmitry Chernyak | If you wish to make the copy of a real CD-ROM, then use the command |
| 18 | 7 | Dmitry Chernyak | |
| 19 | 7 | Dmitry Chernyak | <pre> |
| 20 | 5 | Dmitry Chernyak | # dd if=/dev/cdrom of=/stuff/cdimages/Image.iso |
| 21 | 5 | Dmitry Chernyak | </pre> |
| 22 | 1 | Владимир Ипатов | |
| 23 | 1 | Владимир Ипатов | 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: |
| 24 | 7 | Dmitry Chernyak | |
| 25 | 7 | Dmitry Chernyak | <pre> |
| 26 | 1 | Владимир Ипатов | # dmesg|tail -20 |
| 27 | 1 | Владимир Ипатов | </pre> |
| 28 | 1 | Владимир Ипатов | |
| 29 | 10 | Dmitry Chernyak | Copy the image on the both cluster nodes - otherwise the instance will not start. |
| 30 | 8 | Dmitry Chernyak | Use the comand |
| 31 | 8 | Dmitry Chernyak | |
| 32 | 8 | Dmitry Chernyak | <pre> |
| 33 | 8 | Dmitry Chernyak | gnt1# scp /stuff/cdimages/Image.iso gnt2:/stuff/cdimages/Image.iso |
| 34 | 8 | Dmitry Chernyak | </pre> |
| 35 | 8 | Dmitry Chernyak | |
| 36 | 8 | Dmitry Chernyak | or the command |
| 37 | 8 | Dmitry Chernyak | |
| 38 | 8 | Dmitry Chernyak | <pre> |
| 39 | 8 | Dmitry Chernyak | gnt-cluster copyfile /stuff/cdimages/Image.iso |
| 40 | 8 | Dmitry Chernyak | </pre> |
| 41 | 8 | Dmitry Chernyak | |
| 42 | 8 | Dmitry Chernyak | but the last is available only on the master node. |
| 43 | 8 | Dmitry Chernyak | |
| 44 | 7 | Dmitry Chernyak | h3. Add new instance |
| 45 | 7 | Dmitry Chernyak | |
| 46 | 7 | Dmitry Chernyak | Execute: |
| 47 | 1 | Владимир Ипатов | |
| 48 | 1 | Владимир Ипатов | <pre> |
| 49 | 12 | Dmitry Chernyak | 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 |
| 50 | 1 | Владимир Ипатов | </pre> |
| 51 | 1 | Владимир Ипатов | |
| 52 | 1 | Владимир Ипатов | h3. Connect to instance vnc console and install the system |
| 53 | 1 | Владимир Ипатов | |
| 54 | 1 | Владимир Ипатов | You should use vncviewer to connect vnc console(e.g. from xtightvncviewer package). |
| 55 | 1 | Владимир Ипатов | address and port: |
| 56 | 1 | Владимир Ипатов | <pre> |
| 57 | 1 | Владимир Ипатов | # gnt-instance info INSTANCE|grep vnc |
| 58 | 1 | Владимир Ипатов | </pre> |
| 59 | 1 | Владимир Ипатов | |
| 60 | 3 | Владимир Ипатов | On windows we recommend to use ultravnc: |
| 61 | 3 | Владимир Ипатов | http://www.uvnc.com/downloads/ultravnc/100-download-ultravnc-10962.html |
| 62 | 1 | Владимир Ипатов | |
| 63 | 1 | Владимир Ипатов | h3. GPLPV Driver install |
| 64 | 1 | Владимир Ипатов | |
| 65 | 6 | Dmitry Chernyak | After install you should add the PV-drivers in system. |
| 66 | 6 | Dmitry Chernyak | We suggest to use the signed drivers from Uniention: http://wiki.univention.de/index.php?title=Installing-signed-GPLPV-drivers |
| 67 | 6 | Dmitry Chernyak | This drivers are already placed into your distribution in the file /stuff/cdimages/gplpv.iso, you don't need to download them again. |
| 68 | 1 | Владимир Ипатов | There is no additional actions after install. |
| 69 | 1 | Владимир Ипатов | You must reboot twice and check that disks in device manager your disk drives have disk type consist *XEN* word. |
| 70 | 1 | Владимир Ипатов | |
| 71 | 6 | Dmitry Chernyak | Execute: |
| 72 | 6 | Dmitry Chernyak | <pre> |
| 73 | 12 | Dmitry Chernyak | # gnt-instance modify -H cdrom_image_path='/stuff/cdimages/gplpv.iso' INSTANCE |
| 74 | 6 | Dmitry Chernyak | </pre> |
| 75 | 6 | Dmitry Chernyak | |
| 76 | 6 | Dmitry Chernyak | and reboot the instance. |
| 77 | 6 | Dmitry Chernyak | |
| 78 | 6 | Dmitry Chernyak | Upon the drivers installation no additional manipulations are needed. |
| 79 | 6 | Dmitry Chernyak | 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". |
| 80 | 6 | Dmitry Chernyak | |
| 81 | 6 | Dmitry Chernyak | 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". |
| 82 | 6 | Dmitry Chernyak | |
| 83 | 6 | Dmitry Chernyak | |
| 84 | 6 | Dmitry Chernyak | After install you may detach the iso image: |
| 85 | 1 | Владимир Ипатов | <pre> |
| 86 | 1 | Владимир Ипатов | # gnt-instance modify -H boot_order=c cdrom_image_path='' INSTANCE |
| 87 | 1 | Владимир Ипатов | </pre> |
| 88 | 1 | Владимир Ипатов | |
| 89 | 1 | Владимир Ипатов | h3. Disable TaskOffload and TX Offloas |
| 90 | 1 | Владимир Ипатов | |
| 91 | 1 | Владимир Ипатов | Without it there will be lags in rdp and in other tasks. |
| 92 | 1 | Владимир Ипатов | http://social.technet.microsoft.com/Forums/en/windowsserver2008r2management/thread/77397541-608f-4d1c-9856-1593f2186f5b |
| 93 | 1 | Владимир Ипатов | http://support.cloudcentral.com.au/KB/a32/fix-slow-stuttering-intermittent-windows-server-2008.aspx |
| 94 | 1 | Владимир Ипатов | http://support.microsoft.com/kb/888750 |
| 95 | 1 | Владимир Ипатов | |
| 96 | 5 | Dmitry Chernyak | 1. Load the Windows Registry editor - regedit. |
| 97 | 1 | Владимир Ипатов | 2. Add a new DWORD key named DisableTaskOffload with a value of 1 to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters |
| 98 | 1 | Владимир Ипатов | 3. Restart server. |
| 99 | 1 | Владимир Ипатов | |
| 100 | 1 | Владимир Ипатов | TX Offload May be disabled in NIC settings. |
| 101 | 2 | Dmitry Chernyak | |
| 102 | 9 | Dmitry Chernyak | h2. Set the time |
| 103 | 5 | Dmitry Chernyak | |
| 104 | 5 | Dmitry Chernyak | Upon the instance setup via above instructions, the system time should set up correctly. |
| 105 | 5 | Dmitry Chernyak | |
| 106 | 5 | Dmitry Chernyak | If the system time is wrong, you need following: |
| 107 | 2 | Dmitry Chernyak | |
| 108 | 2 | Dmitry Chernyak | * Set "use_localtime=true" in the hypervisor parameters (as in the "instance add" example) |
| 109 | 2 | Dmitry Chernyak | * Set timezone in Windows |
| 110 | 2 | Dmitry Chernyak | * Set proper local time in Windows (via standard clock tool) |
| 111 | 2 | Dmitry Chernyak | this will set the time shift which will be saved upon shutdown |
| 112 | 2 | Dmitry Chernyak | * Reboot to verify that time shift is saved and taken in effect |
| 113 | 1 | Владимир Ипатов | |
| 114 | 1 | Владимир Ипатов | h2. Notes |
| 115 | 1 | Владимир Ипатов | |
| 116 | 1 | Владимир Ипатов | RDP-6 in 32bpp generate less traffic than 24bpp and sometimes not more than 16bpp. |
| 117 | 1 | Владимир Ипатов | http://ericomguy.blogspot.com/2008/06/rdp6-performance-improvements-and-how.html |
| 118 | 1 | Владимир Ипатов | |
| 119 | 1 | Владимир Ипатов | Default bpp policy setup: |
| 120 | 1 | Владимир Ипатов | http://blog.dhampir.no/content/remote-desktop-does-not-support-colour-depth-24-falling-back-to-16 |
| 121 | 1 | Владимир Ипатов | |
| 122 | 1 | Владимир Ипатов | Performance Tuning Guidelines for Windows Server 2008 R2 |
| 123 | 1 | Владимир Ипатов | http://msdn.microsoft.com/en-us/library/windows/hardware/gg463392.aspx |