📜 ⬆️ ⬇️

Installing XenServer 6.2 in Hetzner

image
After updating the server line at Hetzner, I decided to keep up with progress and update my own.

Naturally, XenServer would not hurt to update either, especially since Hetzner posted an article on installing XenServer 6.2 in his wiki, but as it turned out, this instruction was a copy of the installation manual for version 6.0.2 and it was not suitable for installing the latest XenServer.

Armed with the documentation for XenServer 6.2, I found out the differences in the installation.

To install XenServer in Hetzner you need a working web-server, we will place the installation files on it.
')
First of all, we will install on our server in Hetzner the Ubuntu 12.04 LTS system using their “robot” web interface.

In the meantime, the system is installed, we will download the XenServer 6.2 image to our web server and prepare it for installation.

Replace the path / var / www / with the one on which the site is available.
cd ~ wget http://downloadns.citrix.com.edgesuite.net/akdlm/8159/XenServer-6.2.0-install-cd.iso mount -o loop XenServer-6.2.0-install-cd.iso /mnt mkdir /var/www/xenserver cp -a /mnt/* /var/www/xenserver 


Now you need to create an answer file for a silent installation. This is where the differences from previous versions appear.
 nano /var/www/xenserver/xenserver.xml 


Content should be like this:

 <installation mode = "fresh" srtype = "lvm">
 <primary-disk gueststorage = "yes"> sda </ primary-disk>
 <keymap> en </ keymap>
 <hostname> xen.example.com </ hostname>
 <root-password> password </ root-password>
 <source type = "url"> http: // ip-your-web-server / xenserver / </ source>
 <admin-interface name = "eth0" proto = "static">
 <ipaddr> server ip address in hetzner </ ipaddr>
 <subnet> 255.255.255.224 </ subnet>
 <gateway> Server Gateway </ gateway>
 </ admin-interface>
 <nameserver> 213.133.98.98 </ nameserver>
 <nameserver> 213.133.99.99 </ nameserver>
 <nameserver> 213.133.100.100 </ nameserver>
 <timezone> Europe / Kiev </ timezone>
 <time-config-method> ntp </ time-config-method>
 <ntp-servers> ntp </ ntp-servers>
 <ntpservers> 213.239.239.164 </ ntpservers>
 <ntpservers> 213.239.239.165 </ ntpservers>
 <ntpservers> 213.239.239.166 </ ntpservers>
 </ installation>


Then we return to our server in Hetzner and copy several files.

 cd /boot wget http://www.example.com/xenserver/install.img wget http://www.example.com/xenserver/boot/vmlinuz wget http://www.example.com/xenserver/boot/xen.gz 


Now we need to fix the bootloader. Here, too, there are differences from previous versions.

 nano /boot/grub/grub.cfg 


We are looking for a similar entry and change the last 3 lines.

 if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi menuentry 'Ubuntu, with Linux 3.2.0-24-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail gfxmode $linux_gfx_mode insmod gzio insmod raid insmod mdraid1x insmod part_gpt insmod part_gpt insmod ext2 set root='(mduuid/xxxxxxxxxxxxx)' search --no-floppy --set -f /boot/xen.gz multiboot /boot/xen.gz dom0_max_vcpus=1-2 dom0_mem=max:752M com1=115200,8n1 console=com1,vga module /boot/vmlinuz answerfile=http://<ip--web->/xenserver/xenserver.xml install module /boot/install.img } 


After that, we reboot the server and wait until the XenServer is installed, and in order to make sure that we did everything correctly and the installation is in progress, you can, first, ping your server, and second, view access.log on your web server.

For example:
 tail -f /var/log/apache2/access.log 


After installing XenServer 6.2 will be available via ssh, the password you specified in the answer file.
Then you can configure Software RAID 1 according to the manual on the Hetzner website.

PS Is it worth to describe here the process of configuring Software RAID, IP subnets and creating a local repository of ISO images? Or is it all clear from Hetzner in the wiki?

Source: https://habr.com/ru/post/205458/


All Articles