Announcement

Collapse
No announcement yet.

CloudLinux a Xen domU domain?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CloudLinux a Xen domU domain?

    Im 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

  • #2
    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:

    Comment


    • #3
      Thanks for the fast reply.

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

      Code:
      [root@cloudli01 ~]# uname -r
      
      2.6.18-164.6.1.el5xen
      This is the Xen configuration file used for creating the CentOS domain Im using:

      Code:
      #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 = [ ridge=eth0, vifname=cloudli01.0, mac=A0:00:00:00:00:21,\
      
      ridge=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

      Comment


      • #4
        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.

        Comment


        • #5
          Thanks for following up on this.

          I tried and got this:

          Code:
          [root@cloudli01 ~]# 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

          Comment


          • #6
            > James Baldwin wrote:
            > Thanks for following up on this.
            >
            > I tried and got this:
            >
            >
            Code:
            [root@cloudli01 ~]# 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?

            Comment


            • #7
              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

              Code:
              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:

              Code:
              default=0
              Then after a reboot I could see the CloudLinux kernel.

              Code:
              [root@cloudli01 ~]# uname -r
              
              2.6.18-264.11.1.el5.17.cloudlinuxxen
              Thanks,
              James

              Comment

              Working...
              X