[xen-tools-discuss] About Rinse, Centos-5 and bad instalations
Brent Bolin
brent.bolin at gmail.com
Fri Oct 22 13:31:15 CEST 2010
On Fri, Oct 22, 2010 at 1:57 AM, Torsten Krueger <krueger at hkn.de> wrote:
> Hi Brent,
>
> the setting of the password in the Centos chroot environment fails due to
> missing libnss. Yum is refusing to work afterwards because of missing
> python-iniparse. Just add the following lines to /etc/rinse/centos-5.packages:
>
> nss
> nspr
> python-iniparse
> (and whatever else you may want in your image)
>
> Kudos go to this guy here:
> http://www.infohit.net/blog/post/deploying-domu-centos-5-with-xen-on-ubuntu-904-jaunty-jakalope.html
>
> Yesterday I have installed a 32bit Centos-5 Dom-U on a 64bit Lenny Dom-0
>
> Regards
> Torsten
>
>
>
>
Believe the install method for rpm based distros is broken. This
includes rinse and rpmstrap. The above files you indicate show that
your trying to use rinse.
I used the following example to install centos -
http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU
It's a two step process. One for the creation of the domu and then
modifiy the config for a normal xen startup. You can of coarse use
virt-install to create guests. Really like xen-tools for creating
debian guests. It's a snap...
I'll include the config file used to create and the minimal kickstart
file used in the apache RootDocument directory. The top part of the
file that is commented(#) is the creation part. The uncommented part
is used to start the xen domu. The apache server used is dom0 in this
case.
I seem to recall using console to start and complete the installation.
This install will ask questions. For some reason I don't see it in
the example link.
xm create centos.cfg -c
You need to create the block disk drive prior to doing all of this.
Follow the directions in the link.
Good luck
-------------- next part --------------
#name ="centos"
#kernel = "/disk/xen/domains/centos/vmlinuz"
#ramdisk = "/disk/xen/domains/centos/initrd.img"
#extra = "text ks=http://192.168.0.60/minimal-ks.cfg"
#name = "centos"
#memory = "1024"
#disk = [ 'file:/disk/xen/domains/centos/disk.img,xvda,w', ]
#vif = [ 'bridge=eth0', ]
#vcpus=2
#on_reboot = 'destroy'
#on_crash = 'destroy'
name = "centos"
memory = "512"
disk = [ 'file:/disk/xen/domains/centos/disk.img,xvda,w', ]
vif = [ 'ip=192.168.0.110,mac=00:16:3E:D3:6D:E5' ]
bootloader="/usr/bin/pygrub"
vcpus=2
on_reboot = 'restart'
on_crash = 'restart'
-------------- next part --------------
install
url --url http://mirror.centos.org/centos/5.5/os/x86_64
lang en_US.UTF-8
network --bootproto=static --device=eth0 --gateway=192.168.0.1 --ip=192.168.0.102 --nameserver=68.87.72.134 --netmask=255.255.255.0 --onboot=on
rootpw secret
#firewall --enabled --port=
firewall --disable
skipx
authconfig --enableshadow --enablemd5
#selinux --enforcing ??port=22:tcp
selinux --disable
timezone --utc America/Chicago
bootloader --location=mbr --driveorder=xvda --append="console=xvc0"
reboot
# Partitioning
clearpart --all --initlabel --drives=xvda
part /boot --fstype ext3 --size=100 --ondisk=xvda
part pv.2 --size=0 --grow --ondisk=xvda
volgroup VolGroup00 --pesize=32768 pv.2
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=256 --grow --maxsize=512
%packages
@core
More information about the xen-tools-discuss
mailing list