WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Re: centos over debian

I do this sort of thing pretty regularly with the files in the images/xen directory on the CentOS cd. I use a config file like the following, and just do a "xm create -c norman" or "xm create -c norman mode=install".

   John

# Xen config file for norman, the mail guy
#
# use "xm create [-c] <hostname>" to start; add "mode=install" to reinstall!
#
# modify the next block at a minimum
name = "norman"
memory = "128"  # memory for normal operation
ip = "192.168.7.8"
disk = ['phy:domU/norman,xvda,w',
       'phy:domU/mail,xvdb1,w', ]

# change this if you want to add extra interfaces
vif = [ 'mac=00:16:ee:' + ":".join(ip.split('.')[1:4]) + ', bridge=intbr', ]

#
# probably, for paravirt, we don't have to change anything below here
#
vcpus=1
nographic=1
ksfile = "http://summerlite.foobar.com/distro/bigu/kickstart/ks-"; + name + ".cfg" uuid = "99806a2d-827e-da4d-4131-fc32" + ''.join(map(lambda x:"%02X"%int(x),ip.split('.')))

# test if mode variable is defined
try:
   mode
except NameError:
   mode = 'normal'

if mode == 'normal':
       # this is for after install
       bootloader="/usr/bin/pygrub"
       on_reboot   = 'restart'
       on_crash    = 'restart'
else:
       # these are for install
       #
       memory = "512"
       kernel = "/v/xen/images/vmlinuz-centos-5.1-x86_64"
       ramdisk = "/v/xen/images/initrd-centos-5.1-x86_64.img"
       extra = "text console=xvc0 ks=" + ksfile
       extra = extra + " dns=192.168.7.5"
       extra = extra + " gateway=192.168.7.1"
       extra = extra + " ip=" + ip
       extra = extra + " netmask=255.255.255.0"
       on_reboot   = 'destroy'
       on_crash    = 'destroy'


TMC wrote:
Boris

disclaimer - I don't use centos, so I have very little clue... here
are some ideas tho...

is there a debootstrap equivalent for CentOS?

Have a search for 'Centos network install' or 'centos kickstart'.and
perhaps 'centos xen guest' and see what you come up with.

Hope ths helps

On 20/02/2008, Boris <borisq22@xxxxxxxxx> wrote:
2008/2/19, Boris <borisq22@xxxxxxxxx>:
Hi there,

I'm trying to set up a Centos DomU over my Debian with Xen and I've
been searching all around google without good results. I think I'm not
searching properly.
Can anybody give me a tip, o maybe a how-to about it?

Right now I've a little problem with this and it's giving me this error message:

xenconsole: Could not read tty from store: No such file or directory

Any ideas?
Thanks :-)
--
http://g00fy.homelinux.org
http://cerealbars.wordpress.com <- blog
4057 6FF9 8B1A 85B9 A467  D512 F9A5 CF17 B61C BAA5

Maybe I didn't explain myself well enough... I just wanna know how to
install any linux distro from a cd or a iso image.
As I said in my previous mail, maybe I'm not searching well...

That's it.
Thanks again...
--
http://g00fy.homelinux.org
http://cerealbars.wordpress.com <- blog
4057 6FF9 8B1A 85B9 A467  D512 F9A5 CF17 B61C BAA5

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users





_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users