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

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

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

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

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 .

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).

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?

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

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

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

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

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

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

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

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

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,

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

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

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

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

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

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

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

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

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

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

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

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

[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

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

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

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

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