CloudLinux a Xen domU domain?
Forum
  1. Forums
  2. General
  3. General Discussion
  1. James Baldwin
  2. Sunday, 18 April 2010
  3.  Subscribe via email
I\'m interested in trying CloudLinux in a Xen domU domain.

Do I need to start from scratch provisioning the guest with your .ISO or is there an easier way to get this up and running?

Thanks for any advice,
James
Rate this post:
  1. 18.04.2010 09:04:33
  2. # 1
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
CL provides para-virtualized kernel.
The easiest way to go, as long as you have CentOS 5.x image is to take that image, and run centos2cl script from here:
http://www.cloudlinux.com/downloads/
  1. 18.04.2010 10:04:22
  2. # 2
James Baldwin Accepted Answer
Posts: 4
Joined: 18.04.2010
0
Votes
Undo
Thanks for the fast reply.

I just tried the centos2cl scipt on a clean install of CentOS 5.4 and it didn\'t change the Xen DomU to the CloudLinux kernel. I still have the original one.

[[email protected] ~]# uname -r
2.6.18-164.6.1.el5xen


This is the Xen configuration file used for creating the CentOS domain I\'m using:
#vm name, used only by xen
name = \'cloudli01\'

#num of virtual cpus
vcpus = 2;

#memory given to host
memory = 512;

#memory size allowed to live-resize to using \'xm mem-set\'
maxmem = 1024;

#location of pvgrub file
kernel = \"/usr/lib/xen/boot/pv-grub-x86_64.gz\"
#location of grub config within domU
extra = \"(hd0)/boot/grub/grub.conf\"

#mapping of physical disks in dom0 to virtual disks in domU
disk = [ \'phy:/dev/raid10/vm_cloudli01-root,xvda1,w\',\\
\'phy:/dev/raid10/vm_cloudli01-swap,xvda2,w\' ];

# virtual network
vif = [ \'bridge=eth0, vifname=cloudli01.0, mac=A0:00:00:00:00:21\',\\
\'bridge=brg1, vifname=cloudli01.1, mac=B0:00:00:00:00:21\'];


Could I be missing something on the Dom0 or DomU servers\' configurations for this to work?

Thanks,
James
  1. 18.04.2010 10:04:33
  2. # 3
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
Strange. I will check why it is so, it should have updated.

Anyway, try doing following:
# yum install kernel-xen
(on the server where you executed centos2cl)
reboot afterward.
  1. 18.04.2010 10:04:38
  2. # 4
James Baldwin Accepted Answer
Posts: 4
Joined: 18.04.2010
0
Votes
Undo
Thanks for following up on this.

I tried and got this:
[[email protected] ~]# yum install kernel-xen
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Package kernel-xen-2.6.18-264.11.1.el5.17.cloudlinux.x86_64 already installed and latest version
Nothing to do
  1. 18.04.2010 12:04:13
  2. # 5
Leonid Kanter Accepted Answer
Posts: 34
Joined: 18.04.2010
0
Votes
Undo
James Baldwin wrote:
Thanks for following up on this.



I tried and got this:

[[email protected] ~]# yum install kernel-xen

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

Setting up Install Process

Package kernel-xen-2.6.18-264.11.1.el5.17.cloudlinux.x86_64 already installed and latest version

Nothing to do



James, can you please show contents of /boot/grub/grub.conf?
  1. 18.04.2010 12:04:43
  2. # 6
James Baldwin Accepted Answer
Posts: 4
Joined: 18.04.2010
0
Votes
Undo
I think I got this working. I checked the to see what the grub.conf file looked like after running centos2cl.

vi /boot/grub/grub.conf
default=1
timeout=5
title CloudLinux Server (2.6.18-264.11.1.el5.17.cloudlinuxxen)
root (hd0)
kernel /boot/vmlinuz-2.6.18-264.11.1.el5.17.cloudlinuxxen console=xvc0 root=/dev/xvda1 ro
initrd /boot/initrd-2.6.18-264.11.1.el5.17.cloudlinuxxen.img
title vmlinuz-2.6.18-164.6.1.el5xen
root (hd0)
kernel /boot/vmlinuz-2.6.18-164.6.1.el5xen console=xvc0 root=/dev/xvda1 ro
initrd /boot/initrd-2.6.18-164.6.1.el5xen.img


I changed the default option to:
default=0


Then after a reboot I could see the CloudLinux kernel.
[[email protected] ~]# uname -r
2.6.18-264.11.1.el5.17.cloudlinuxxen


Thanks,
James
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.