Dienstag, 26. Mai 2015

Installing Xen-Server Tools on Debian

Today we're gonna have a look on how to install Xen-Server Tools on Debian.

Via Citrix XenCenter we have to mount the xs-tools.iso into the DVD Drive.

Screenshot of XenCenter
Now we have to mount the DVD within the filesystem, but first we need to know where we can find the DVD/CD in the file system. We check it with "cat /etc/fstab"
root@dka-test:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/vg--dka-lv--root /               ext4    errors=remount-ro 0       1
/dev/mapper/vg--dka-lv--boot /boot           ext2    defaults        0       2
/dev/mapper/vg--dka-lv--opt /opt            ext4    defaults        0       2
/dev/mapper/vg--dka-lv--tmp /tmp            ext4    defaults        0       2
/dev/mapper/vg--dka-lv--var /var            ext4    defaults        0       2
/dev/mapper/vg--dka-lv--swap none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0
Let's create a directory so we can mount the DVD/ISO properly.
root@dka-test:~# mkdir /mnt/xentools
root@dka-test:~# mount /dev/sr0 /mnt/xentools/
mount: /dev/sr0 is write-protected, mounting read-only
Great, now we can access the files within /mnt/xentools. Lets directory go into the Linux folder and check what's inside.
root@dka-test:~# cd /mnt/xentools/Linux
root@dka-test:/mnt/xentools/Linux# ls -al
total 264
dr-xr-xr-x 4 root root  2048 Dec  9  2013 .
dr-xr-xr-x 3 root root  4096 Nov 28  2013 ..
dr-xr-xr-x 2 root root  2048 May 25  2013 debian-lenny
-r-xr-xr-x 1 root root 16052 Dec  9  2013 install.shdr-xr-xr-x 2 root root  2048 Nov 28  2013 rhel4x
-r--r--r-- 1 root root   150 Nov 28  2013 versions.deb
-r--r--r-- 1 root root   250 Nov 28  2013 versions.rpm
-r--r--r-- 1 root root 53484 Nov 28  2013 xe-guest-utilities_6.2.0-1133_amd64.deb
-r--r--r-- 1 root root 53486 Nov 28  2013 xe-guest-utilities_6.2.0-1133_i386.deb
-r--r--r-- 1 root root 15740 Nov 28  2013 xe-guest-utilities-6.2.0-1133.i386.rpm
-r--r--r-- 1 root root 15704 Nov 28  2013 xe-guest-utilities-6.2.0-1133.x86_64.rpm
-r--r--r-- 1 root root 47477 Nov 28  2013 xe-guest-utilities-xenstore-6.2.0-1133.i386.rpm
-r--r--r-- 1 root root 47446 Nov 28  2013 xe-guest-utilities-xenstore-6.2.0-1133.x86_64.rpm
-r-xr-xr-x 1 root root  7955 Dec  9  2013 xe-linux-distribution
install.sh seems like something we could use. Lets do it!
root@dka-test:/mnt/xentools/Linux# bash install.sh
Now follow the instructions on the screen, mostly just confirm. The most times we won't have to change anything.

Congratulations, you did it!