About this list Date view Thread view Subject view Author view Attachment view

From: Timo Müller (Timo.Mueller_at_Ruhr-Uni-Bochum.de)
Date: Mon 17 Jan 2005 - 11:17:04 GMT


Oliver Welter wrote:

> Hi Timo,
>
> > One Question:
> > I want to make a Suse Linux 9.2 vServer, but in the vServer Basic setup
> > I only can make a suse9 server.
> > How can i paste suse9.2 in the setup (Clone vserver )!!
>
Öhm. What do u mean with this???
- create a vserver with build type skeleton
- edit and run the attached script

???

> - create a vserver with build type skeleton
> - insert the Suse DVD
> - edit and run the attached script
>
> 3) open etc/init.d/rc (in the vserver) and add
>
> CONSOLE="/dev/console"
> RUNLEVEL=$1
>
> at the beginning
>
> I dont know how/if cloning works....
>
> Oliver
>
> #!/bin/bash
> TARGETDIR=/vservers/test
> TMPDIR=/vservers/tmp/rpmdir
> PKGLIST=/vservers/tmp/paketliste
> SRCDIR=/install/suse9.2/cd1
> ARCH=x86_64
>
> rm -rf $TMPDIR
> mkdir -p $TMPDIR
> cd $TMPDIR
> for pkg in `cat $PKGLIST` ; do
> for rpm in $SRCDIR/suse/${ARCH}/${pkg}*.rpm ; do
> test -f ${rpm} && ln -s ${rpm} .
> done
> for rpm in $SRCDIR/suse/noarch/${pkg}*.rpm ; do
> test -f ${rpm} && ln -s ${rpm} .
> done
> done
> test -d $TARGETDIR || mkdir -p $TARGETDIR
> mkdir -p $TARGETDIR/etc
> mkdir -p $TARGETDIR/var/lib/rpm
> cp /etc/passwd /etc/shadow /etc/group* $TARGETDIR/etc
> rpm --root=$TARGETDIR --initdb
> rpm --root=$TARGETDIR -hiv *.rpm --nodeps
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Vserver mailing list
>Vserver_at_list.linux-vserver.org
>http://list.linux-vserver.org/mailman/listinfo/vserver
>
>

_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 17 Jan 2005 - 11:22:17 GMT by hypermail 2.1.3