Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

CentOS 5 Virtualization - Anyone used it ?

Discussion in 'General Discussion' started by bin_asc, Jun 18, 2007.

  1. bin_asc

    bin_asc Well-Known Member

    Joined:
    Jul 18, 2005
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    166
    I saw centos 5 has new features like virtualization. I would really love to use it. Has anyone tried it ? Has anyone a how-to or a reference how to get it working ?

    Regards,
    Adrian
     
  2. Glum

    Glum Registered

    Joined:
    Jun 18, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    I have tried

    Hey, have tried to installed it on CentOS running on XEN. (dom0 is etch)
    couldnt get it to work because of amd64 arch.
     
  3. bin_asc

    bin_asc Well-Known Member

    Joined:
    Jul 18, 2005
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    166
    Ok, but I saw that on 32 bit it works, although on x86_64 virtualization has a max RAM limit.
     
  4. nwilkens

    nwilkens Well-Known Member

    Joined:
    May 4, 2006
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Monroe MI
    cPanel Access Level:
    DataCenter Provider
    Centos5

    I have used it and deployed Windows 2k3, and many Linux virtual machines, full and paravirtualized.

    Some reference points..

    - I am partial to using LVM based devices for creating my virtual machines. Think lvm snapshots for backups.

    A setup I am working on now consists of 4 systems with a dedicated LVM device, and an lvm based mount point for file based VMs.

    # vgs
    VG #PV #LV #SN Attr VSize VFree
    xen1vg 1 6 0 wz--n- 1.96T 1.47T

    # lvs
    LV VG Attr LSize Origin Snap% Move Log Copy%
    vm1rootlv xen1vg -wi-a- 80.00G
    vm2rootlv xen1vg -wi-a- 80.00G
    vm3rootlv xen1vg -wi-a- 80.00G
    vm4rootlv xen1vg -wi-a- 80.00G
    xen_master_img-lv xen1vg -wi-a- 80.00G
    xenimages1lv xen1vg -wi-ao 100.00G

    - If you decide to use a file based VM, but use a directory other than /var/lib/xen/images to store your image files, then selinux will get in the way. Use the following:
    # semanage fcontext -a -t xen_image_t "/<new_directory>(/.*)?"
    # restorecon -R /<new_directory>/

    - If something is not working check /var/log/audit/audit.log and 'dmesg', disable selinux: 'setenforce 0'.

    - If your system is installing or using a file based cdrom device, and you need to insert or change to another disk:
    # xm block-list <vmname>
    Vdev BE handle state evt-ch ring-ref BE-path
    768 0 0 1 -1 -1 /local/domain/0/backend/vbd/14/768
    5632 0 0 1 -1 -1 /local/domain/0/backend/vbd/14/5632

    # xm block-detach <vmname> 5632 -f
    # xm block-attach <vmname> file:/xen-images/nextdisk.iso hdc:cdrom r
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 nwilkens, Jun 18, 2007
    Last edited: Jun 18, 2007
  5. bin_asc

    bin_asc Well-Known Member

    Joined:
    Jul 18, 2005
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    166
    Never used LVM before. Is it included with CentOS ?
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice