Re: [Vserver] can i install fedora core 4 in a vserver using the cds

2005-12-22 Thread Herbert Poetzl
On Fri, Dec 23, 2005 at 08:37:17AM +0500, Mustafa Abbasi wrote:
> >
> > 1) Is one of the FC4 cds bootable?
> > 2) Can you shutdown your target machine?
> > 3) How old is your version of Bash?
> 
> 1. yes  1 cd is bootable
> 2.  yes i can shut ut down
> 3 i use debain/sarge is that ok.
> 
> >  - use rpm with the --root= option to get the packages
> >   installed into a dir
> >
> >  - use UML or QEMU or some full system emulator to
> >   install the CDs in a virtual machine and copy the
> >   resulting installing into a directory - adjust/adapt (or just trick) the
> > CD installer into
> 
>   isntalling FC4 on a separate dir/partition
> >
> >  - setup a repository (apt-rpm, yum) to install from
> >   and use the util-vserver tools to install a guest
> >   from scratch (which is the preferred way)
> 
> i did try to ue apt-rpm but could not figure i out. do i have to
> install somethings on debian to use apt-rp/ there is not such package
> in the debian stable main.

yes, that's a known debian deficiancy, it seems that
this is one (the only?) distro where getting apt-rpm
to work is a really tough job ...

if you succeed to get that working, please write a
short howto, guess a lot of folks will appreciate it

> > Well, as Herbert said, find out how to make the
> > installer do the installation into the directory that
> > you created with the "vserver  build"
> > command rather than the entire disk system.
> 
> i  have downlaoded a mandeake tar from 
> http://free.oszoo.org/download.html.
> i tried to install install it but i got a few error.
> could you tell me how to create an empty vserver so that i can copy
> the mandrake installation in the tar over to that file by mounting the
> image.

vserver  build -m skeleton --context 42  
(see http://linux-vserver.org/alpha+util-vserver for
some examples and most options)

replacing the 'empty' guest dir by your untarred 
mandrake guest should do the trick ...

HTH,
Herbert

> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] can i install fedora core 4 in a vserver using the cds

2005-12-22 Thread Mustafa Abbasi
1) Is one of the FC4 cds bootable?2) Can you shutdown your target machine?3) How old is your version of Bash?
1. yes  1 cd is bootable2.  yes i can shut ut down3 i use debain/sarge is that ok.
 - use rpm with the --root= option to get the packages   installed into a dir - use UML or QEMU or some full system emulator to   install the CDs in a virtual machine and copy the   resulting installing into a directory - adjust/adapt (or just trick) the CD installer into
    isntalling FC4 on a separate dir/partition - setup a repository (apt-rpm, yum) to install from
   and use the util-vserver tools to install a guest   from scratch (which is the preferred way)i did try to ue apt-rpm but could not figure i out. do i have to install somethings on debian to use apt-rp/ there is not such package in the debian stable main.
Well, as Herbert said, find out how to make theinstaller do the installation into the directory that
you created with the "vserver  build"command rather than the entire disk system.i  have downlaoded a mandeake tar from http://free.oszoo.org/download.html
. i tried to install install it but i got a few error.could you tell me how to create an empty vserver so that i can copy the mandrake installation in the tar over to that file by mounting the image.

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] can i install fedora core 4 in a vserver using the cds

2005-12-22 Thread Guenther Fuchs
Hi there,

on Donnerstag, 22. Dezember 2005 at 17:21 there was posted:

MA> i have dowlaoded the cds of fedora core 4, but i can't figure out
MA> how to install it into a vserver running on debian.

You wouldn't need to download the (whole bunch of) CDs to get an FC4
guest. Easiest is to use the vserver build command and install the
guest as described in the guide:

  http://linux-vserver.org/Vserver+installation+Fedora+Core+4

-- 
regards,

Guenther Fuchs

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Vserver and Reiserfs3

2005-12-22 Thread Joel Soete
Hello Herbert,

> On Thu, Dec 22, 2005 at 05:50:04PM +0100, Joel Soete wrote:
> > Hello Herbert,
> >
> > [...]
> > > > unfortunately still failed at the same places on my parisc box: i.e.
> > > > [...]
> > > > verify /mnt/test/file_3053: -+(-)-i-+(-) ~ -
> > > > [114]# failed.
> > > > [...]
> > > > verify /mnt/test/file_3053: -+(-)-i-+(-) ~ i---E
> > > > [124]# failed.
> > > > [199]# succeeded.
> > >
> > > this is caused by the legacy kernel API support ...
> > > if enabled it will blend through the iunlink as flag 'E'
> > > on reiserfs (still investigating if that is a bug, or
> > > if some tools really used that one ...)
> > >
> > > disabling the legacy kernel API support should make that
> > > one succeed (CONFIG_VSERVER_LEGACY)
> > >
> > ok (at least for test 124):
> > [113]# succeeded.
> > verify /mnt/test/file_2618: -+(-)-i-+(-) ~ -
> > [114]# failed.
> > [115]# succeeded.
> > [...]
> > [123]# succeeded.
> > [124]# succeeded.
> > [199]# succeeded.
> >
> > but I couldn't leave with this kernel because:
> > Starting periodic command scheduler: cron.
> > Starting vservers of type
> > 'default'.../etc/vservers/DebSid/scripts/prepre-start fixes sysvinit
script's dir.
> > Link default -> default.VPS is created.
> > Link init.d -> init.d.VPS is created.
> > Link rc0.d -> rc0.d.VPS is created.
> > Link rc1.d -> rc1.d.VPS is created.
> > Link rc2.d -> rc2.d.VPS is created.
> > Link rc3.d -> rc3.d.VPS is created.
> > Link rc4.d -> rc4.d.VPS is created.
> > Link rc5.d -> rc5.d.VPS is created.
> > Link rc6.d -> rc6.d.VPS is created.
> > Link rcS.d -> rcS.d.VPS is created.
> > Just a simple pre-start script but may be would be beter a prepre-start one?
> > [42949562.12] dynamic contexts disabled.
> > make: *** [.DebSid.stamp] Error 255
> > make: Target `all' not remade because of errors.
> > ERROR
> >
> > too bad ;-(
> >
> > and each time I tried to start the vserver manualy I got the following
messages:
> > [   42.70] dynamic contexts disabled.
> > [  136.57] dynamic contexts disabled.
> > [  249.71] dynamic contexts disabled.
>
> hmm, silly question, did you disable the dynamic context support?
>
not that I known: only unselect CONFIG_VSERVER_LEGACY
but I overwrite my config file ;_( but easy to reproduce (may be tomorrow)

> btw, what kernel was that again?
>
The parisc stuff

+ vanilla patch 2.6.14.4 + latest developement patch-2.6.14.4-vs2.1.0.diff.bz2

+ a very small ack to fix a rejected hunk:
(due to the diff between parisc tree and vanilla one)
--- arch/parisc/kernel/syscall_table.S.orig 2005-09-24 10:40:28.0
+0200
+++ arch/parisc/kernel/syscall_table.S  2005-12-22 12:26:18.0 +0100
@@ -368,7 +368,7 @@
ENTRY_COMP(mbind)   /* 260 */
ENTRY_COMP(get_mempolicy)
ENTRY_COMP(set_mempolicy)
-   ENTRY_SAME(ni_syscall)  /* 263: reserved for vserver */
+   ENTRY_DIFF(vserver)
ENTRY_SAME(add_key)
ENTRY_SAME(request_key) /* 265 */
ENTRY_SAME(keyctl)
<>

Thanks,
Joel



---
NOTE! My email address is changing to ... @scarlet.be
Please make the necessary changes in your address book. 



___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] can i install fedora core 4 in a vserver using the cds

2005-12-22 Thread Michael S. Zick
On Thu December 22 2005 11:26, Herbert Poetzl wrote:
> On Thu, Dec 22, 2005 at 09:21:36PM +0500, Mustafa Abbasi wrote:
> > i have dowlaoded the cds of fedora core 4, but i can't figure out how
> > ito nstall it into a vserver running on debian.i am new so please easy
> > instrucion would be appreciated.
> 
> well, as Linux-VServer does not do system emulation
> (i.e. you won't get a virtual CD drive and such), just
> system (and resource) isolation, you basically have to
> solve the problem:
>  
> "How do I install FC4 from a bunch of CDs into a directory?"
>
Herbert,
A few more solutions...
First three questions:
1) Is one of the FC4 cds bootable?
2) Can you shutdown your target machine?
3) How old is your version of Bash? 

Ans. 3) bash --version
If it is anything older than the 3.0 version that is in 
Debian/Sarge, stop here and upgrade it.

Independent of your answer to #1 and #2 -
use the "vserver  build" command to build
the basic file structure on your system.
I think it has a framework for fc4 

Quick info on the vserver build command enter:
vserver AnyName build --help

A detailed guide to building a generic vserver is at:


There is a minimum chance of trashing your system
with those directions - play with it until you feel ready
to continue.

- - - If you do not want to shut down your machine - - - -

If you are running a linux kernel compatable with
version-2.6.14 plus the vserver-2.0.1 patch on at
least an Intel i686 box...

You can download a compressed version of that
generic vserver from:


Unpack and follow the directions in section 6.7 of
the step by step instructions to wake up the baby.

Bingo - you are now in a virtual server that acts as
if you had booted your machine with the option:
init=/bin/bash

Follow the FC4 installation instructions from the point 
where you are replacing a working system (if those exist)
with a network source of the FC4 stuff.
(I do not expect the current baby01.bin to support
cd/dvd device access.)

- - - - if you can boot from the FC4 install disk - - - -

Well, as Herbert said, find out how to make the
installer do the installation into the directory that
you created with the "vserver  build"
command rather than the entire disk system.

- - - -
Mike
- - -

> and the solutions could be:
> 
>  - use rpm with the --root= option to get the packages
>installed into a dir
> 
>  - use UML or QEMU or some full system emulator to
>install the CDs in a virtual machine and copy the
>resulting installing into a directory
> 
>  - adjust/adapt (or just trick) the CD installer into
>isntalling FC4 on a separate dir/partition
> 
>  - setup a repository (apt-rpm, yum) to install from
>and use the util-vserver tools to install a guest
>from scratch (which is the preferred way)
> 
> HTH,
> Herbert
> 
> > ___
> > Vserver mailing list
> > Vserver@list.linux-vserver.org
> > http://list.linux-vserver.org/mailman/listinfo/vserver
> 
> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
> 
> 
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] can i install fedora core 4 in a vserver using the cds

2005-12-22 Thread Herbert Poetzl
On Thu, Dec 22, 2005 at 09:21:36PM +0500, Mustafa Abbasi wrote:
> i have dowlaoded the cds of fedora core 4, but i can't figure out how
> ito nstall it into a vserver running on debian.i am new so please easy
> instrucion would be appreciated.

well, as Linux-VServer does not do system emulation
(i.e. you won't get a virtual CD drive and such), just
system (and resource) isolation, you basically have to
solve the problem:
 
"How do I install FC4 from a bunch of CDs into a directory?"

and the solutions could be:

 - use rpm with the --root= option to get the packages
   installed into a dir

 - use UML or QEMU or some full system emulator to
   install the CDs in a virtual machine and copy the
   resulting installing into a directory

 - adjust/adapt (or just trick) the CD installer into
   isntalling FC4 on a separate dir/partition

 - setup a repository (apt-rpm, yum) to install from
   and use the util-vserver tools to install a guest
   from scratch (which is the preferred way)

HTH,
Herbert

> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] can i install fedora core 4 in a vserver using the cds

2005-12-22 Thread Mustafa Abbasi
i have dowlaoded the cds of fedora core 4, but i can't figure out how to install it into a vserver running on debian.i am new so please easy instrucion would be appreciated.
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Vserver and Reiserfs3

2005-12-22 Thread Herbert Poetzl
On Thu, Dec 22, 2005 at 05:50:04PM +0100, Joel Soete wrote:
> Hello Herbert,
> 
> [...]
> > > unfortunately still failed at the same places on my parisc box: i.e.
> > > [...]
> > > verify /mnt/test/file_3053: -+(-)-i-+(-) ~ -
> > > [114]# failed.
> > > [...]
> > > verify /mnt/test/file_3053: -+(-)-i-+(-) ~ i---E
> > > [124]# failed.
> > > [199]# succeeded.
> >
> > this is caused by the legacy kernel API support ...
> > if enabled it will blend through the iunlink as flag 'E'
> > on reiserfs (still investigating if that is a bug, or
> > if some tools really used that one ...)
> >
> > disabling the legacy kernel API support should make that
> > one succeed (CONFIG_VSERVER_LEGACY)
> >
> ok (at least for test 124):
> [113]# succeeded.
> verify /mnt/test/file_2618: -+(-)-i-+(-) ~ -
> [114]# failed.
> [115]# succeeded.
> [...]
> [123]# succeeded.
> [124]# succeeded.
> [199]# succeeded.
> 
> but I couldn't leave with this kernel because:
> Starting periodic command scheduler: cron.
> Starting vservers of type
> 'default'.../etc/vservers/DebSid/scripts/prepre-start fixes sysvinit script's 
> dir.
> Link default -> default.VPS is created.
> Link init.d -> init.d.VPS is created.
> Link rc0.d -> rc0.d.VPS is created.
> Link rc1.d -> rc1.d.VPS is created.
> Link rc2.d -> rc2.d.VPS is created.
> Link rc3.d -> rc3.d.VPS is created.
> Link rc4.d -> rc4.d.VPS is created.
> Link rc5.d -> rc5.d.VPS is created.
> Link rc6.d -> rc6.d.VPS is created.
> Link rcS.d -> rcS.d.VPS is created.
> Just a simple pre-start script but may be would be beter a prepre-start one?
> [42949562.12] dynamic contexts disabled.
> make: *** [.DebSid.stamp] Error 255
> make: Target `all' not remade because of errors.
> ERROR
> 
> too bad ;-(
> 
> and each time I tried to start the vserver manualy I got the following 
> messages:
> [   42.70] dynamic contexts disabled.
> [  136.57] dynamic contexts disabled.
> [  249.71] dynamic contexts disabled.

hmm, silly question, did you disable the dynamic context support?

btw, what kernel was that again?

best,
Herbert

> Thanks,
> Joel
> 
> ---
> A free anti-spam and anti-virus filter on all Scarlet mailboxes
> More info on http://www.scarlet.be/
> 
> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Problem starting vserver vcontext: chroot(): Permission denied

2005-12-22 Thread Herbert Poetzl
On Thu, Dec 22, 2005 at 05:28:03PM +0100, Stephan Mueller wrote:
> Hi folks,
> 
> * Herbert Poetzl <[EMAIL PROTECTED]> [051124 09:54]:
> > On Thu, Nov 24, 2005 at 08:48:15AM +0100, Manfred Heubach wrote:
> > > found it at last. The directories of the vservers had the barrier
> > > attribut set on all subdirectories. I haven't found a way to "unset"
> > > the attribute. so i made a tar archive of the vserver, deleted the
> > > directory structure and unpacked the archive again. this way the
> > > barrier vanished. the servers are running :-)
> > 
> > hmm, how could that happen?
> > 
> > > so i have still one question: how can i remove the barrier attribute?
> > 
> > setattr --~barrier /path/to/dir
> 
> just for the files: I had the same problem today. I was setting up a
> staging server for testing the migration of our vservers from the 1.2
> branch to to 2.0.1.

just to get the idea, what distro/tools where used
with the 1.2 branch-installation?

> Before I got this error I had several other problems (with incomplete
> configs etc.) so I can't tell what to do to reproduce this problem,
> sorry.
>
> At least the trick with taring and untaring worked, so I can continue

an incantation of setattr -R --~barrier /path/to/dir
should work too ...

best,
Herbert

> my tests.
> 
> 
> Cheers,
> 
> Steph.
> 
> PS: vserver-info says:
> 
> Versions:
>Kernel: 2.6.14.4-vs2.0.1
>VS-API: 0x00020001
>  util-vserver: 0.30.209; Dec 22 2005, 14:57:59
> 
> Features:
>CC: gcc, gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
>   CXX: g++, g++ (GCC) 3.3.5 (Debian 1:3.3.5-13)
>  CPPFLAGS: ''
>CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W'
>  CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
> -fmessage-length=0'
>build/host: i686-pc-linux-gnu/i686-pc-linux-gnu
>  Use dietlibc: yes
>Build C++ programs: yes
>Build C99 programs: yes
>Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
> ext2fs Source: e2fsprogs
> syscall(2) invocation: alternative
>   vserver(2) syscall#: 273/glibc
> 
> Paths:
>prefix: /usr
> sysconf-Directory: /etc
> cfg-Directory: /etc/vservers
>  initrd-Directory: $(sysconfdir)/init.d
>pkgstate-Directory: ${prefix}/var/run/vservers
>   vserver-Rootdir: /vservers
> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] dev setting in interfaces

2005-12-22 Thread Herbert Poetzl
On Thu, Dec 22, 2005 at 05:53:59PM +0100, Stephan Mueller wrote:
> Hi folks,
> 
> I am quite shure this is a stupid question, never the less I would
> like to know the answer ;)
>
> What is dev supposed to be set to? The flower page says:
>
> dev: The network device

if you want the tools to 'create' the IP for
your guest, then you have to tell them on which
interface it shall be done ...

> Hm. Has it to be an existing network interface of the vserver? Or ist
> it just a name?

has to be an existing network interface like
eth0 or dummy0 or bond0.10

> I set it to eth0 and it works but maybe there is more to know about
> it.

yes, it is :)

if you leave it out (the dev entry) and add a
'nodev' one instead, then the IP will not be
created, just used ...

HTC,
Herbert

> Cheers and thanks,
> 
> Steph.
> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] dev setting in interfaces

2005-12-22 Thread Stephan Mueller
Hi folks,

I am quite shure this is a stupid question, never the less I would like
to know the answer ;)

What is dev supposed to be set to? The flower page says:

dev: The network device

Hm. Has it to be an existing network interface of the vserver? Or ist it
just a name?

I set it to eth0 and it works but maybe there is more to know about it.



Cheers and thanks,

Steph.
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Vserver and Reiserfs3

2005-12-22 Thread Joel Soete
Hello Herbert,

[...]
> > unfortunately still failed at the same places on my parisc box: i.e.
> > [...]
> > verify /mnt/test/file_3053: -+(-)-i-+(-) ~ -
> > [114]# failed.
> > [...]
> > verify /mnt/test/file_3053: -+(-)-i-+(-) ~ i---E
> > [124]# failed.
> > [199]# succeeded.
>
> this is caused by the legacy kernel API support ...
> if enabled it will blend through the iunlink as flag 'E'
> on reiserfs (still investigating if that is a bug, or
> if some tools really used that one ...)
>
> disabling the legacy kernel API support should make that
> one succeed (CONFIG_VSERVER_LEGACY)
>
ok (at least for test 124):
[113]# succeeded.
verify /mnt/test/file_2618: -+(-)-i-+(-) ~ -
[114]# failed.
[115]# succeeded.
[...]
[123]# succeeded.
[124]# succeeded.
[199]# succeeded.

but I couldn't leave with this kernel because:
Starting periodic command scheduler: cron.
Starting vservers of type
'default'.../etc/vservers/DebSid/scripts/prepre-start fixes sysvinit script's 
dir.
Link default -> default.VPS is created.
Link init.d -> init.d.VPS is created.
Link rc0.d -> rc0.d.VPS is created.
Link rc1.d -> rc1.d.VPS is created.
Link rc2.d -> rc2.d.VPS is created.
Link rc3.d -> rc3.d.VPS is created.
Link rc4.d -> rc4.d.VPS is created.
Link rc5.d -> rc5.d.VPS is created.
Link rc6.d -> rc6.d.VPS is created.
Link rcS.d -> rcS.d.VPS is created.
Just a simple pre-start script but may be would be beter a prepre-start one?
[42949562.12] dynamic contexts disabled.
make: *** [.DebSid.stamp] Error 255
make: Target `all' not remade because of errors.
ERROR

too bad ;-(

and each time I tried to start the vserver manualy I got the following messages:
[   42.70] dynamic contexts disabled.
[  136.57] dynamic contexts disabled.
[  249.71] dynamic contexts disabled.

Thanks,
Joel

---
A free anti-spam and anti-virus filter on all Scarlet mailboxes
More info on http://www.scarlet.be/

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Problem starting vserver vcontext: chroot(): Permission denied

2005-12-22 Thread Stephan Mueller
Hi folks,

* Herbert Poetzl <[EMAIL PROTECTED]> [051124 09:54]:
> On Thu, Nov 24, 2005 at 08:48:15AM +0100, Manfred Heubach wrote:
> > found it at last. The directories of the vservers had the barrier
> > attribut set on all subdirectories. I haven't found a way to "unset"
> > the attribute. so i made a tar archive of the vserver, deleted the
> > directory structure and unpacked the archive again. this way the
> > barrier vanished. the servers are running :-)
> 
> hmm, how could that happen?
> 
> > so i have still one question: how can i remove the barrier attribute?
> 
> setattr --~barrier /path/to/dir

just for the files: I had the same problem today. I was setting up a
staging server for testing the migration of our vservers from the 1.2
branch to to 2.0.1. 

Before I got this error I had several other problems (with incomplete
configs etc.) so I can't tell what to do to reproduce this problem,
sorry.

At least the trick with taring and untaring worked, so I can continue my
tests.


Cheers,

Steph.

PS: vserver-info says:

Versions:
   Kernel: 2.6.14.4-vs2.0.1
   VS-API: 0x00020001
 util-vserver: 0.30.209; Dec 22 2005, 14:57:59

Features:
   CC: gcc, gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
  CXX: g++, g++ (GCC) 3.3.5 (Debian 1:3.3.5-13)
 CPPFLAGS: ''
   CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W'
 CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
-fmessage-length=0'
   build/host: i686-pc-linux-gnu/i686-pc-linux-gnu
 Use dietlibc: yes
   Build C++ programs: yes
   Build C99 programs: yes
   Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
ext2fs Source: e2fsprogs
syscall(2) invocation: alternative
  vserver(2) syscall#: 273/glibc

Paths:
   prefix: /usr
sysconf-Directory: /etc
cfg-Directory: /etc/vservers
 initrd-Directory: $(sysconfdir)/init.d
   pkgstate-Directory: ${prefix}/var/run/vservers
  vserver-Rootdir: /vservers
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re:[Vserver] Step by Step Guide to a nano-vserver

2005-12-22 Thread Joel Soete
Hello Mike,

Sorry if that break the thread but only read info from m-l (didn't 'yet'?
recived actual mail, though).

> >
> Good suggestion
> I want to live with her for another
> day or two before I decide what to call her ;)

No pb I love 'baby' too ;-)

> > > Comments welcome from anyone with time to
> > > read through it.
> > >
> > Just a comment:
> > What do you think to put the note in paragraph 5.1:
> > "Vserver extends the concept of using ..."
> > better as a general introduction?
> > (it's the basis but doesn't seems to me enough 'spotlighted')
> >
> I have added an abstract, an introduction, and changed the
> title.
> The morning version of the guide is posted at the same link,
> just refresh your copy.
ok, cool ;-)

> That file is a Linux/x86 system. It will be awhile before I
> can build a hppa-risc version.
well busybox is also pre-compile for p-l, so I would also be alble to rebuild
according your advise : >
> > and a question about the:
> > mount -o bind /proc /vservers/refbox/proc
> >
> > why?
> >
> Because :
lol

> >
> > In fact, till now, I just used 'vserver DebSid star/stop/enter' and my
> > DebSid/fstab already contained:
> > none /proc proc defaults 0 0
> >
> > Is there a subtle difference, I missed?
> >
> That 'vserver' command is a (large) Bash script in front
> of the low-level commands.
> That is one of the many things the script does for the
> user.
Ah ok (I am not yet in this detail investigation)

> The baby uses the low-level commands for now, just
> to expose to the new user what is happening.
>
> Also, she can not be started with "vserver refbox start"
> without a bunch of complaints from the vserver script.
Great idea, thanks trial example, it's easier to understand basic concept and
progress 'step by step' (very educational)

> I will fix that when I get it figured out.
may be use latter with a baby a bit older (I mean when she would learn more
about its environement and could do its first step ;-) )

[...]
> Today's project is to make a clone of her.
>
> And then try using the file extended attributes and
> file access lists.
> Maybe I will be able to learn how to protect her from
> heavy feet in the host.
>
> I will be updating the step-by-step as I go, also including
> anything others mention to me.
mmm, wiki seems to be the dreaming tool for that but I don't yet play enough
to advise better how is it easy/difficult to implement (maintenance/update
seem very easy ;-))

Thanks for the share of experience,
Joel

---
A free anti-spam and anti-virus filter on all Scarlet mailboxes
More info on http://www.scarlet.be/

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] vserver migration 1.2.10 > 2.0.1

2005-12-22 Thread Herbert Poetzl
On Thu, Dec 22, 2005 at 02:46:11PM +0100, Lars Braeuer wrote:
> Ok, this is really emberassing to me. I forgot to use --numeric-owner
> with tar. Though, I don't know why (without --numeric-owner) only the
> GIDs got messed up and not the UIDs (with UGID24)!?

hmm, I assume tar looks in /etc/passwd, /etc/group
without that and tries to find an user/group, which
is not there, so it uses -1 (or -2), which looks 
strange to you (2^24-1 = 16777215)

> dump/restore still don't work. Might there be a problem because I'm
> moving the guest systems from lvm1 to lvm2?

no, in this case I'm tending to believe that the
inode data is wrong/different, but we might have
to look at a 'test' dump to figure that ...

> Herbert Poetzl wrote:
> >On Wed, Dec 21, 2005 at 10:09:21PM +0100, Lars Braeuer wrote:
> >
> >>Hi,
> >>
> >>I'm having an issue with some files (group owner) when migrating a
> >>vserver from a 2.4.30-vs1.2.10-vquota (GID24) system, ext3 partitions
> >>mounted with tagctx to the new 2.6.14.3-vs2.0.1 system (GID24,
> >>util-vserver-0.30.209), ext3 partitions mounted with tagxid. The
> >>context id is the same (fixed) on both systems.
> >
> >
> >you sure that the original partition is mounted with
> >the proper tagxid (former tagctx) option? i.e. that
> >the files show sane uid/gid at the 'source'
> >
> >>When tarring the files on one vserver and untarring it on the new one,
> >>a few files have different GID's. UID's are correct as far as I can
> >>see.
> >
> >
> >could you tar a few of those problematic files for
> >me and upload or attach them to the next mail?
> 
> I tarred a few files that have the wrong GID 16777214 find it at:
> http://mpex.net/tmp/wrong-xid.tar
> 
> mtab entry (on 'source'):
> /dev/vg/test /vservers/test ext3 rw,tagctx,usrquota,grpquota 0 0
> 
> mtab (on 'destination'):
> /dev/vg/test /vservers/test ext3 rw,tagxid 0 0
> 
> on the 'source' everything looks fine. uid's/gid's are correct.
> 
> here's exactly what I'm doing to transfer the files with dump.
> - destination: create lvm2 partition with same size as the old one
> - destination: create ext3 fs / mount fs with tagxid option
> - source: dump 0zf /tmp/test.dump /vservers/test ; 
> - destination: cd /vservers/test ; restore rf /test.dump
> - destination: Lots of GIDs are 16777214, UIDs are fine
> 
> As we are not really using the tagging on the old and new system for
> quota (we planned to, but we never used it), is there a way to remove
> it before transfering the guest system via dump, i.e. with "chxid -c
> 0" or something?

you could mount the partition without tagxid (which 
will give you 'funny' numbers for uid and gid, and
manuall (script) remap them by applying the following
algorithm (please make that on the copy, not the
original)

 uid' = uid & 0xFF
 gid' = gid & 0xFF

> >>Same issue when using dump/restore to transfer the guest system to the
> >>new host. The only difference is, that the GID is 16777214 on those
> >>files.

as it is *14 not *15, please make sure that the
host where you restore the files has similar entries
in /etc/passwd and /etc/group than the original
(maybe even copy them over for the restore?)

HTH,
Herbert

> >just to make sure, both systems use UGID24?
> 
> yep, triple checked that.
> 
> >
> >
> >>Running chxid with the desired context id from the hostsystem doesn't
> >>change anything.
> >>
> >>Any hints? Am I missing anything?
> >
> >
> >we'll see ...
> >best,
> >Herbert
> >
> >
> >>Regards,
> >>
> >>Lars
> 
> Best,
> 
> Lars
> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Step by Step Guide to a nano-vserver

2005-12-22 Thread Michael S. Zick
On Thu December 22 2005 08:37, Raoul Bhatia [IPAX] wrote:
> please drop a little note when you update your step-by-step guide!
>
Will do.
Thanks for looking at it.

Today's tech-note:

The 'vserver' command is a Bash script that
uses arrays and array functions.

Translation:
Your best bet: Bash-3.1
Probably works: Bash-3.0
A well patched copy of: Bash-2.0b might work, it depends...
If running a Bash version prior to 2.05b - forget it.

Mendel is still very busy, Meaning:
This information may not appear in the
"Advanced Bash Scripting Guide" for awhile.

(So many pots to stir, so few spoons.)
Mike
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Step by Step Guide to a nano-vserver

2005-12-22 Thread Raoul Bhatia [IPAX]

please drop a little note when you update your step-by-step guide!

kind regards,
raoul bhatia
--

raoul bhatia  email.[EMAIL PROTECTED]
ipax  web.http://www.ipax.at
- chief technician, support - irc.  #ipax (quakenet)

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] vserver migration 1.2.10 > 2.0.1

2005-12-22 Thread Lars Braeuer
Ok, this is really emberassing to me. I forgot to use --numeric-owner with tar. Though, I don't know 
why (without --numeric-owner) only the GIDs got messed up and not the UIDs (with UGID24)!?


dump/restore still don't work. Might there be a problem because I'm moving the guest systems from 
lvm1 to lvm2?


Herbert Poetzl wrote:

On Wed, Dec 21, 2005 at 10:09:21PM +0100, Lars Braeuer wrote:


Hi,

I'm having an issue with some files (group owner) when migrating a
vserver from a 2.4.30-vs1.2.10-vquota (GID24) system, ext3 partitions
mounted with tagctx to the new 2.6.14.3-vs2.0.1 system (GID24,
util-vserver-0.30.209), ext3 partitions mounted with tagxid. The
context id is the same (fixed) on both systems.



you sure that the original partition is mounted with
the proper tagxid (former tagctx) option? i.e. that
the files show sane uid/gid at the 'source'

>

When tarring the files on one vserver and untarring it on the new one,
a few files have different GID's. UID's are correct as far as I can
see.



could you tar a few of those problematic files for
me and upload or attach them to the next mail?


I tarred a few files that have the wrong GID 16777214 find it at:
http://mpex.net/tmp/wrong-xid.tar

mtab entry (on 'source'):
/dev/vg/test /vservers/test ext3 rw,tagctx,usrquota,grpquota 0 0

mtab (on 'destination'):
/dev/vg/test /vservers/test ext3 rw,tagxid 0 0

on the 'source' everything looks fine. uid's/gid's are correct.

here's exactly what I'm doing to transfer the files with dump.
- destination: create lvm2 partition with same size as the old one
- destination: create ext3 fs / mount fs with tagxid option
- source: dump 0zf /tmp/test.dump /vservers/test ; 
- destination: cd /vservers/test ; restore rf /test.dump
- destination: Lots of GIDs are 16777214, UIDs are fine

As we are not really using the tagging on the old and new system for quota (we planned to, but we 
never used it), is there a way to remove it before transfering the guest system via dump, i.e. with 
"chxid -c 0" or something?






Same issue when using dump/restore to transfer the guest system to the
new host. The only difference is, that the GID is 16777214 on those
files.



just to make sure, both systems use UGID24?


yep, triple checked that.





Running chxid with the desired context id from the hostsystem doesn't
change anything.

Any hints? Am I missing anything?



we'll see ...
best,
Herbert



Regards,

Lars


Best,

Lars
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Step by Step Guide to a nano-vserver

2005-12-22 Thread Michael S. Zick
On Thu December 22 2005 03:25, Joel Soete wrote:
> > Joel, and Group;
> > 
> > I have a rough draft of the step-by-step guide
> > to creating a nano-vserver posted.
> > 
> mmm, I see the baby is a nano baby girl ;-).
> may be could you (we) find a more shiny name?
> (refbox, though?)
> But as she made the light on the obscure side of the force, she's bright,
> isn't it? name her Bridget?
> Just a suggestion, in fine, you are its father ;-)
> 
Good suggestion 
I want to live with her for another
day or two before I decide what to call her ;)

> > Comments welcome from anyone with time to
> > read through it.
> > 
> Just a comment:
> What do you think to put the note in paragraph 5.1:
> "Vserver extends the concept of using ..."
> better as a general introduction?
> (it's the basis but doesn't seems to me enough 'spotlighted')
> 
I have added an abstract, an introduction, and changed the
title. 
The morning version of the guide is posted at the same link,
just refresh your copy.
No changes to the baby01.bin file or how to run it.

That file is a Linux/x86 system. It will be awhile before I
can build a hppa-risc version.

> > The end result of the tutorial is a virtual server
> > running Bash and BusyBox fully contained within a
> > single file. (Actually, the testfs.sh test file.)
> > 
> > The current draft here:
> > 
> > 
> and a question about the:
> mount -o bind /proc /vservers/refbox/proc
> 
> why? 
>
Because :

> 
> In fact, till now, I just used 'vserver DebSid star/stop/enter' and my
> DebSid/fstab already contained:
> none/proc   procdefaults0 0
> 
> Is there a subtle difference, I missed?
>
That 'vserver' command is a (large) Bash script in front
of the low-level commands. 
That is one of the many things the script does for the
user.

The baby uses the low-level commands for now, just
to expose to the new user what is happening.

Also, she can not be started with "vserver refbox start"
without a bunch of complaints from the vserver script.

I will fix that when I get it figured out.

> 
> > The entire virtual server as a compressed file:
> > 
> > 
> > Watch out, she is heavy, weights in at about 4Mb.
> > 
> Congratulation: "you are the father of a nice baby" ;-)
> 
> Thanks a lot,
> Joel
> 
> (PS: her foreseen clone would make stuff more clear, if possible, name her
> Clara ;<))
> 
Today's project is to make a clone of her.

And then try using the file extended attributes and
file access lists.
Maybe I will be able to learn how to protect her from
heavy feet in the host.

I will be updating the step-by-step as I go, also including
anything others mention to me.

Thanks very much for your comments Joel.
Mike
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re:[Vserver] Step by Step Guide to a nano-vserver

2005-12-22 Thread Joel Soete
> Joel, and Group;
>
> I have a rough draft of the step-by-step guide
> to creating a nano-vserver posted.
>
mmm, I see the baby is a nano baby girl ;-).
may be could you (we) find a more shiny name?
(refbox, though?)
But as she made the light on the obscure side of the force, she's bright,
isn't it? name her Bridget?
Just a suggestion, in fine, you are its father ;-)

> Comments welcome from anyone with time to
> read through it.
>
Just a comment:
What do you think to put the note in paragraph 5.1:
"Vserver extends the concept of using ..."
better as a general introduction?
(it's the basis but doesn't seems to me enough 'spotlighted')

> The end result of the tutorial is a virtual server
> running Bash and BusyBox fully contained within a
> single file. (Actually, the testfs.sh test file.)
>
> The current draft here:
> 
>
and a question about the:
mount -o bind /proc /vservers/refbox/proc

why?

In fact, till now, I just used 'vserver DebSid star/stop/enter' and my
DebSid/fstab already contained:
none/proc   procdefaults0 0

Is there a subtle difference, I missed?

> The entire virtual server as a compressed file:
> 
>
> Watch out, she is heavy, weights in at about 4Mb.
>
Congratulation: "you are the father of a nice baby" ;-)

Thanks a lot,
Joel

(PS: her foreseen clone would make stuff more clear, if possible, name her
Clara ;<))

---
A free anti-spam and anti-virus filter on all Scarlet mailboxes
More info on http://www.scarlet.be/

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver