domU

CentOS 5 domU under Debian Lenny Dom0

lvcreate --name centos5-disk --size 4G vg01
 
 
 
 
# configure domU
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=centos5
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:00:00:00:ce:ce
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=512Mb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=2Gb
 
# create vm
xen-create-image --hostname=${DOMAIN_NAME} --dhcp --mac=${DOMAIN_MAC} \
--lvm=vg01 --dist=centos-5 --size=${DOMAIN_HDD} --memory=${DOMAIN_RAM} --swap=${DOMAIN_RAM}
 
# rename vm config
mv /etc/xen/${DOMAIN_NAME}.cfg /etc/xen/${DOMAIN_NAME}
 
 
 
 
 
cat <<EOF> /etc/xen/centos5-inst
kernel      = '/boot/centos5/vmlinuz'
ramdisk     

x2go domU

# set domU parameter
[ -z $DOMAIN_NAME ] && DOMAIN_NAME=x2go
[ -z $DOMAIN_MAC ] && DOMAIN_MAC=00:00:00:a0:b0:c0
[ -z $DOMAIN_RAM ] && DOMAIN_RAM=1Gb
[ -z $DOMAIN_HDD ] && DOMAIN_HDD=8Gb
 
# create domU
http://www.panticz.de/Xen-domU-ubuntu-jaunty
or
http://www.panticz.de/Ubuntu-Karmic-domU-under-Debian-Lenny-Dom0
 
# add to autostart (optional)
ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto
 
# start domU
xm create -c ${DOMAIN_NAME}
 
# old # apt-get install gnome-desktop-environment
apt-get install debconf-utils
 
 
 
apt-get -y install ubuntu-desktop
 
 
# new
gpg --keyserver

Do you like this page? Then support it. Please click the AD below and visit the sponsor. Thank you!

Syndicate content