Re: [Vserver] anybody has experience for Vserver on ARM
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
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-Directo
Re: [Vserver] anybody has experience for Vserver on ARM
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 > > >> > pr
Re: [Vserver] anybody has experience for Vserver on ARM
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 k
Re: [Vserver] anybody has experience for Vserver on ARM
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
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
> 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
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
> 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
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
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
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
Re: [Vserver] anybody has experience for Vserver on ARM
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 > {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
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 {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
[Vserver] anybody has experience for Vserver on ARM
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
[Vserver] how to make default system running on the top of one vserver?
Hello Guys, I have one question here, how to make default system running on the top of one vserver? That is: - vserver --- host linux hardware --- 1) I setup one server on the default host system.( Both the host system and the verser are linux). 2) After the machine power on and boot, the whole thing will be taken over by the vserver, say, the GUI display, the input are controlled by vserver automatically. After boot, the user were not expected to use the host linux again. 3) But the display/input control still can be switched to the host linux in case of need. After using, the control will be able to switch back to vserver. Any good idea to achieve this? Thanks, Wenbin ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Re: about Vserver for ARM
Hi Herbert, Thanks! I can build vserver for ARM successfully with your approach, but how to use "make install" to install those verser related files to corrosponding directory in rootfs? For example, my rootfs is under /work/rootfs/opie, how can I install vserver to this directory? Actually I want to use a binary make for ARM to run "make install" on the phone, but I failed to get the ARM version make. Any ideas? Thanks, Wenbin On 3/13/07, Herbert Poetzl <[EMAIL PROTECTED]> wrote: On Tue, Mar 13, 2007 at 01:45:56AM -0400, Wenbin Zhang wrote: > Hi Herbert, > > Now I merged Vserver code and OpenEZX code, and compile the kernel with > vserver code successfully. However, according to > http://linux-vserver.org/Installation_on_Linux_2.6 > , > we still need compile util-vserver, which is user land tool for > vserver. I download the util-vserver code, want to cross-compile it > with arm-linux-gcc. But I tried below command: > # ./configure --target=arm-linux --prefix=/ > > I expect to generate a ARM version Makefile. However, the generated > Makefile is still for x86 gcc version. What's wrong with my process? > Any ideas? if you have a proper cross compile toolchain (if not, you can get one from me), try the following: export ARCH=arm export CC=arm-linux-gcc export CPP=arm-linux-cpp export CXX=arm-linux-c++ export DIET=arm-linux-diet then do: ./configure --prefix= and make if your toolchain is working correctly, that should build you a proper util-vserver toolset for arm note that you might have to comment out the warning line in the alternative syscall implementation like this: // #warning syscall arch arm not tested yet best, Herbert > Thank you, > Wenbin ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Re: about Vserver for ARM
Hi Herbert, Now I merged Vserver code and OpenEZX code, and compile the kernel with vserver code successfully. However, according to http://linux-vserver.org/Installation_on_Linux_2.6, we still need compile util-vserver, which is user land tool for vserver. I download the util-vserver code, want to cross-compile it with arm-linux-gcc. But I tried below command: # ./configure --target=arm-linux --prefix=/ I expect to generate a ARM version Makefile. However, the generated Makefile is still for x86 gcc version. What's wrong with my process? Any ideas? Thank you, Wenbin On 3/5/07, Wenbin Zhang <[EMAIL PROTECTED]> wrote: perfect ... I'll send you my postal address > in a private mail then ... :-) I will keep you posted on my progress... > But before I do that, let me try it firstly :-) > > sure ... > > > Yes I can switch to 2.6, no problems. > > in this case, I'd suggest to do so, for several > reasons, one being the fact that the 2.0/2.2 > branches are much more performant than the 1.2 > branch, another being that the 2.2 patches provide > a lot more useful features ... I see, thanks! Now I have switched to 2.6 already. > However I checked the arm-ezx patch, > > http://www.openezx.org/download/, > > > all the patches are for linux 2.6.16 kernel. > > yeah, folks love the 2.6.16 kernel :) > > > However, for Vserver patches, > > http://ftp.linux-vserver.org/pub/kernel/vs2.0/, > > > they are only 2.6.12, 2.6.14, 2.6.17 version. > > So the two kind of patches are not for the same > > version of 2.6 kernel. > > check out this one: > > http://people.linux-vserver.org/~dhozac/p/k/patch-2.6.16.37-vs2.0.3-rc1.diff > > <http://people.linux-vserver.org/%7Edhozac/p/k/patch-2.6.16.37-vs2.0.3-rc1.diff> Thanks! > Moreover, even they are for the same version, for > > example, 2.6.16 kernel, I guess there are still > > conflicts if we apply the two patches simutaneously. > > > We have two ways: > > 1) apply openezx patch, then Vserver patch > > 2) apply Vserver patch, then openexz patch > > > > But we cannot guarantee the two patch have no i > > conflicts each other, any ideas? > > yes, that's called merging, and that is what you > have to do when you got more than one patch ... > > of course, it helps a lot if you know one or even > better all of the involved patches :) Yes, I think I need try merge the two patches. So far I still don't know how difficult it is :-) Thanks, Wenbin ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Re: about Vserver for ARM
perfect ... I'll send you my postal address in a private mail then ... :-) I will keep you posted on my progress... But before I do that, let me try it firstly :-) sure ... > Yes I can switch to 2.6, no problems. in this case, I'd suggest to do so, for several reasons, one being the fact that the 2.0/2.2 branches are much more performant than the 1.2 branch, another being that the 2.2 patches provide a lot more useful features ... I see, thanks! Now I have switched to 2.6 already. However I checked the arm-ezx patch, > http://www.openezx.org/download/, > all the patches are for linux 2.6.16 kernel. yeah, folks love the 2.6.16 kernel :) > However, for Vserver patches, > http://ftp.linux-vserver.org/pub/kernel/vs2.0/, > they are only 2.6.12, 2.6.14, 2.6.17 version. > So the two kind of patches are not for the same > version of 2.6 kernel. check out this one: http://people.linux-vserver.org/~dhozac/p/k/patch-2.6.16.37-vs2.0.3-rc1.diff Thanks! Moreover, even they are for the same version, for > example, 2.6.16 kernel, I guess there are still > conflicts if we apply the two patches simutaneously. > We have two ways: > 1) apply openezx patch, then Vserver patch > 2) apply Vserver patch, then openexz patch > > But we cannot guarantee the two patch have no i > conflicts each other, any ideas? yes, that's called merging, and that is what you have to do when you got more than one patch ... of course, it helps a lot if you know one or even better all of the involved patches :) Yes, I think I need try merge the two patches. So far I still don't know how difficult it is :-) Thanks, Wenbin ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] Re: about Vserver for ARM
Hi Herbert, Thank you very much! Actually I'd like to send you a phone to test it :-) But before I do that, let me try it firstly :-) Yes I can switch to 2.6, no problems. However I checked the arm-ezx patch, http://www.openezx.org/download/, all the patches are for linux 2.6.16 kernel. However, for Vserver patches, http://ftp.linux-vserver.org/pub/kernel/vs2.0/, they are only 2.6.12, 2.6.14, 2.6.17 version. So the two kind of patches are not for the same version of 2.6 kernel. Moreover, even they are for the same version, for example, 2.6.16 kernel, I guess there are still conflicts if we apply the two patches simutaneously. We have two ways: 1) apply openezx patch, then Vserver patch 2) apply Vserver patch, then openexz patch But we cannot guarantee the two patch have no conflicts each other, any ideas? Thanks, Wenbin On 3/1/07, Herbert Poetzl <[EMAIL PROTECTED]> wrote: On Thu, Mar 01, 2007 at 01:51:20PM -0500, Wenbin Zhang wrote: > Hello Guys, > > I want to run the Vserver on Moto E680i cell phone, which is an ARM > chip, specically the Intel XScale-Bulverde chip. I guess Vserver > should be able to support this architecture. I downloaded the E680i > kernel souce code from: > https://opensource.motorola.com/sf/frs/do/downloadFile/projects.a780e680/frs.a780_e680_source.a780_e680/frs1003?dl=1 sounds good! > However, all the Vserver patches on > http://ftp.linux-vserver.org/pub/kernel/vs1.2/ cannot match the > E680i linux 2.4 source code. There are lots of conflicts. not unexpected, it's quite old and doesn't probably fit what you need for the E680i ... the main question is, are you sure you want to go with the 2.4 kernel instead of 2.6? I know, arm support is not the best in Linux, especially as there are many different hardware vendors with quite different ideas how the arch support should look like ... > Could you let me know where to download the ARM kernel source > code and the corresponding Vserver patch? Thank you very much! well, here are the good news, the 2.6 patches will work on arm quite well, so given that you can go with 2.6 on your sub-arch, that would simplify it a lot there are also good news when you have to stick with 2.4 for whatever reason, and it basically boils down to the fact that Linux-VServer is quite hardware agnostic, so I do not think it would be too hard to adapt the patches to your vendor specific tree ... so for example I could imagine to adapt the patches for your specific branch if you send me a phone for testing it :) 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
[Vserver] Re: about Vserver for ARM
Hello Guys, I want to run the Vserver on Moto E680i cell phone, which is an ARM chip, specically the Intel XScale-Bulverde chip. I guess Vserver should be able to support this architecture. I downloaded the E680i kernel souce code from: https://opensource.motorola.com/sf/frs/do/downloadFile/projects.a780e680/frs.a780_e680_source.a780_e680/frs1003?dl=1 However, all the Vserver patches on http://ftp.linux-vserver.org/pub/kernel/vs1.2/ cannot match the E680i linux 2.4 source code. There are lots of conflicts. Could you let me know where to download the ARM kernel source code and the corresponding Vserver patch? Thank you very much! Thanks, Wenbin ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
[Vserver] about Vserver for ARM
Hello Guys, I want to run the Vserver on Moto E680i cell phone, which is an ARM chip, specically the Intel XScale-Bulverde chip. I guess Vserver should be able to support this architecture. I downloaded the E680i kernel souce code from: https://opensource.motorola.com/sf/frs/do/downloadFile/projects.a780e680/frs.a780_e680_source.a780_e680/frs1003?dl=1 However, all the Vserver patches on http://ftp.linux-vserver.org/pub/kernel/vs1.2/ cannot match the E680i linux 2.4 source code. There are lots of conflicts. Could you let me know where to download the ARM kernel source code and the corresponding Vserver patch? Thank you very much! Thanks, Wenbin ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver