Re: [Vserver] anybody has experience for Vserver on ARM

2007-05-09 Thread Martin
On Sun, 2007-05-06 at 08:14 -0400, Wenbin Zhang wrote:
 Hi All,
 
 I can use vcmd command correctly on my ARM phone. However, I can
 only use vcmd to
 start a single isolated process, and no way to build a competed guest
 machine. Anybody know
 how to use vcmd to build a completed guest? I guess we might be
 achieve this to copy a new 
 filesystem and start a init process by some approach.
 
 Because the vserver build package does not work on my phone, If vcmd
 cannot build a completed
 guest, do we have any other approach to build a guest? 

I am not an expert but it is my opinion that you should fix the vserver
commands rather than trying to work around them.  In the long run I
suspect this is a better strategy.

HTH

Cheers,
 - Martin


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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-05-06 Thread Wenbin Zhang

Hi All,

I can use vcmd command correctly on my ARM phone. However, I can only use
vcmd to
start a single isolated process, and no way to build a competed guest
machine. Anybody know
how to use vcmd to build a completed guest? I guess we might be achieve this
to copy a new
filesystem and start a init process by some approach.

Because the vserver build package does not work on my phone, If vcmd
cannot build a completed
guest, do we have any other approach to build a guest?

Thanks,
Wenbin


well, there are many different ways to 'build' a guest


 For example, I use below command to create the guest:
 #/sbin/vserver va780 build -m rpm --context 43 --hostname=va780
--interface
 va7800=eth0:192.168.1.2/24 --rootdir /vserver1 --pkgbase /vserver1/.pkg
--
 -d fc6

this is one of them, although it has some bugs, like the
--hostname= which should be --hostname va780.some.domain


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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-05-02 Thread Enrico Scholz
[EMAIL PROTECTED] (Herbert Poetzl) writes:

 [EMAIL PROTECTED]:/work/test# strace -fF -o vcmd.trace ./vcmd
 syscall: unknown syscall trap 0xef000139

this might be/is an EABI issue


 unknow syscall should be a strace bug, I think. The
 basic failure is becuase of illegal instruction during
 vserver(num_cmd, num_id, data) syscall.

 well, the syscall trap looks fine, 313 is the syscall
 on arm and it seems that util-vserver uses the same
 implementation, so that should be fine too ...

no; it uses the traditional version.

fyi: ARM kernel can be built with two different ABIs (OABI and
EABI) which differ in structure alignment. EABI (which seems to be
used here) is relatively new and e.g. not supported by dietlibc
yet. Syscall conventions might be different too which is causing
the seen problems.



 CC: arm-angstrom-linux-gnueabi-gcc,
   Use dietlibc: no (you have been warned)
  syscall(2) invocation: traditional



Enrico


pgpC4DLdCfqvj.pgp
Description: PGP signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-30 Thread Herbert Poetzl
On Sun, Apr 29, 2007 at 05:30:45PM -0400, Wenbin Zhang wrote:
 Actually I think the syscall error is because of strace on ARM, not because
 of vcmd.
 [EMAIL PROTECTED]:/work/test# ./vcmd
 wenbin print: num_cmd = 0, num_id = 0
 Illegal instruction
 
 [EMAIL PROTECTED]:/work/test# strace -fF -o vcmd.trace ./vcmd
 syscall: unknown syscall trap 0xef000139
 
 unknow syscall should be a strace bug, I think. The basic failure is
 becuase of illegal instruction during vserver(num_cmd, num_id, data)
 syscall.

well, the syscall trap looks fine, 313 is the syscall
on arm and it seems that util-vserver uses the same
implementation, so that should be fine too ...

you might get a warning at compile time, if that would
be interesting to have, otherwise something with your
toolchain could be wrong ...

best,
Herbert

 Thanks,
 Wenbin
 
 
 On 4/29/07, Wenbin Zhang [EMAIL PROTECTED] wrote:
 
 I traced the vcmd command. When the vcmd command is run and without
 arguments, the error is:
 syscall: unknown syscall trap 0xef000139
 
 This syscall error is occured while num_ret = vserver(num_cmd, num_id,
 data); is executed. I guss ARM is using a different method to register new
 syscall?
 
 Thanks,
 Wenbin
 
 
 On 4/29/07, Herbert Poetzl [EMAIL PROTECTED] wrote:
 
  On Fri, Apr 27, 2007 at 01:02:34PM -0400, Wenbin Zhang wrote:
   Hello, guys,
  
   This time I build a new Vserver enabled kernel and GPE package, now
  solved
   the Illegal instruction on ARM.
   But I tried vcmd -i 42 -C ctx_create -- ps auxwww, it just simply
   hung (but I can interrupt the command).
   Any approach to solve this?
 
  strace -fF -o vcmd.trace vcmd
 
   Btw, I tried below command for the vserver kernel, seems OK.
   1)[EMAIL PROTECTED]:/work/vcmd-0.08# cat /proc/virtual/info
   VCIVersion: 0002:0002
   VCISyscall: 313
   VCIKernel:  0336
  
   2) [EMAIL PROTECTED]:/work/vcmd-0.08# setattr --~hide /proc/uptime
  
   3) [EMAIL PROTECTED]:/work/vcmd-0.08# vserver-stat
   CTX   PROCVSZRSS  userTIME   sysTIMEUPTIME NAME
   0   49 165.9M  63.9M   0m55s76   0m24s19  10m14s64 root server
  
   4) [EMAIL PROTECTED]:/work/vcmd-0.08# vserver-info
   Versions:
 Kernel: 2.6.16.13-vs2.0.3-rc1
 VS-API: 0x00020002
   util-vserver: 0.30.212; Apr 17 2007, 18:47:18
  
   Features:
 CC: arm-angstrom-linux-gnueabi-gcc,
   arm-angstrom-linux-gnueabi-gcc (GCC) 4.1.1
CXX: arm-angstrom-linux-gnueabi-c++,
   arm-angstrom-linux-gnueabi-c++ (GCC) 4.1.1
   CPPFLAGS: ''
 CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W
   -funit-at-a-time'
   CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
   -fmessage-length=0 -funit-at-a-time'
 build/host: i686-pc-linux-gnu/arm-unknown-none
   Use dietlibc: no (you have been warned)
  ~
 
 Build C++ programs: yes
 Build C99 programs: yes
 Available APIs: v13,net,v21
  ext2fs Source: kernel
  syscall(2) invocation: traditional
vserver(2) syscall#: 313/fallback
  
   Paths:
 prefix:
  sysconf-Directory: ${prefix}/etc
  cfg-Directory: ${prefix}/etc/vservers
   initrd-Directory: $(sysconfdir)/init.d
 pkgstate-Directory: ${prefix}/var/run/vservers
vserver-Rootdir: /vservers
  
   Assumed 'SYSINFO' as no other option given; try '--help' for more
   information.
  
   Seems everything is fine, but why vcmd cannot be run correctly?
 
  no idea, maybe a broken toolchain?
 
  best,
  Herbert
 
   (I can run vcmd correctly on my PC machine)
  
   Thanks,
   Wenbin
  
   On 4/27/07, Wenbin Zhang [EMAIL PROTECTED] wrote:
   
   
   
   On 4/26/07, Herbert Poetzl  [EMAIL PROTECTED] wrote:
   
On Wed, Apr 25, 2007 at 12:40:12AM -0400, Wenbin Zhang wrote:
 
 
  vcmd -i 42 -C ctx_create -- ps auxwww
  vserver: ret = 0x002A (42)
  USER   PID %CPU %MEMVSZ   RSS TTY  STAT START
  TIME
COMMAND
  root 11780   0.0  0.0   1944   672 pts/2R+   13:35
  0:00 ps
  auxwww
 
 I downloaded the vcmd source, and crosscompiled it, then copy to
  the
ARM
 phone, however, when I tried to run the command, it cannot create
  the
 process successfully, very strange...
 when I run vcmd -h, it can show the help, but  when I run 
  vcmd -i
42 -C
 ctx_create -- ps auxwww, it just hung.
 [EMAIL PROTECTED]:/work/vcmd- 0.08# ./vcmd -h
 This is ./vcmd V0.08
 options are:
  -hprint this help message
  -Adump data after syscall
  -Bdump data before syscall

 Btw, my ARM kernel is vserver enabled, I can find the
 /proc/virtual/info does exist but it is an empty file.
   
that sounds odd ...
   
 I guess might be the vserver kernel module has some
 problem, 

Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-30 Thread Wenbin Zhang

yes, i got the warning message while compile vcmd:

[EMAIL PROTECTED] vcmd-0.08]# make
arm-angstrom-linux-gnueabi-gcc -g -Wall -O2 -Ivserver -o vcmd vcmd.c
In file included from vserver.h:4,
from vcmd.c:34:
syscall.h:110:2: warning: #warning syscall arch arm not tested yet
.

Seems the syscall does not tested on ARM. Anybody make vserver successfully
on ARM? Thank you so much!

Thanks,
Wenbin


On 4/30/07, Herbert Poetzl [EMAIL PROTECTED] wrote:


On Sun, Apr 29, 2007 at 05:30:45PM -0400, Wenbin Zhang wrote:
 Actually I think the syscall error is because of strace on ARM, not
because
 of vcmd.
 [EMAIL PROTECTED]:/work/test# ./vcmd
 wenbin print: num_cmd = 0, num_id = 0
 Illegal instruction

 [EMAIL PROTECTED]:/work/test# strace -fF -o vcmd.trace ./vcmd
 syscall: unknown syscall trap 0xef000139

 unknow syscall should be a strace bug, I think. The basic failure is
 becuase of illegal instruction during vserver(num_cmd, num_id, data)
 syscall.

well, the syscall trap looks fine, 313 is the syscall
on arm and it seems that util-vserver uses the same
implementation, so that should be fine too ...

you might get a warning at compile time, if that would
be interesting to have, otherwise something with your
toolchain could be wrong ...

best,
Herbert

 Thanks,
 Wenbin


 On 4/29/07, Wenbin Zhang [EMAIL PROTECTED] wrote:
 
 I traced the vcmd command. When the vcmd command is run and without
 arguments, the error is:
 syscall: unknown syscall trap 0xef000139
 
 This syscall error is occured while num_ret = vserver(num_cmd, num_id,
 data); is executed. I guss ARM is using a different method to register
new
 syscall?
 
 Thanks,
 Wenbin
 
 
 On 4/29/07, Herbert Poetzl [EMAIL PROTECTED] wrote:
 
  On Fri, Apr 27, 2007 at 01:02:34PM -0400, Wenbin Zhang wrote:
   Hello, guys,
  
   This time I build a new Vserver enabled kernel and GPE package, now
  solved
   the Illegal instruction on ARM.
   But I tried vcmd -i 42 -C ctx_create -- ps auxwww, it just simply
   hung (but I can interrupt the command).
   Any approach to solve this?
 
  strace -fF -o vcmd.trace vcmd
 
   Btw, I tried below command for the vserver kernel, seems OK.
   1)[EMAIL PROTECTED]:/work/vcmd-0.08# cat /proc/virtual/info
   VCIVersion: 0002:0002
   VCISyscall: 313
   VCIKernel:  0336
  
   2) [EMAIL PROTECTED]:/work/vcmd-0.08# setattr --~hide /proc/uptime
  
   3) [EMAIL PROTECTED]:/work/vcmd-0.08# vserver-stat
   CTX   PROCVSZRSS  userTIME   sysTIMEUPTIME NAME
   0   49 165.9M  63.9M   0m55s76   0m24s19  10m14s64 root server
  
   4) [EMAIL PROTECTED]:/work/vcmd-0.08# vserver-info
   Versions:
 Kernel: 2.6.16.13-vs2.0.3-rc1
 VS-API: 0x00020002
   util-vserver: 0.30.212; Apr 17 2007, 18:47:18
  
   Features:
 CC: arm-angstrom-linux-gnueabi-gcc,
   arm-angstrom-linux-gnueabi-gcc (GCC) 4.1.1
CXX: arm-angstrom-linux-gnueabi-c++,
   arm-angstrom-linux-gnueabi-c++ (GCC) 4.1.1
   CPPFLAGS: ''
 CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W
   -funit-at-a-time'
   CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
   -fmessage-length=0 -funit-at-a-time'
 build/host: i686-pc-linux-gnu/arm-unknown-none
   Use dietlibc: no (you have been warned)
  ~
 
 Build C++ programs: yes
 Build C99 programs: yes
 Available APIs: v13,net,v21
  ext2fs Source: kernel
  syscall(2) invocation: traditional
vserver(2) syscall#: 313/fallback
  
   Paths:
 prefix:
  sysconf-Directory: ${prefix}/etc
  cfg-Directory: ${prefix}/etc/vservers
   initrd-Directory: $(sysconfdir)/init.d
 pkgstate-Directory: ${prefix}/var/run/vservers
vserver-Rootdir: /vservers
  
   Assumed 'SYSINFO' as no other option given; try '--help' for more
   information.
  
   Seems everything is fine, but why vcmd cannot be run correctly?
 
  no idea, maybe a broken toolchain?
 
  best,
  Herbert
 
   (I can run vcmd correctly on my PC machine)
  
   Thanks,
   Wenbin
  
   On 4/27/07, Wenbin Zhang [EMAIL PROTECTED] wrote:
   
   
   
   On 4/26/07, Herbert Poetzl  [EMAIL PROTECTED] wrote:
   
On Wed, Apr 25, 2007 at 12:40:12AM -0400, Wenbin Zhang wrote:
 
 
  vcmd -i 42 -C ctx_create -- ps auxwww
  vserver: ret = 0x002A (42)
  USER   PID %CPU %MEMVSZ   RSS TTY  STAT START
  TIME
COMMAND
  root 11780   0.0  0.0   1944   672 pts/2R+   13:35
  0:00 ps
  auxwww
 
 I downloaded the vcmd source, and crosscompiled it, then copy
to
  the
ARM
 phone, however, when I tried to run the command, it cannot
create
  the
 process successfully, very strange...
 when I run vcmd -h, it can show the help, but  when I run 
  vcmd -i
42 -C
 ctx_create -- 

Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-29 Thread Herbert Poetzl
On Fri, Apr 27, 2007 at 01:02:34PM -0400, Wenbin Zhang wrote:
 Hello, guys,
 
 This time I build a new Vserver enabled kernel and GPE package, now solved
 the Illegal instruction on ARM.
 But I tried vcmd -i 42 -C ctx_create -- ps auxwww, it just simply 
 hung (but I can interrupt the command).
 Any approach to solve this?

strace -fF -o vcmd.trace vcmd

 Btw, I tried below command for the vserver kernel, seems OK.
 1)[EMAIL PROTECTED]:/work/vcmd-0.08# cat /proc/virtual/info
 VCIVersion: 0002:0002
 VCISyscall: 313
 VCIKernel:  0336
 
 2) [EMAIL PROTECTED]:/work/vcmd-0.08# setattr --~hide /proc/uptime
 
 3) [EMAIL PROTECTED]:/work/vcmd-0.08# vserver-stat
 CTX   PROCVSZRSS  userTIME   sysTIMEUPTIME NAME
 0   49 165.9M  63.9M   0m55s76   0m24s19  10m14s64 root server
 
 4) [EMAIL PROTECTED]:/work/vcmd-0.08# vserver-info
 Versions:
   Kernel: 2.6.16.13-vs2.0.3-rc1
   VS-API: 0x00020002
 util-vserver: 0.30.212; Apr 17 2007, 18:47:18
 
 Features:
   CC: arm-angstrom-linux-gnueabi-gcc,
 arm-angstrom-linux-gnueabi-gcc (GCC) 4.1.1
  CXX: arm-angstrom-linux-gnueabi-c++,
 arm-angstrom-linux-gnueabi-c++ (GCC) 4.1.1
 CPPFLAGS: ''
   CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W
 -funit-at-a-time'
 CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
 -fmessage-length=0 -funit-at-a-time'
   build/host: i686-pc-linux-gnu/arm-unknown-none
 Use dietlibc: no (you have been warned)
~

   Build C++ programs: yes
   Build C99 programs: yes
   Available APIs: v13,net,v21
ext2fs Source: kernel
syscall(2) invocation: traditional
  vserver(2) syscall#: 313/fallback
 
 Paths:
   prefix:
sysconf-Directory: ${prefix}/etc
cfg-Directory: ${prefix}/etc/vservers
 initrd-Directory: $(sysconfdir)/init.d
   pkgstate-Directory: ${prefix}/var/run/vservers
  vserver-Rootdir: /vservers
 
 Assumed 'SYSINFO' as no other option given; try '--help' for more
 information.
 
 Seems everything is fine, but why vcmd cannot be run correctly? 

no idea, maybe a broken toolchain?

best,
Herbert

 (I can run vcmd correctly on my PC machine)
 
 Thanks,
 Wenbin
 
 On 4/27/07, Wenbin Zhang [EMAIL PROTECTED] wrote:
 
 
 
 On 4/26/07, Herbert Poetzl [EMAIL PROTECTED] wrote:
 
  On Wed, Apr 25, 2007 at 12:40:12AM -0400, Wenbin Zhang wrote:
   
   
vcmd -i 42 -C ctx_create -- ps auxwww
vserver: ret = 0x002A (42)
USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME
  COMMAND
root 11780  0.0  0.0   1944   672 pts/2R+   13:35   0:00 ps
auxwww
   
   I downloaded the vcmd source, and crosscompiled it, then copy to the
  ARM
   phone, however, when I tried to run the command, it cannot create the
   process successfully, very strange...
   when I run vcmd -h, it can show the help, but  when I run  vcmd -i
  42 -C
   ctx_create -- ps auxwww, it just hung.
   [EMAIL PROTECTED]:/work/vcmd- 0.08# ./vcmd -h
   This is ./vcmd V0.08
   options are:
-hprint this help message
-Adump data after syscall
-Bdump data before syscall
  
   Btw, my ARM kernel is vserver enabled, I can find the
   /proc/virtual/info does exist but it is an empty file.
 
  that sounds odd ...
 
   I guess might be the vserver kernel module has some
   problem, but I cannot figure out what it is, which is the
   thing I am worrying about.
 
  there is no such thing as a Linux-VServer kernel module,
  so I'm pretty sure that is fine ...
 
   Can you think of any ideas?
 
  maybe you compiled the wrong kernel?
  maybe your toolchain is broken?
 
  Not really, I compiled other package with my tool chain, that's fine, no
 problem
 However seems vserver kernel has some problems.
 
 [EMAIL PROTECTED]:/# vserver-info
 Versions:
Kernel: 2.6.16.13-vs2.0.3-rc1-ezx6
VS-API: Illegal instruction
 [EMAIL PROTECTED]:/# vserver-stat
 Illegal instruction
 
 Strange, any possiblities?
 
 Thanks,
 Wenbin
 

 ___
 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] anybody has experience for Vserver on ARM

2007-04-29 Thread Wenbin Zhang

I traced the vcmd command. When the vcmd command is run and without
arguments, the error is:
syscall: unknown syscall trap 0xef000139

This syscall error is occured while num_ret = vserver(num_cmd, num_id,
data); is executed. I guss ARM is using a different method to register new
syscall?

Thanks,
Wenbin


On 4/29/07, Herbert Poetzl [EMAIL PROTECTED] wrote:


On Fri, Apr 27, 2007 at 01:02:34PM -0400, Wenbin Zhang wrote:
 Hello, guys,

 This time I build a new Vserver enabled kernel and GPE package, now
solved
 the Illegal instruction on ARM.
 But I tried vcmd -i 42 -C ctx_create -- ps auxwww, it just simply
 hung (but I can interrupt the command).
 Any approach to solve this?

strace -fF -o vcmd.trace vcmd

 Btw, I tried below command for the vserver kernel, seems OK.
 1)[EMAIL PROTECTED]:/work/vcmd-0.08# cat /proc/virtual/info
 VCIVersion: 0002:0002
 VCISyscall: 313
 VCIKernel:  0336

 2) [EMAIL PROTECTED]:/work/vcmd-0.08# setattr --~hide /proc/uptime

 3) [EMAIL PROTECTED]:/work/vcmd-0.08# vserver-stat
 CTX   PROCVSZRSS  userTIME   sysTIMEUPTIME NAME
 0   49 165.9M  63.9M   0m55s76   0m24s19  10m14s64 root server

 4) [EMAIL PROTECTED]:/work/vcmd-0.08# vserver-info
 Versions:
   Kernel: 2.6.16.13-vs2.0.3-rc1
   VS-API: 0x00020002
 util-vserver: 0.30.212; Apr 17 2007, 18:47:18

 Features:
   CC: arm-angstrom-linux-gnueabi-gcc,
 arm-angstrom-linux-gnueabi-gcc (GCC) 4.1.1
  CXX: arm-angstrom-linux-gnueabi-c++,
 arm-angstrom-linux-gnueabi-c++ (GCC) 4.1.1
 CPPFLAGS: ''
   CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W
 -funit-at-a-time'
 CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
 -fmessage-length=0 -funit-at-a-time'
   build/host: i686-pc-linux-gnu/arm-unknown-none
 Use dietlibc: no (you have been warned)
~

   Build C++ programs: yes
   Build C99 programs: yes
   Available APIs: v13,net,v21
ext2fs Source: kernel
syscall(2) invocation: traditional
  vserver(2) syscall#: 313/fallback

 Paths:
   prefix:
sysconf-Directory: ${prefix}/etc
cfg-Directory: ${prefix}/etc/vservers
 initrd-Directory: $(sysconfdir)/init.d
   pkgstate-Directory: ${prefix}/var/run/vservers
  vserver-Rootdir: /vservers

 Assumed 'SYSINFO' as no other option given; try '--help' for more
 information.

 Seems everything is fine, but why vcmd cannot be run correctly?

no idea, maybe a broken toolchain?

best,
Herbert

 (I can run vcmd correctly on my PC machine)

 Thanks,
 Wenbin

 On 4/27/07, Wenbin Zhang [EMAIL PROTECTED] wrote:
 
 
 
 On 4/26/07, Herbert Poetzl [EMAIL PROTECTED] wrote:
 
  On Wed, Apr 25, 2007 at 12:40:12AM -0400, Wenbin Zhang wrote:
   
   
vcmd -i 42 -C ctx_create -- ps auxwww
vserver: ret = 0x002A (42)
USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME
  COMMAND
root 11780  0.0  0.0   1944   672 pts/2R+   13:35   0:00
ps
auxwww
   
   I downloaded the vcmd source, and crosscompiled it, then copy to
the
  ARM
   phone, however, when I tried to run the command, it cannot create
the
   process successfully, very strange...
   when I run vcmd -h, it can show the help, but  when I run  vcmd
-i
  42 -C
   ctx_create -- ps auxwww, it just hung.
   [EMAIL PROTECTED]:/work/vcmd- 0.08# ./vcmd -h
   This is ./vcmd V0.08
   options are:
-hprint this help message
-Adump data after syscall
-Bdump data before syscall
  
   Btw, my ARM kernel is vserver enabled, I can find the
   /proc/virtual/info does exist but it is an empty file.
 
  that sounds odd ...
 
   I guess might be the vserver kernel module has some
   problem, but I cannot figure out what it is, which is the
   thing I am worrying about.
 
  there is no such thing as a Linux-VServer kernel module,
  so I'm pretty sure that is fine ...
 
   Can you think of any ideas?
 
  maybe you compiled the wrong kernel?
  maybe your toolchain is broken?
 
  Not really, I compiled other package with my tool chain, that's fine,
no
 problem
 However seems vserver kernel has some problems.
 
 [EMAIL PROTECTED]:/# vserver-info
 Versions:
Kernel: 2.6.16.13-vs2.0.3-rc1-ezx6
VS-API: Illegal instruction
 [EMAIL PROTECTED]:/# vserver-stat
 Illegal instruction
 
 Strange, any possiblities?
 
 Thanks,
 Wenbin
 

 ___
 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] anybody has experience for Vserver on ARM

2007-04-29 Thread Wenbin Zhang

Actually I think the syscall error is because of strace on ARM, not because
of vcmd.
[EMAIL PROTECTED]:/work/test# ./vcmd
wenbin print: num_cmd = 0, num_id = 0
Illegal instruction

[EMAIL PROTECTED]:/work/test# strace -fF -o vcmd.trace ./vcmd
syscall: unknown syscall trap 0xef000139

unknow syscall should be a strace bug, I think. The basic failure is
becuase of illegal instruction during vserver(num_cmd, num_id, data)
syscall.

Thanks,
Wenbin




On 4/29/07, Wenbin Zhang [EMAIL PROTECTED] wrote:


I traced the vcmd command. When the vcmd command is run and without
arguments, the error is:
syscall: unknown syscall trap 0xef000139

This syscall error is occured while num_ret = vserver(num_cmd, num_id,
data); is executed. I guss ARM is using a different method to register new
syscall?

Thanks,
Wenbin


On 4/29/07, Herbert Poetzl [EMAIL PROTECTED] wrote:

 On Fri, Apr 27, 2007 at 01:02:34PM -0400, Wenbin Zhang wrote:
  Hello, guys,
 
  This time I build a new Vserver enabled kernel and GPE package, now
 solved
  the Illegal instruction on ARM.
  But I tried vcmd -i 42 -C ctx_create -- ps auxwww, it just simply
  hung (but I can interrupt the command).
  Any approach to solve this?

 strace -fF -o vcmd.trace vcmd

  Btw, I tried below command for the vserver kernel, seems OK.
  1)[EMAIL PROTECTED]:/work/vcmd-0.08# cat /proc/virtual/info
  VCIVersion: 0002:0002
  VCISyscall: 313
  VCIKernel:  0336
 
  2) [EMAIL PROTECTED]:/work/vcmd-0.08# setattr --~hide /proc/uptime
 
  3) [EMAIL PROTECTED]:/work/vcmd-0.08# vserver-stat
  CTX   PROCVSZRSS  userTIME   sysTIMEUPTIME NAME
  0   49 165.9M  63.9M   0m55s76   0m24s19  10m14s64 root server
 
  4) [EMAIL PROTECTED]:/work/vcmd-0.08# vserver-info
  Versions:
Kernel: 2.6.16.13-vs2.0.3-rc1
VS-API: 0x00020002
  util-vserver: 0.30.212; Apr 17 2007, 18:47:18
 
  Features:
CC: arm-angstrom-linux-gnueabi-gcc,
  arm-angstrom-linux-gnueabi-gcc (GCC) 4.1.1
   CXX: arm-angstrom-linux-gnueabi-c++,
  arm-angstrom-linux-gnueabi-c++ (GCC) 4.1.1
  CPPFLAGS: ''
CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W
  -funit-at-a-time'
  CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
  -fmessage-length=0 -funit-at-a-time'
build/host: i686-pc-linux-gnu/arm-unknown-none
  Use dietlibc: no (you have been warned)
 ~

Build C++ programs: yes
Build C99 programs: yes
Available APIs: v13,net,v21
 ext2fs Source: kernel
 syscall(2) invocation: traditional
   vserver(2) syscall#: 313/fallback
 
  Paths:
prefix:
 sysconf-Directory: ${prefix}/etc
 cfg-Directory: ${prefix}/etc/vservers
  initrd-Directory: $(sysconfdir)/init.d
pkgstate-Directory: ${prefix}/var/run/vservers
   vserver-Rootdir: /vservers
 
  Assumed 'SYSINFO' as no other option given; try '--help' for more
  information.
 
  Seems everything is fine, but why vcmd cannot be run correctly?

 no idea, maybe a broken toolchain?

 best,
 Herbert

  (I can run vcmd correctly on my PC machine)
 
  Thanks,
  Wenbin
 
  On 4/27/07, Wenbin Zhang [EMAIL PROTECTED] wrote:
  
  
  
  On 4/26/07, Herbert Poetzl  [EMAIL PROTECTED] wrote:
  
   On Wed, Apr 25, 2007 at 12:40:12AM -0400, Wenbin Zhang wrote:


 vcmd -i 42 -C ctx_create -- ps auxwww
 vserver: ret = 0x002A (42)
 USER   PID %CPU %MEMVSZ   RSS TTY  STAT START
 TIME
   COMMAND
 root 11780   0.0  0.0   1944   672 pts/2R+   13:35
 0:00 ps
 auxwww

I downloaded the vcmd source, and crosscompiled it, then copy to
 the
   ARM
phone, however, when I tried to run the command, it cannot create
 the
process successfully, very strange...
when I run vcmd -h, it can show the help, but  when I run 
 vcmd -i
   42 -C
ctx_create -- ps auxwww, it just hung.
[EMAIL PROTECTED]:/work/vcmd- 0.08# ./vcmd -h
This is ./vcmd V0.08
options are:
 -hprint this help message
 -Adump data after syscall
 -Bdump data before syscall
   
Btw, my ARM kernel is vserver enabled, I can find the
/proc/virtual/info does exist but it is an empty file.
  
   that sounds odd ...
  
I guess might be the vserver kernel module has some
problem, but I cannot figure out what it is, which is the
thing I am worrying about.
  
   there is no such thing as a Linux-VServer kernel module,
   so I'm pretty sure that is fine ...
  
Can you think of any ideas?
  
   maybe you compiled the wrong kernel?
   maybe your toolchain is broken?
  
   Not really, I compiled other package with my tool chain, that's
 fine, no
  problem
  However seems vserver kernel has some problems.
  
  [EMAIL PROTECTED] :/# vserver-info
  Versions:
 Kernel: 

Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-27 Thread Wenbin Zhang

On 4/26/07, Herbert Poetzl [EMAIL PROTECTED] wrote:


On Wed, Apr 25, 2007 at 12:40:12AM -0400, Wenbin Zhang wrote:
 
 
  vcmd -i 42 -C ctx_create -- ps auxwww
  vserver: ret = 0x002A (42)
  USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME
COMMAND
  root 11780  0.0  0.0   1944   672 pts/2R+   13:35   0:00 ps
  auxwww
 
 I downloaded the vcmd source, and crosscompiled it, then copy to the
ARM
 phone, however, when I tried to run the command, it cannot create the
 process successfully, very strange...
 when I run vcmd -h, it can show the help, but  when I run  vcmd -i 42
-C
 ctx_create -- ps auxwww, it just hung.
 [EMAIL PROTECTED]:/work/vcmd-0.08# ./vcmd -h
 This is ./vcmd V0.08
 options are:
  -hprint this help message
  -Adump data after syscall
  -Bdump data before syscall

 Btw, my ARM kernel is vserver enabled, I can find the
 /proc/virtual/info does exist but it is an empty file.

that sounds odd ...

 I guess might be the vserver kernel module has some
 problem, but I cannot figure out what it is, which is the
 thing I am worrying about.

there is no such thing as a Linux-VServer kernel module,
so I'm pretty sure that is fine ...

 Can you think of any ideas?

maybe you compiled the wrong kernel?
maybe your toolchain is broken?

Not really, I compiled other package with my tool chain, that's fine, no

problem
However seems vserver kernel has some problems.

[EMAIL PROTECTED]:/# vserver-info
Versions:
  Kernel: 2.6.16.13-vs2.0.3-rc1-ezx6
  VS-API: Illegal instruction
[EMAIL PROTECTED]:/# vserver-stat
Illegal instruction

Strange, any possiblities?

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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-27 Thread Wenbin Zhang

Hello, guys,

This time I build a new Vserver enabled kernel and GPE package, now solved
the Illegal instruction on ARM.
But I tried vcmd -i 42 -C ctx_create -- ps auxwww, it just simply hung(but
I can interrupt the command).
Any approach to solve this?

Btw, I tried below command for the vserver kernel, seems OK.
1)[EMAIL PROTECTED]:/work/vcmd-0.08# cat /proc/virtual/info
VCIVersion: 0002:0002
VCISyscall: 313
VCIKernel:  0336

2) [EMAIL PROTECTED]:/work/vcmd-0.08# setattr --~hide /proc/uptime

3) [EMAIL PROTECTED]:/work/vcmd-0.08# vserver-stat
CTX   PROCVSZRSS  userTIME   sysTIMEUPTIME NAME
0   49 165.9M  63.9M   0m55s76   0m24s19  10m14s64 root server

4) [EMAIL PROTECTED]:/work/vcmd-0.08# vserver-info
Versions:
  Kernel: 2.6.16.13-vs2.0.3-rc1
  VS-API: 0x00020002
util-vserver: 0.30.212; Apr 17 2007, 18:47:18

Features:
  CC: arm-angstrom-linux-gnueabi-gcc,
arm-angstrom-linux-gnueabi-gcc (GCC) 4.1.1
 CXX: arm-angstrom-linux-gnueabi-c++,
arm-angstrom-linux-gnueabi-c++ (GCC) 4.1.1
CPPFLAGS: ''
  CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W
-funit-at-a-time'
CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
-fmessage-length=0 -funit-at-a-time'
  build/host: i686-pc-linux-gnu/arm-unknown-none
Use dietlibc: no (you have been warned)
  Build C++ programs: yes
  Build C99 programs: yes
  Available APIs: v13,net,v21
   ext2fs Source: kernel
   syscall(2) invocation: traditional
 vserver(2) syscall#: 313/fallback

Paths:
  prefix:
   sysconf-Directory: ${prefix}/etc
   cfg-Directory: ${prefix}/etc/vservers
initrd-Directory: $(sysconfdir)/init.d
  pkgstate-Directory: ${prefix}/var/run/vservers
 vserver-Rootdir: /vservers

Assumed 'SYSINFO' as no other option given; try '--help' for more
information.


Seems everything is fine, but why vcmd cannot be run correctly? (I can run
vcmd correctly on my PC machine)

Thanks,
Wenbin

On 4/27/07, Wenbin Zhang [EMAIL PROTECTED] wrote:




On 4/26/07, Herbert Poetzl [EMAIL PROTECTED] wrote:

 On Wed, Apr 25, 2007 at 12:40:12AM -0400, Wenbin Zhang wrote:
  
  
   vcmd -i 42 -C ctx_create -- ps auxwww
   vserver: ret = 0x002A (42)
   USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME
 COMMAND
   root 11780  0.0  0.0   1944   672 pts/2R+   13:35   0:00 ps
   auxwww
  
  I downloaded the vcmd source, and crosscompiled it, then copy to the
 ARM
  phone, however, when I tried to run the command, it cannot create the
  process successfully, very strange...
  when I run vcmd -h, it can show the help, but  when I run  vcmd -i
 42 -C
  ctx_create -- ps auxwww, it just hung.
  [EMAIL PROTECTED]:/work/vcmd- 0.08# ./vcmd -h
  This is ./vcmd V0.08
  options are:
   -hprint this help message
   -Adump data after syscall
   -Bdump data before syscall
 
  Btw, my ARM kernel is vserver enabled, I can find the
  /proc/virtual/info does exist but it is an empty file.

 that sounds odd ...

  I guess might be the vserver kernel module has some
  problem, but I cannot figure out what it is, which is the
  thing I am worrying about.

 there is no such thing as a Linux-VServer kernel module,
 so I'm pretty sure that is fine ...

  Can you think of any ideas?

 maybe you compiled the wrong kernel?
 maybe your toolchain is broken?

 Not really, I compiled other package with my tool chain, that's fine, no
problem
However seems vserver kernel has some problems.

[EMAIL PROTECTED]:/# vserver-info
Versions:
   Kernel: 2.6.16.13-vs2.0.3-rc1-ezx6
   VS-API: Illegal instruction
[EMAIL PROTECTED]:/# vserver-stat
Illegal instruction

Strange, any possiblities?

Thanks,
Wenbin

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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-26 Thread Herbert Poetzl
On Wed, Apr 25, 2007 at 12:40:12AM -0400, Wenbin Zhang wrote:
 
 
  vcmd -i 42 -C ctx_create -- ps auxwww
  vserver: ret = 0x002A (42)
  USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
  root 11780  0.0  0.0   1944   672 pts/2R+   13:35   0:00 ps
  auxwww
 
 I downloaded the vcmd source, and crosscompiled it, then copy to the ARM
 phone, however, when I tried to run the command, it cannot create the
 process successfully, very strange...
 when I run vcmd -h, it can show the help, but  when I run  vcmd -i 42 -C
 ctx_create -- ps auxwww, it just hung.
 [EMAIL PROTECTED]:/work/vcmd-0.08# ./vcmd -h
 This is ./vcmd V0.08
 options are:
  -hprint this help message
  -Adump data after syscall
  -Bdump data before syscall
 
 Btw, my ARM kernel is vserver enabled, I can find the
 /proc/virtual/info does exist but it is an empty file. 

that sounds odd ...

 I guess might be the vserver kernel module has some 
 problem, but I cannot figure out what it is, which is the
 thing I am worrying about. 

there is no such thing as a Linux-VServer kernel module,
so I'm pretty sure that is fine ...

 Can you think of any ideas?

maybe you compiled the wrong kernel?
maybe your toolchain is broken?

best,
Herbert

 Thanks,
 Wenbin

 ___
 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] anybody has experience for Vserver on ARM

2007-04-25 Thread Michael S. Zick
On Tue April 24 2007 10:21, Martin wrote:
 On Tue, 2007-04-24 at 07:58 -0400, Wenbin Zhang wrote:
  Hi Martin, 
  
  FC6 has not been ported to ARM. I tried -d fc6, that does not work.
  But what should be used for -d option on ARM? Thank you very much!
 If I am correct then -d controls the distro of the guest that you are
 building.  By default only the common few distros are supported, but I'm
 told that it's pretty simple to add support for others (check the Wiki /
 archives I'd guess).  Of the top of my head I couldn't tell you which
 distros other than Debian have an ARM port.


I can verify that Debian/Etch runs just fine on my ARM machine, see:
http://www.cyrius.com/debian/nslu2/

I have not checked or tried a vserver enabled kernel yet though - 
still on my rather long to-do list.

But all of the usual distro software will just install and run.

Perhaps you could pop for one of these low cost machines* and build
native anything you want for your fone?

Mike 
* your will want to add the console port and up the clock -
the only modifications I made to my off the shelf machine.
See links from the above url.

 HTH
 
 Cheers,
  - Martin
 
 
 ___
 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] anybody has experience for Vserver on ARM

2007-04-24 Thread Martin
On Mon, 2007-04-23 at 11:33 -0400, Wenbin Zhang wrote:
 Now I am using -d fc6 to build the guest.
Has Fedora Core 6 been ported to ARM?  I didn't think it had been.
Obviously I'm missing something.

Cheers,
 - Martin


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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-24 Thread Wenbin Zhang

Hi Martin,

FC6 has not been ported to ARM. I tried -d fc6, that does not work. But
what should be used for -d option on ARM? Thank you very much!

Thanks,
Wenibn

On 4/24/07, Martin [EMAIL PROTECTED] wrote:


On Mon, 2007-04-23 at 11:33 -0400, Wenbin Zhang wrote:
 Now I am using -d fc6 to build the guest.
Has Fedora Core 6 been ported to ARM?  I didn't think it had been.
Obviously I'm missing something.

Cheers,
- Martin



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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-24 Thread Wenbin Zhang

Btw, Anybody run Vserver successfully on Arm phone? I am using a Moto E680i
phone, with GPE or OPIE installed, and very doubt vserver can run on my
platform...

Thanks,
Wenbin

On 4/24/07, Wenbin Zhang [EMAIL PROTECTED] wrote:


Hi Martin,

FC6 has not been ported to ARM. I tried -d fc6, that does not work. But
what should be used for -d option on ARM? Thank you very much!

Thanks,
Wenibn

On 4/24/07, Martin [EMAIL PROTECTED] wrote:

 On Mon, 2007-04-23 at 11:33 -0400, Wenbin Zhang wrote:
  Now I am using -d fc6 to build the guest.
 Has Fedora Core 6 been ported to ARM?  I didn't think it had been.
 Obviously I'm missing something.

 Cheers,
 - Martin




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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-24 Thread Herbert Poetzl
On Mon, Apr 23, 2007 at 04:14:49PM -0400, Wenbin Zhang wrote:
 well, depends on _what_ you install and _what_ you
 actually need, complete kernel and userspace to
 get the Linux-VServer isolation working should be
 doable without any libraries and external tools,
 just with something like vcmd, but if you want the
 full userspace stuff, including legacy and guest
 building (which I consider extreme for a phone)
 you'll have to provide a bunch of tools and libs
 too ...
 
 
 Hello, Thank you very much for your response.
 I just want to build the vserver guest, and can login the guest.

well, there are many different ways to 'build' a guest

 For example, I use below command to create the guest:
 #/sbin/vserver va780 build -m rpm --context 43 --hostname=va780 --interface
 va7800=eth0:192.168.1.2/24 --rootdir /vserver1 --pkgbase /vserver1/.pkg --
 -d fc6

this is one of them, although it has some bugs, like the
--hostname= which should be --hostname va780.some.domain

 #vserver va780 enter
 
 What's your mean get the Linux-VServer isolation working, I guess we
 definitely need build a guest, right?

no, guests are complex and specialized forms of the
modular isolation (processes, networking, filesystem) ...

 What's the vcmd doing? 

it issues all kinds of Linux-VServer syscall commands
and thus allows to utilize the complete Linux-VServer API

 I hardly can find downloadable source/binary for vcmd.

you must have been hardly looking then :)

http://vserver.13thfloor.at/Experimental/TOOLS/vcmd-0.08.tar.bz2

best,
Herbert

 Thanks,
 Wenbin

 ___
 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] anybody has experience for Vserver on ARM

2007-04-24 Thread Martin
On Tue, 2007-04-24 at 07:58 -0400, Wenbin Zhang wrote:
 Hi Martin, 
 
 FC6 has not been ported to ARM. I tried -d fc6, that does not work.
 But what should be used for -d option on ARM? Thank you very much!
If I am correct then -d controls the distro of the guest that you are
building.  By default only the common few distros are supported, but I'm
told that it's pretty simple to add support for others (check the Wiki /
archives I'd guess).  Of the top of my head I couldn't tell you which
distros other than Debian have an ARM port.

HTH

Cheers,
 - Martin


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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-24 Thread Martin
On Tue, 2007-04-24 at 09:05 -0400, Wenbin Zhang wrote:
 Btw, Anybody run Vserver successfully on Arm phone? I am using a Moto
 E680i phone, with GPE or OPIE installed, and very doubt vserver can
 run on my platform...
I haven't tried it but I see no reason why vserver couldn't be run on
your ARM system; assuming that it has a Linux kernel running on it
already.  It may take a bit of work and you may have to be pretty slow
and methodical baout getting it running but it should be possible.  When
I was trying to get vserver running on my UltraSPARC based server, the
people here (esp. Bertl) were very helpful and supportive.  I suspect by
getting it running on ARM you will help improve the software as well as
helping anyone else who is working on using vserver on an embedded
platform.

Cheers,
 - Martin


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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-24 Thread Herbert Poetzl
On Tue, Apr 24, 2007 at 09:05:28AM -0400, Wenbin Zhang wrote:
 Btw, Anybody run Vserver successfully on Arm phone? I am using a Moto
 E680i phone, with GPE or OPIE installed, and very doubt vserver can
 run on my platform...

if you send me a phone, I will gladly install the
necessary stuff to create a Linux-VServer guest
there and test that everything works :)

best,
Herbert

 Thanks,
 Wenbin
 
 On 4/24/07, Wenbin Zhang [EMAIL PROTECTED] wrote:
 
 Hi Martin,
 
 FC6 has not been ported to ARM. I tried -d fc6, that does not work. But
 what should be used for -d option on ARM? Thank you very much!
 
 Thanks,
 Wenibn
 
 On 4/24/07, Martin [EMAIL PROTECTED] wrote:
 
  On Mon, 2007-04-23 at 11:33 -0400, Wenbin Zhang wrote:
   Now I am using -d fc6 to build the guest.
  Has Fedora Core 6 been ported to ARM?  I didn't think it had been.
  Obviously I'm missing something.
 
  Cheers,
  - Martin
 
 
 
 

 ___
 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] anybody has experience for Vserver on ARM

2007-04-24 Thread Wenbin Zhang


 For example, I use below command to create the guest:
 #/sbin/vserver va780 build -m rpm --context 43 --hostname=va780
--interface
 va7800=eth0:192.168.1.2/24 --rootdir /vserver1 --pkgbase /vserver1/.pkg
--
 -d fc6

this is one of them, although it has some bugs, like the
--hostname= which should be --hostname va780.some.domain



The other ways mean vcmd, right?
But I reviewed the page
http://linux-vserver.org/VCMD_HowTo

Seems no way to create isolated process, right?


#vserver va780 enter

 What's your mean get the Linux-VServer isolation working, I guess we
 definitely need build a guest, right?

no, guests are complex and specialized forms of the
modular isolation (processes, networking, filesystem) ...

 What's the vcmd doing?

it issues all kinds of Linux-VServer syscall commands
and thus allows to utilize the complete Linux-VServer API



Thanks :-) Any detailed documents other than
http://linux-vserver.org/VCMD_HowTo ?


I hardly can find downloadable source/binary for vcmd.

you must have been hardly looking then :)

http://vserver.13thfloor.at/Experimental/TOOLS/vcmd-0.08.tar.bz2



Thanks ..

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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-24 Thread Martin
On Tue, 2007-04-24 at 11:46 -0400, Wenbin Zhang wrote:
 Thanks, Martin.
 
 Do you mean Debian has an ARM port?
http://www.debian.org/ports/arm/

  But I tried -d debian on arm, 
 But it told me Can not find configuration for the distribution
 'debian'.
 Why that?
Maybe debian isn't the right word or perhaps you need to change one of
the other parameters as well.  Without you posting the exact command you
ran and the exact output, it's difficult to tell.  Maybe searching the
wiki / archive for 'how to install a Debian guest', might point you in
the right direction .  This page:

http://linux-vserver.org/Building_Guest_Systems

has instructions for Ubuntu guests.  Given the common lineage between
the two I suspect it could be adapted for installing Debian guests.

HTH

Cheers,
 - Martin


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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-24 Thread Herbert Poetzl
On Tue, Apr 24, 2007 at 11:43:54AM -0400, Wenbin Zhang wrote:
 
  For example, I use below command to create the guest:
  #/sbin/vserver va780 build -m rpm --context 43 --hostname=va780
 --interface
  va7800=eth0:192.168.1.2/24 --rootdir /vserver1 --pkgbase /vserver1/.pkg
 --
  -d fc6
 
 this is one of them, although it has some bugs, like the
 --hostname= which should be --hostname va780.some.domain
 
 
 The other ways mean vcmd, right?
 But I reviewed the page
 http://linux-vserver.org/VCMD_HowTo
 
 Seems no way to create isolated process, right?

why do you think so? vcmd can do everything necessary
for context isolation and context setup (for both,
process and network contexts)

vcmd -i 42 -C ctx_create -- ps auxwww
vserver: ret = 0x002A (42)
USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
root 11780  0.0  0.0   1944   672 pts/2R+   13:35   0:00 ps auxwww

best,
Herbert

 #vserver va780 enter
 
  What's your mean get the Linux-VServer isolation working, I guess we
  definitely need build a guest, right?
 
 no, guests are complex and specialized forms of the
 modular isolation (processes, networking, filesystem) ...
 
  What's the vcmd doing?
 
 it issues all kinds of Linux-VServer syscall commands
 and thus allows to utilize the complete Linux-VServer API
 
 
 Thanks :-) Any detailed documents other than
 http://linux-vserver.org/VCMD_HowTo ?
 
 I hardly can find downloadable source/binary for vcmd.
 
 you must have been hardly looking then :)
 
 http://vserver.13thfloor.at/Experimental/TOOLS/vcmd-0.08.tar.bz2
 
 
 Thanks ..
 
 Wenbin

 ___
 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] anybody has experience for Vserver on ARM

2007-04-24 Thread Wenbin Zhang

On 4/24/07, Herbert Poetzl [EMAIL PROTECTED] wrote:


On Tue, Apr 24, 2007 at 11:43:54AM -0400, Wenbin Zhang wrote:
 
  For example, I use below command to create the guest:
  #/sbin/vserver va780 build -m rpm --context 43 --hostname=va780
 --interface
  va7800=eth0:192.168.1.2/24 --rootdir /vserver1 --pkgbase
/vserver1/.pkg
 --
  -d fc6
 
 this is one of them, although it has some bugs, like the
 --hostname= which should be --hostname va780.some.domain


 The other ways mean vcmd, right?
 But I reviewed the page
 http://linux-vserver.org/VCMD_HowTo

 Seems no way to create isolated process, right?

why do you think so? vcmd can do everything necessary
for context isolation and context setup (for both,
process and network contexts)

vcmd -i 42 -C ctx_create -- ps auxwww
vserver: ret = 0x002A (42)
USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
root 11780  0.0  0.0   1944   672 pts/2R+   13:35   0:00 ps auxwww

Thanks! That's pretty good.

One more question, If I create 3 vserver processes by this way, and I allow
the 3 processes can access only certain files in my machine, for example,
only 4 files on my systems.
Can I group the 3 processes and 4 files together? say, they can see each
other on their vserver domain, but they will not be accessible by other
program on my host machine?

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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-24 Thread Herbert Poetzl
On Tue, Apr 24, 2007 at 02:18:57PM -0400, Wenbin Zhang wrote:
 On 4/24/07, Herbert Poetzl [EMAIL PROTECTED] wrote:
 
 On Tue, Apr 24, 2007 at 11:43:54AM -0400, Wenbin Zhang wrote:
  
   For example, I use below command to create the guest:
   #/sbin/vserver va780 build -m rpm --context 43 --hostname=va780
  --interface
   va7800=eth0:192.168.1.2/24 --rootdir /vserver1 --pkgbase
 /vserver1/.pkg
  --
   -d fc6
  
  this is one of them, although it has some bugs, like the
  --hostname= which should be --hostname va780.some.domain
 
 
  The other ways mean vcmd, right?
  But I reviewed the page
  http://linux-vserver.org/VCMD_HowTo
 
  Seems no way to create isolated process, right?
 
 why do you think so? vcmd can do everything necessary
 for context isolation and context setup (for both,
 process and network contexts)
 
 vcmd -i 42 -C ctx_create -- ps auxwww
 vserver: ret = 0x002A (42)
 USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
 root 11780  0.0  0.0   1944   672 pts/2R+   13:35   0:00 ps auxwww
 
 Thanks! That's pretty good.

 One more question, If I create 3 vserver processes by this way, and I
 allow the 3 processes can access only certain files in my machine, for
 example, only 4 files on my systems.

 Can I group the 3 processes and 4 files together? 

yes, somewhat ...

 say, they can see each other on their vserver domain, but they will
 not be accessible by other program on my host machine?

no, as the host context is also the admin context,
it will have access to those processes and files in
some way ... but you can keep them separate from 
eachother or another group of processes ...

 Thanks,
 Wenbin

 ___
 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] anybody has experience for Vserver on ARM

2007-04-24 Thread Wenbin Zhang



 vcmd -i 42 -C ctx_create -- ps auxwww
 vserver: ret = 0x002A (42)
 USER   PID %CPU %MEMVSZ   RSS TTY  STAT START   TIME COMMAND
 root 11780  0.0  0.0   1944   672 pts/2R+   13:35   0:00 ps
 auxwww

I downloaded the vcmd source, and crosscompiled it, then copy to the ARM

phone, however, when I tried to run the command, it cannot create the
process successfully, very strange...
when I run vcmd -h, it can show the help, but  when I run  vcmd -i 42 -C
ctx_create -- ps auxwww, it just hung.
[EMAIL PROTECTED]:/work/vcmd-0.08# ./vcmd -h
This is ./vcmd V0.08
options are:
 -hprint this help message
 -Adump data after syscall
 -Bdump data before syscall

Btw, my ARM kernel is vserver enabled, I can find the /proc/virtual/info
does exist but it is an empty file. I guess might be the vserver kernel
module has some problem, but I cannot figure out what it is, which is the
thing I am worrying about. Can you think of any ideas?

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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-23 Thread Wenbin Zhang

Now I am using -d fc6 to build the guest. After this, I found vserver need
lots of supporting program:

bzip2, cmp, rpm, yum, python,  I have to cross compile them one by one and
install them in the phone.
Now I still found it need some libraries supporting, like libstdc++.so.6..
etc. Maybe it still need more libraries, any idea?
I don't know whether I can make vserver work on phone, it seems too
complicated.

Thanks,
Wenbin

On 4/20/07, Herbert Poetzl [EMAIL PROTECTED] wrote:


On Fri, Apr 20, 2007 at 12:01:26PM -0400, Wenbin Zhang wrote:
 Hi Herbert and Martin,

 Now I solved the getopt problem with recompiling the util-vserver
package
 for ARM, thanks!

 Now The vserver script seems can run,
 [EMAIL PROTECTED]:/sbin# vserver
 Usage: /sbin/vserver vserver

{start|stop|suexec|restart|condrestart|exec|enter|chkconfig|running|status|delete}

 However, I tried to run
 #vserver va780 build -m yum --context 43 --hostname=va780 --interface
~~~
 va7800=eth0:192.168.1.2/24 --rootdir /vserver1 --pkgbase /vserver1/.pkg
--
 -d gpe

you probably have to 'define' that distro first,
at least I don't think it is present in the defaults

 to create a vserver, it told me:
 ERROR: Can not find configuration for the distribution 'a780';
  please read http://linux-vserver.org/HowToRegisterNewDistributions
  for information how to add support for your own distribution.

 However, if I remove the -d option, it told me:
 ERROR: Can not determine distribution; please specify it manually with
  the '-d' option.

 Any ideas? What distribution should be used for Arm? thanks!

you could try debian?

best,
Herbert

 Wenbin

 On 4/20/07, Herbert Poetzl [EMAIL PROTECTED] wrote:
 
 On Fri, Apr 20, 2007 at 09:35:13AM -0400, Wenbin Zhang wrote:
  Hi All,
 
  Anybody has experiences for Vserver on ARM? I have lots of problems
  for this.
 
 yep, seems to works fine here ...
 
  Firstly I compiled the kernel with Vserver, then compiled the
  util-vserver. However I haven't made the util-vserver run on my Arm
  phone. The first reason is my arm phone doesnot support Bash while
  vserver script is based on Bash. Then I installed the Arm Bash on my
  phone. The next problem is getopt. 'Getopt' is required for Vserver
  script, but I cannot find a good Getopt source and compile it on Arm.
 
 the getopt is a standalone tool which is part of
 util-linux (so it should be easy to rebuild that
 for arm) alternatively you can use the bash bult-
 in getopts ...
 
  And I also noticed duing Vserver setup phase, the program need
connect
  with outside to download some package.
 
 not really, but it depends on the build method
 e.g. template based build methods will not need
 any network access, while network :) based ones
 will 
 
  I still haven't find an easy way to connect the Arm phone with
  internet.
 
 should be fairly trivial via bluetooth, just make
 a pairing with a laptop and configure the network
 to route over it, and masquerade the phone's ip
 (probably private) ...
 
  I am still thinking.. Anybody can share some experiences for
  this? thanks!
 
 best,
 Herbert
 
  Wenbin
 
  ___
  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] anybody has experience for Vserver on ARM

2007-04-23 Thread Herbert Poetzl
On Mon, Apr 23, 2007 at 11:33:12AM -0400, Wenbin Zhang wrote:
 Now I am using -d fc6 to build the guest. After this, I found
 vserver need lots of supporting program:

 bzip2, cmp, rpm, yum, python, I have to cross compile them one by
 one and install them in the phone. Now I still found it need some
 libraries supporting, like libstdc++.so.6.. etc. Maybe it still need
 more libraries, any idea? I don't know whether I can make vserver work
 on phone, it seems too complicated.

well, depends on _what_ you install and _what_ you
actually need, complete kernel and userspace to
get the Linux-VServer isolation working should be
doable without any libraries and external tools,
just with something like vcmd, but if you want the
full userspace stuff, including legacy and guest
building (which I consider extreme for a phone)
you'll have to provide a bunch of tools and libs
too ...

best,
Herbert

 Thanks,
 Wenbin
 
 On 4/20/07, Herbert Poetzl [EMAIL PROTECTED] wrote:
 
 On Fri, Apr 20, 2007 at 12:01:26PM -0400, Wenbin Zhang wrote:
  Hi Herbert and Martin,
 
  Now I solved the getopt problem with recompiling the util-vserver
 package
  for ARM, thanks!
 
  Now The vserver script seems can run,
  [EMAIL PROTECTED]:/sbin# vserver
  Usage: /sbin/vserver vserver
 
 {start|stop|suexec|restart|condrestart|exec|enter|chkconfig|running|status|delete}
 
  However, I tried to run
  #vserver va780 build -m yum --context 43 --hostname=va780 --interface
 ~~~
  va7800=eth0:192.168.1.2/24 --rootdir /vserver1 --pkgbase /vserver1/.pkg
 --
  -d gpe
 
 you probably have to 'define' that distro first,
 at least I don't think it is present in the defaults
 
  to create a vserver, it told me:
  ERROR: Can not find configuration for the distribution 'a780';
   please read http://linux-vserver.org/HowToRegisterNewDistributions
   for information how to add support for your own distribution.
 
  However, if I remove the -d option, it told me:
  ERROR: Can not determine distribution; please specify it manually with
   the '-d' option.
 
  Any ideas? What distribution should be used for Arm? thanks!
 
 you could try debian?
 
 best,
 Herbert
 
  Wenbin
 
  On 4/20/07, Herbert Poetzl [EMAIL PROTECTED] wrote:
  
  On Fri, Apr 20, 2007 at 09:35:13AM -0400, Wenbin Zhang wrote:
   Hi All,
  
   Anybody has experiences for Vserver on ARM? I have lots of problems
   for this.
  
  yep, seems to works fine here ...
  
   Firstly I compiled the kernel with Vserver, then compiled the
   util-vserver. However I haven't made the util-vserver run on my Arm
   phone. The first reason is my arm phone doesnot support Bash while
   vserver script is based on Bash. Then I installed the Arm Bash on my
   phone. The next problem is getopt. 'Getopt' is required for Vserver
   script, but I cannot find a good Getopt source and compile it on Arm.
  
  the getopt is a standalone tool which is part of
  util-linux (so it should be easy to rebuild that
  for arm) alternatively you can use the bash bult-
  in getopts ...
  
   And I also noticed duing Vserver setup phase, the program need
 connect
   with outside to download some package.
  
  not really, but it depends on the build method
  e.g. template based build methods will not need
  any network access, while network :) based ones
  will 
  
   I still haven't find an easy way to connect the Arm phone with
   internet.
  
  should be fairly trivial via bluetooth, just make
  a pairing with a laptop and configure the network
  to route over it, and masquerade the phone's ip
  (probably private) ...
  
   I am still thinking.. Anybody can share some experiences for
   this? thanks!
  
  best,
  Herbert
  
   Wenbin
  
   ___
   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

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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-23 Thread Wenbin Zhang

well, depends on _what_ you install and _what_ you
actually need, complete kernel and userspace to
get the Linux-VServer isolation working should be
doable without any libraries and external tools,
just with something like vcmd, but if you want the
full userspace stuff, including legacy and guest
building (which I consider extreme for a phone)
you'll have to provide a bunch of tools and libs
too ...



Hello, Thank you very much for your response.
I just want to build the vserver guest, and can login the guest.
For example, I use below command to create the guest:
#/sbin/vserver va780 build -m rpm --context 43 --hostname=va780 --interface
va7800=eth0:192.168.1.2/24 --rootdir /vserver1 --pkgbase /vserver1/.pkg --
-d fc6
#vserver va780 enter

What's your mean get the Linux-VServer isolation working, I guess we
definitely need build a guest, right?
What's the vcmd doing? I hardly can find downloadable source/binary for
vcmd.

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


[Vserver] anybody has experience for Vserver on ARM

2007-04-20 Thread Wenbin Zhang

Hi All,

Anybody has experiences for Vserver on ARM? I have lots of problems for
this.

Firstly I compiled the kernel with Vserver, then compiled the util-vserver.
However I haven't  made the util-vserver run on my Arm phone. The first
reason is my arm phone doesnot support Bash while vserver script is based on
Bash. Then I installed the Arm Bash on my phone. The next problem is getopt.
'Getopt' is required for Vserver script, but I cannot find a good Getopt
source and compile it on Arm.

And I also noticed duing Vserver setup phase, the program need connect with
outside to download some package. I still haven't find an easy way to
connect the Arm phone with internet. I am still thinking..

Anybody can share some experiences for this? thanks!

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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-20 Thread Herbert Poetzl
On Fri, Apr 20, 2007 at 09:35:13AM -0400, Wenbin Zhang wrote:
 Hi All,
 
 Anybody has experiences for Vserver on ARM? I have lots of problems
 for this.

yep, seems to works fine here ...

 Firstly I compiled the kernel with Vserver, then compiled the
 util-vserver. However I haven't made the util-vserver run on my Arm
 phone. The first reason is my arm phone doesnot support Bash while
 vserver script is based on Bash. Then I installed the Arm Bash on my
 phone. The next problem is getopt. 'Getopt' is required for Vserver
 script, but I cannot find a good Getopt source and compile it on Arm.

the getopt is a standalone tool which is part of
util-linux (so it should be easy to rebuild that
for arm) alternatively you can use the bash bult-
in getopts ...

 And I also noticed duing Vserver setup phase, the program need connect
 with outside to download some package. 

not really, but it depends on the build method
e.g. template based build methods will not need
any network access, while network :) based ones
will 

 I still haven't find an easy way to connect the Arm phone with
 internet. 

should be fairly trivial via bluetooth, just make
a pairing with a laptop and configure the network
to route over it, and masquerade the phone's ip
(probably private) ...

 I am still thinking.. Anybody can share some experiences for
 this? thanks!

best,
Herbert

 Wenbin

 ___
 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] anybody has experience for Vserver on ARM

2007-04-20 Thread Martin
On Fri, 2007-04-20 at 09:35 -0400, Wenbin Zhang wrote:
 Hi All,
 
 Anybody has experiences for Vserver on ARM? I have lots of problems
 for this.
 
 Firstly I compiled the kernel with Vserver, then compiled the
 util-vserver.
 However I haven't  made the util-vserver run on my Arm phone. The
 first reason is my arm phone doesnot support Bash while vserver script
 is based on Bash. Then I installed the Arm Bash on my phone. The next
 problem is getopt. 'Getopt' is required for Vserver script, but I
 cannot find a good Getopt source and compile it on Arm. 
On my Debian system, getopt(1) is in util-linux, which it claims is
ported to ARM.  getopt(3) in in glibc, and should also work on ARM.

Sorry; that probably doesn't help.

Cheers,
 - Martin


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


Re: [Vserver] anybody has experience for Vserver on ARM

2007-04-20 Thread Wenbin Zhang

Hi Herbert and Martin,

Now I solved the getopt problem with recompiling the util-vserver package
for ARM, thanks!

Now The vserver script seems can run,
[EMAIL PROTECTED]:/sbin# vserver
Usage: /sbin/vserver vserver
{start|stop|suexec|restart|condrestart|exec|enter|chkconfig|running|status|delete}

However, I tried to run
#vserver va780 build -m yum --context 43 --hostname=va780 --interface
va7800=eth0:192.168.1.2/24 --rootdir /vserver1 --pkgbase /vserver1/.pkg --
-d gpe
to create a vserver, it told me:
ERROR: Can not find configuration for the distribution 'a780';
 please read http://linux-vserver.org/HowToRegisterNewDistributions
 for information how to add support for your own distribution.

However, if I remove the -d option, it told me:
ERROR: Can not determine distribution; please specify it manually with
 the '-d' option.

Any ideas? What distribution should be used for Arm? thanks!

Wenbin

On 4/20/07, Herbert Poetzl [EMAIL PROTECTED] wrote:


On Fri, Apr 20, 2007 at 09:35:13AM -0400, Wenbin Zhang wrote:
 Hi All,

 Anybody has experiences for Vserver on ARM? I have lots of problems
 for this.

yep, seems to works fine here ...

 Firstly I compiled the kernel with Vserver, then compiled the
 util-vserver. However I haven't made the util-vserver run on my Arm
 phone. The first reason is my arm phone doesnot support Bash while
 vserver script is based on Bash. Then I installed the Arm Bash on my
 phone. The next problem is getopt. 'Getopt' is required for Vserver
 script, but I cannot find a good Getopt source and compile it on Arm.

the getopt is a standalone tool which is part of
util-linux (so it should be easy to rebuild that
for arm) alternatively you can use the bash bult-
in getopts ...

 And I also noticed duing Vserver setup phase, the program need connect
 with outside to download some package.

not really, but it depends on the build method
e.g. template based build methods will not need
any network access, while network :) based ones
will 

 I still haven't find an easy way to connect the Arm phone with
 internet.

should be fairly trivial via bluetooth, just make
a pairing with a laptop and configure the network
to route over it, and masquerade the phone's ip
(probably private) ...

 I am still thinking.. Anybody can share some experiences for
 this? thanks!

best,
Herbert

 Wenbin

 ___
 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] anybody has experience for Vserver on ARM

2007-04-20 Thread Herbert Poetzl
On Fri, Apr 20, 2007 at 12:01:26PM -0400, Wenbin Zhang wrote:
 Hi Herbert and Martin,
 
 Now I solved the getopt problem with recompiling the util-vserver package
 for ARM, thanks!
 
 Now The vserver script seems can run,
 [EMAIL PROTECTED]:/sbin# vserver
 Usage: /sbin/vserver vserver
 {start|stop|suexec|restart|condrestart|exec|enter|chkconfig|running|status|delete}
 
 However, I tried to run
 #vserver va780 build -m yum --context 43 --hostname=va780 --interface
~~~
 va7800=eth0:192.168.1.2/24 --rootdir /vserver1 --pkgbase /vserver1/.pkg --
 -d gpe

you probably have to 'define' that distro first,
at least I don't think it is present in the defaults

 to create a vserver, it told me:
 ERROR: Can not find configuration for the distribution 'a780';
  please read http://linux-vserver.org/HowToRegisterNewDistributions
  for information how to add support for your own distribution.
 
 However, if I remove the -d option, it told me:
 ERROR: Can not determine distribution; please specify it manually with
  the '-d' option.
 
 Any ideas? What distribution should be used for Arm? thanks!

you could try debian?

best,
Herbert

 Wenbin
 
 On 4/20/07, Herbert Poetzl [EMAIL PROTECTED] wrote:
 
 On Fri, Apr 20, 2007 at 09:35:13AM -0400, Wenbin Zhang wrote:
  Hi All,
 
  Anybody has experiences for Vserver on ARM? I have lots of problems
  for this.
 
 yep, seems to works fine here ...
 
  Firstly I compiled the kernel with Vserver, then compiled the
  util-vserver. However I haven't made the util-vserver run on my Arm
  phone. The first reason is my arm phone doesnot support Bash while
  vserver script is based on Bash. Then I installed the Arm Bash on my
  phone. The next problem is getopt. 'Getopt' is required for Vserver
  script, but I cannot find a good Getopt source and compile it on Arm.
 
 the getopt is a standalone tool which is part of
 util-linux (so it should be easy to rebuild that
 for arm) alternatively you can use the bash bult-
 in getopts ...
 
  And I also noticed duing Vserver setup phase, the program need connect
  with outside to download some package.
 
 not really, but it depends on the build method
 e.g. template based build methods will not need
 any network access, while network :) based ones
 will 
 
  I still haven't find an easy way to connect the Arm phone with
  internet.
 
 should be fairly trivial via bluetooth, just make
 a pairing with a laptop and configure the network
 to route over it, and masquerade the phone's ip
 (probably private) ...
 
  I am still thinking.. Anybody can share some experiences for
  this? thanks!
 
 best,
 Herbert
 
  Wenbin
 
  ___
  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