Changes between Version 6 and Version 7 of DomUImage

Show
Ignore:
Timestamp:
11/18/08 14:39:43 (10 years ago)
Author:
ibaldin (IP: 152.54.9.131)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DomUImage

    v6 v7  
    88 
    99 1. We assume that CentOS was installed with virtualization (typically means that Xen and libvirt have been installed) and booted into Xen kernel 
    10   * NOTE: Disable libvirtd - it only gets in the way (chkconfig --level 123456 libvirtd off) 
     10  * NOTE: Disable libvirtd - it only gets in the way  
     11{{{ 
     12> chkconfig --level 123456 libvirtd off 
     13}}} 
    1114 1. Acquire a filesystem image from http://www.jailtime.org (it has minimal filesystem images available for many distributions) 
    12  1. Build a Xen-compliant initrd for the kernel of your choice (mkinitrd --with=xennet --preload=xenblk /wherever/you/want/to/put/initrd-<kernel version>.domU.img !`uname -r`) 
     15 1. Build a Xen-compliant initrd for the kernel of your choice  
     16{{{ 
     17> mkinitrd --with=xennet --preload=xenblk /wherever/you/want/to/put/initrd-<kernel version>.domU.img !`uname -r` 
     18}}} 
    1319 1. Modify the config file that came from jailtime.org to match your kernel and initrd and disk image locations 
    14  1. Mount the image and modify it to your liking (mount -o loop /where/the/image/is /loop/mount/point), e.g. change the IP address assignment 
    15  1. Start the vm (xm create <config file>). With CentOS the last thing the console showed was sshd starting. 
     20 1. Mount the image and modify it to your liking, e.g. change the IP address assignment 
     21{{{ 
     22> mount -o loop /where/the/image/is /loop/mount/point 
     23}}} 
     24 1. Start the vm. With CentOS the last thing the console showed was sshd starting. 
     25{{{ 
     26> xm create <config file> 
     27}}} 
    1628 1. SSH into it and use Yum to add whatever software you need 
    1729 1. To add java follow instructions here: http://wiki.centos.org/HowTos/JavaOnCentOS#head-3f98853bcb757ab29ddf3aa8e2b5c939f59445d6