settingupsolusvmtoworkwithxenandopenvzononephysicalserver
TRANSCRIPT
Setting up SolusVM to work with Xen and OpenVZ
1. Partition layout:/dev/sda1 -- /boot (1024MB)/dev/sda2 -- LVM PV
-VolGroup00--LogVol01 / (24544MB)
swap (8192MB)/dev/sda3 -- LVM PV
-VolGroup01 unmounted, rest of space
2. Install Xenyum -y install xen-kernel xen xen-devel
3. Install OpenVZcd /etc/yum.repos.dwget http://download.openvz.org/openvz.reporpm --import http://download.openvz.org/RPM-GPG-Key-OpenVZyum -y install ovzkernel-xenyum -y install vzctl vzctl-lib vzquota
nano /boot/grub/menu.lstSet default boot option to 0Insert “dom0_mem=512M” without quotes after the kernel. Example:
default=0timeout=3splashimage=(hd0,0)/grub/splash.xpm.gzhiddenmenutitle CentOS (2.6.18-194.17.1.el5.028stab070.7xen) root (hd0,0) kernel /xen.gz-2.6.18-194.17.1.el5.028stab070.7 dom0_mem=512M module /vmlinuz-2.6.18-194.17.1.el5.028stab070.7xen ro
root=/dev/VolGroup00/LogVol00 module /initrd-2.6.18-194.17.1.el5.028stab070.7xen.img
4. Install SolusVM Slavewget http://soluslabs.com/installers/solusvm/installchmod 755 install./install
Choose option 2. Then option 2.Copy instructions at the end for later use. Example:
Installation Complete! ======================
Add this slave to your SolusVM master using the following details:
ID Key .......... : 6IK10OCRJEZWXYWME909GQW5RR6 ID Password ..... : EEFbx0bH6QfJhLUs5VyBAWXwXXeIAGuT1kV0k2koEWbEbhsQrNb
Edit /boot/grub/menu.lst and set the Xen kernel to boot (usually default=0)
IMPORTANT!! Run: php -f /usr/local/solusvm/includes/xenkernel.php after you have rebooted into the Xen kernel!
Please set SELINUX=disabled in /etc/selinux/config before rebooting.
Please read http://wiki.solusvm.com/index.php/Lighttpd_hotfix for important information on adding this slave to an existing master
Thankyou for choosing SolusVM.
5. Create OpenVZ container for SolusVM mastercd /vz/template/cachewget http://download.openvz.org/template/precreated/contrib/centos-5-x86_64-default-
5.5-20100707.tar.gzvzctl create 9779 --ostemplate centos-5-x86_64-default...(tab complete it and
minus the .tar.gz)vzctl set 9779 --ipadd 192.168.1.145 --nameserver 8.8.8.8 --hostname solusvm-
master --diskspace 8G:12G --userpasswd root:123456 --savevzctl start 9779
Check it is running:vzctl exec 9779 ps ax
Enter the vps console:vzctl enter 9779
If error message, do this first:vzctl exec 9779 /sbin/MAKEDEV ptyvzctl exec 9779 /sbin/MAKEDEV ttyvzctl enter 9779
1. Edit the file /etc/rc.local2. Add the following lines:
/sbin/MAKEDEV tty/sbin/MAKEDEV pty
3. Reboot your VPSexitvzctl restart 9779
6. Install SolusVM Master in OpenVZ containervzctl enter 9779cd /rootwget http://soluslabs.com/installers/solusvm/install
*reset IP vzctl set 9779 --ipdel all
(For Windows installation in XenHVM)
7. Copy ISO to /home/solusvm/xen/iso
8. Go to http://192.168.1.145:5353/admincpCreate clientCreate IP BlockAdd node solusvm-slaveAdd Templates --> ISOSync ISOCreate virtual server XenHVM
8GB hdd min512mb ramSelect setup ISOCreate server
Manage serverSelect CDROM bootBootInstall Windows normally