![]() |
CentOS 5.2 Domu on Ubuntu Hardy Dom0
Hi,
I have hard time to do it searching on the web and ... and i though it may help others to do it easier, that's why i would like to share it: this howto may help to complete the this howto: http://www.howtoforge.com/ubuntu-8.0...u-repositories Create CentOS 5.2 Domu on Ubuntu Hardy Dom0 Author: Cameron Sarkary <ksarkary [at] gmail [dot] com> Last edited 09/09/2008 This tutorial provides step-by-step instructions on how to install Images of xen on an Ubuntu Hardy Heron (Ubuntu 8.04) server system (i386). Linux distributions that can run as Xen guests out of the box, obviating the need to create your own custom filesystems. The filesystems on jailtime.org have already been tweaked to deal with Xen’s idiosyncracies, and are also designed to be lightweight and minimally divergent from the original distribution. This howto is meant as a practical guide; it does not cover the theoretical backgrounds. They are treated in a lot of other documents in the web. I will use Ubuntu Hardy Heron (i386) for the host OS (dom0) and CentOS 5.2 for the guest operating systems (domU). This document comes without warranty of any kind! I want to say that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you! 1. Download the CentOS 5.1 image from jailtime. http://jailtime.org/download:centos:v5.2 2. Untar the image: Code:
tar -xjf centos.5-2.20080708.img.tar.bz2Code:
# mkdir /mnt/imgCode:
# mkdir -p /home/xen/domains/centosCode:
# mount -o loop centos.5-2.img /mnt/imgCode:
# cp -a /mnt/img/* /mnt/vm1/cat /mnt/vm1/etc/sysconfig/network-scripts/ifcfg-eth0 Code:
TYPE=Ethernet[root@xen~]# cat /mnt/vm1/etc/sysconfig/network 9. For me the xm console never worked until I have used this line in /mnt/vm/etc/inittab, I hope you know where to put following line in /mnt/vm1/etc/inittab, other wise learn about inittab first please. 10.root logins are not allowed on default jailtime image, so if you need them you can enable them too, or if you change your SSH port to something unusual you can do that too in /mnt/vm/etc/ssh/sshd_config change following: Code:
Port 2023Code:
# umount /mnt/img /mnt/vm[root@xen]# cat centos.cfg Code:
name = 'cent5'Code:
# xm create -c /etc/xen/centos.cfgCode:
CentOS release 5.2 (Final)16.Change your root password first http://s.wordpress.com/wp-includes/i.../icon_wink.gif 17.Enter nameservers in /etc/resolv.conf 18. If you want to resize an image file. First, make sure that the image file is not already mounted and is not already running as a xen guest. The following commands increase an image file to 4GB. Backup the image before attempting this. Code:
Links |
Thanks a lot! Do you mind if I publish this on the main HowtoForge site? :)
|
you can do it,
Thanks |
vnc to centos domU
hi
Need help in connecting to centos domU using vnc. please reply. -laksh |
Is VNC enabled in your xend-config.sxp?
|
Need help to set up nfs for xen guest
Hi
I wan to run xen guest on nfs server please let me know how to do that. |
| All times are GMT +2. The time now is 19:10. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.