[Vserver] re: Vserver Digest, Vol 26, Issue 55

From: HongDan <hongdanstar_at_gmail.com>
Date: Thu 01 Jun 2006 - 09:34:11 BST
Message-ID: <000801c68556$2e5ebc40$1418423b@deepinb6b12523>

Hi~ I’ve tested Daniel Hokka Zakrisson's ipv6 patch for util-vserver and
successfully login a vserver guest with ipv6 address. My experiment is like
this:

1. Using vmware to build a guest with a real ipv6 address assigned

2. Build a vserver guest in the vmware guest,. The ipv4 address is
arbitrary(fake in my case), but the ipv6 address is the same as the vmware
guest

3. I stopped the sshd of vmware guest(vserver host), and edited the
sshd_config of vserver guest to listen on it’s ipv6 address

4. I assigned another real ipv6 address for my notebook, and ssh into the
vserver guest with ipv6 address successfully.

So I think the ipv6 address of vserver is working. But there seems some
problem:

1. I can't use ping6 in vserver guest. It prompts “ping: icmp open socket:
Operation not permited” when I use "ping6 3ffe:3200::2”, while “unknown
host” when using “ping6 3ffe:3200::2/64”. Anyway it didn’t work, do you
know what’s the matter?

2. When I ssh into vserver guest with ipv6 address, it took quite a long
time before logging into the system, which doesn’t happen when using ipv4
address. Do you think it’s the problem of ipv6 network or the ipv6 ability
of vserver?

3. Till now I can only build a new vserver with yum method. Sometimes it
took too long a time if the internet condition is not so good. I read guides
on http://linux-vserver.org/ again and again, but can’t find an efficient
way about how to build a new vserver guest. Would you give me some hints?
For example, how to change the default yum.repo of vserver guest? Does it
use the same yum.repo with vserver host? Because I want to build several
guests and assign separate ipv6 address for them.

4. I’ve assigned an ipv4 address to guest when it’s built, then how can I
change this address later? I tried to change the /etc/vservers/<my
vserver>/interfaces/0/ip, but after starting the guest, the corresponding
net device didn’t come up again, unless I changed the ip back.

Thanks!
 
Hong Dan

-----邮件原件-----
发件人: vserver-bounces@list.linux-vserver.org [mailto:vserver-bounces@list.
linux-vserver.org] 代表 vserver-request@list.linux-vserver.org
发送时间: 2006年6月1日 5:32
收件人: vserver@list.linux-vserver.org
主题: Vserver Digest, Vol 26, Issue 55

Send Vserver mailing list submissions to
        vserver@list.linux-vserver.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://list.linux-vserver.org/mailman/listinfo/vserver
or, via email, send a message with subject or body 'help' to
        vserver-request@list.linux-vserver.org

You can reach the person managing the list at
        vserver-owner@list.linux-vserver.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Vserver digest..."

Today's Topics:

   1. Re: IPV6 and VSERVER ? (HongDan)
   2. stalled vserver guest nfs mounts (Dimitris Zilaskos)
   3. Re: vserver not starting (varun)
   4. Re: IPV6 and VSERVER ? (Daniel Hokka Zakrisson)
   5. linuxwochen Wien (Guenther Fuchs)
   6. Re: Multiple NICs, multiple networks: Revisited
      (Roderick A. Anderson)

----------------------------------------------------------------------

Message: 1
Date: Wed, 31 May 2006 19:38:57 +0800
From: "HongDan" <hongdanstar@gmail.com>
Subject: Re: [Vserver] IPV6 and VSERVER ?
To: <vserver@list.linux-vserver.org>
Message-ID: <000001c684a6$da465dc0$1418423b@deepinb6b12523>
Content-Type: text/plain; charset="gb2312"

OK, I'm working on a FC5 based system, and I've successfully built kernel-2.
6.16.18 with vs-2.1.1 and ipv6a patch. Then I installed
liblibvserver-2.0_pre.tar.tar to /usr/lib. But I met with errors while
compiling vserver-utils-1.0.4_pre.tar.tar. I passed ./configure, but failed
during make. The errors are like this:

printf.c:29:26: error: libowfat/fmt.h: No such file or directory
printf.c:30:26: error: libowfat/str.h: No such file or directory
printf.c: In function 'vu_vsnprintf':
printf.c:54: warning: value computed is not used
printf.c:60: warning: value computed is not used
printf.c:90: warning: value computed is not used
printf.c:95: warning: value computed is not used
printf.c:114: warning: value computed is not used
printf.c:120: warning: value computed is not used
printf.c:143: warning: value computed is not used
printf.c:152: warning: value computed is not used
printf.c:165: warning: value computed is not used
printf.c:192: warning: value computed is not used
printf.c:252: warning: implicit declaration of function 'fmt_str'
printf.c:254: warning: implicit declaration of function 'fmt_plusminus'
printf.c:256: warning: implicit declaration of function 'fmt_minus'
printf.c:259: warning: implicit declaration of function 'fmt_ulonglong'
printf.c:283: warning: implicit declaration of function 'fmt_ulong0'
printf.c:303: warning: implicit declaration of function 'fmt_double'
printf.c:303: error: 'FMT_LEN' undeclared (first use in this function)
printf.c:303: error: (Each undeclared identifier is reported only once
printf.c:303: error: for each function it appears in.)
printf.c:324: warning: implicit declaration of function 'fmt_8long'
printf.c:388: warning: implicit declaration of function 'fmt_xlonglong'
printf.c:405: warning: implicit declaration of function 'fmt_xlong'
printf.c:426: warning: implicit declaration of function 'str_len'
printf.c:456: warning: implicit declaration of function 'fmt_strn'
printf.c: In function 'vu_vasprintf':
printf.c:510: error: 'FMT_LEN' undeclared (first use in this function)
make[4]: *** [printf.o] Error 1
make[4]: Leaving directory
`/home/hd/src/vserver-utils-1.0.4_pre/src/libinternal'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/hd/src/vserver-utils-1.0.4_pre/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/hd/src/vserver-utils-1.0.4_pre/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hd/src/vserver-utils-1.0.4_pre'
make: *** [all] Error 2

I guess the 'printf' error has something with dietlibc. It once complained
for missing dietlibc when I "./configure" at the first time, so I installed
dietlibc-0.29-6.fc5.i386.rpm and dietlibc-lib-0.29-6.fc5.i386.rpm, and
passed. The output of ./configure is

configure: vserver-utils 1.0.4_pre configured successfully:
             CC: diet -Os gcc (gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3))
             CPPFLAGS: ''
             CFLAGS: '-g -O2 -W -Wall -std=gnu99 -pedantic'
             prefix: /usr/local
             build/host: /
             sysconfdir: ${prefix}/etc
             vdirbase: /vservers
             vconfig backend: single

All above look all right. Then how to fix the 'make' error?

I also tried to install util-vserver-(core,lib,sysv,build).rpm and found my
guests built before still work on the newly built kernel, but can't get IPv6
address assigned yet, just as you mentioned in the mailing list that
util-vserver may not manipulate ipv6 address. My question is how to build a
new virtual server with IPv6 address? I used "
vserver gast build -m yum --context 42 --hostname=gast.example --interface
gast0=eth0:192.168.0.1/24 -- -d fc5" to build vserver before, then how to
set the ipv6 address in the command above? Are there any tutorials about it?

Thanks!

-------------------------------------------------------------------------

Message: 3
Date: Tue, 30 May 2006 18:27:54 +0200
From: Bruno <bonbons67@internet.lu>
Subject: Re: [Vserver] IPV6 and VSERVER ?
To: vserver@list.linux-vserver.org
Cc: HongDan <hongdanstar@gmail.com>
Message-ID: <200605301827.54945.bonbons67@internet.lu>
Content-Type: text/plain; charset="gb2312"

On Tuesday 30 May 2006 12:06, Georges Toth wrote:
> > I want to test Bruno's ipv6 patch, but where can I get the latest
> > vserver-2. 1.1 patch for kernel-2.6.16.18?
> >
> > I've get kernel-2.6.16.18 from www.kernel.org, and
> > patch-2.6.16.18-vs2.1.1rc21-ipv6a.diff from
> > http://homepage.internet.lu/brunop/vserver/. But I can't get vs2.1.1
> > patch for kernel-2.6.16.18. I searched in
> > http://vserver.13thfloor.at/Experimental/, but only get
> > patch-2.6.16.17-vs2. 1.1-rc21.diff.
>
> Just use patch-2.6.16.17-vs2. 1.1-rc21.diff....

Exactly, you will have to use the patch-2.6.16.17-vs2.1.1-rc21.diff vserver
patch, the only reject you will get is the version number in
$KERNEL_SRC_DIR/Makefile. 2.6.16.16 or 2.6.16.19 (if it exists) should work
fine as well!

Note that current version does not solve conflict for address binding.
Thus you cannot have e.g. sshd bind to :::22 in two guests until I implement

the conflict resolution. I hope doing that next day.

Regards,
Bruno

------------------------------

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

End of Vserver Digest, Vol 26, Issue 54
***************************************

------------------------------

Message: 2
Date: Wed, 31 May 2006 15:31:00 +0300 (EEST)
From: Dimitris Zilaskos <dzila@tassadar.physics.auth.gr>
Subject: [Vserver] stalled vserver guest nfs mounts
To: vserver@list.linux-vserver.org
Message-ID:
        <Pine.LNX.4.64.0605311526570.7022@tassadar.physics.auth.gr>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

         Hello,

         I have two vserver guests that mount an nfs share. In the
beginning everything worked fine, but after a few weeks the nfs share is
frozen, meaning that several directories/files are no longer visible from
the guests.
         I am running 2.6.14.3-vs2.0.1 on scientific linux 4.2. I am using
/etc/vservers/guest-name/fstab method.
         Is there anything I can do other than restarting the guest (
which is not possible at the moment)?

         Best regards,

--
============================================================================
Dimitris Zilaskos
Department of Physics @ Aristotle University of Thessaloniki , Greece
PGP key : http://tassadar.physics.auth.gr/~dzila/pgp_public_key.asc
 	  http://egnatia.ee.auth.gr/~dzila/pgp_public_key.asc
MD5sum  : de2bd8f73d545f0e4caf3096894ad83f  pgp_public_key.asc
============================================================================
------------------------------
Message: 3
Date: Wed, 31 May 2006 13:18:14 +0530
From: varun <varun_saa@rediffmail.com>
Subject: Re: [Vserver] vserver not starting
To: Herbert Poetzl <herbert@13thfloor.at>
Cc: vserver@list.linux-vserver.org
Message-ID: <1149061694.4820.3.camel@nirvana.aurokruti.in>
Content-Type: text/plain
On Tue, 2006-05-30 at 18:09 +0200, Herbert Poetzl wrote:
> On Mon, May 29, 2006 at 07:35:33PM +0530, varun wrote:
> > Hello All,
> > 
> > I new to the list.
> > 
> > My vserver is not starting.
> > 
> > My distro is CentOS 4.3 upgraded.
> > 
> > and 
> > 
> > [root@vserver ~]# uname -r
> > 2.6.14.3-vs2.0.1
> 
> it would not hurt to update to a recent kernel
> and patches (e.g. 2.6.16.18-vs2.0.2-rc21 or so)
> but it should work with this one too ...
> 
> > and 
> > 
> > [root@vserver ~]# /sbin/vserver boing start
> 
> first, what tools do you use there, and how was
> the guest created?
These are the steps I followed :
Now we have to install the vserver binary packages. These are the
userland utilities to control virtual servers: 
# wget
http://www.13thfloor.at/vserver/s_rel26/v2.01/util-vserver-0.30.209.tar.gz
# tar -zxvf util-vserver-0.30.209.tar.gz
# cd util-vserver-0.30.209
At this point, make sure you have installed dietlibc and beecrypt/-devel
using the following command:
# yum install -y dietlibc beecrypt-devel
Now build and install the util-vserver tools. Here's an example
(installing tools in /lib and /sbin and also /etc/init.d):
# cd /usr/src/util-vserver-0.30.209
# ./configure --prefix= --sysconfdir=/etc
# make && make install && make install-distribution
Testing
Test if all went well:
# wget http://vserver.13thfloor.at/Stuff/SCRIPT/testme.sh
# chmod 700 testme.sh;./testme.sh
If all went well you get something like this:
Linux-VServer Test [V0.15] Copyright (C) 2003-2006 H.Poetzl
chcontext is working.
chbind is working.
Linux 2.6.14.3-vs2.0.1 #1 SMP Thu Mar 2 12:45:32 IST 2006 i686
Ea 0.30.209 273/glibc (DSa) <compat,v11,v13,fscompat,net,oldproc,olduts>
VCI: 0002:0001 273 03110036 (TbLgnPD)
---
[000]# succeeded.
[001]# succeeded.
[011]# succeeded.
[031]# succeeded.
[101]# succeeded.
[102]# succeeded.
[201]# succeeded.
[202]# succeeded.
The Files
/vservers/ 
Home directory for the vservers 
/etc/vservers.conf 
basic config file (not much to see
there) 
/etc/vservers 
Hold the config directories for each
virtual server 
/usr/sbin/vserver 
Utility to interact, build, start,
stop, enter, etc the vservers 
/usr/lib/util-vserver/vshelper 
Another utility to control how
vservers function 
/usr/lib/util-vserver 
Main scripts/functions/etc
Setting Up The Virtual Servers
Creating virtual servers is pretty simple from here on. The following
lays it out for you: 
First up you have to create a template from your host system. For that
you have to take a dump of the entire file system minus two
directories, /proc, and /dev:
# mkdir /vservers/template/
# dump 0f - /usr | (cd /vservers/template/ && restore rf -)
Similarly take a dump for the following directories:
/usr /lib /var /etc /opt and /root.
Now you can clean up the template to improve on the speed and size of
the vservers.
create a vserver based on the following command:
# /sbin/vserver <VSERVER_NAME> build -m <BUILD_METHOD>
--hostname <VSERVER_HOSTNAME>
--interface <VSERVER_NAME>=<NET_DEVICE>:<IP>/<CIDR>
Here's a real example:
# /sbin/vserver boing build -m skeleton --hostname boing.lk.com
--interface boing=eth0:192.168.1.10/24
So, our first virtual server will have the following information: 
                       VSERVER_NAME 
boing 
                               FQDN 
boing.lk.com 
                         NET_DEVICE 
eth0 
                                 IP 
192.168.1.10 
                               CIDR 
24 (255.255.255.0) 
                        BUILD_METHOD
skeleton 
Now you have to populate your new vserver with the data from your
template:
# cp -a /vservers/template/. /vservers/boing/
Edit the /etc/hosts and /etc/resolv.conf in the vserver to reflect the
networking settings of your vserver:
# vi /vservers/boing/etc/hosts
# vi /vservers/boing/etc/resolv.conf
Starting The Virtual Servers
We are now doen setting up the vservers. It is now time to keep those
fingers crossed and start our new vserver:
# /sbin/vserver boing start 
--------------------------------------- end if file -----------------
> 
> > secure-mount: chdir("/tmp"): No such file or directory
> 
> looks like some /tmp either on the guest or on
> the host is missing, or maybe some permissions
> are not set properly ...
> 
> > /etc/vservers/boing/fstab:2:1: failed to mount fstab-entry
> 
> this is likely the result of /tmp not being
> there so mounting the tmpfs fails
> 
> > find: var/run: No such file or directory
> 
> similar for var/run as it seems
> 
> > fakerunlevel: open("/var/run/utmp"): No such file or directory
> > 
> > 
> > Failed to start vserver 'boing'
> > 
> > howto fix this errors?
> 
> first, let's figure the tool version and how
> you installed the guest ...
> 
> best,
> Herbert
> 
> > Thanks
> > 
> > Varun
> > _______________________________________________
> > Vserver mailing list
> > Vserver@list.linux-vserver.org
> > http://list.linux-vserver.org/mailman/listinfo/vserver
> 
------------------------------
Message: 4
Date: Wed, 31 May 2006 17:19:13 +0200
From: Daniel Hokka Zakrisson <daniel@hozac.com>
Subject: Re: [Vserver] IPV6 and VSERVER ?
To: vserver@list.linux-vserver.org
Message-ID: <447DB3F1.7020709@hozac.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
HongDan wrote:
> OK, I'm working on a FC5 based system, and I've successfully built
kernel-2.
> 6.16.18 with vs-2.1.1 and ipv6a patch. Then I installed
> liblibvserver-2.0_pre.tar.tar to /usr/lib. But I met with errors while
> compiling vserver-utils-1.0.4_pre.tar.tar. I passed ./configure, but
failed
> during make. The errors are like this:
> 
> printf.c:29:26: error: libowfat/fmt.h: No such file or directory
> printf.c:30:26: error: libowfat/str.h: No such file or directory
> printf.c: In function 'vu_vsnprintf':
> printf.c:54: warning: value computed is not used
> printf.c:60: warning: value computed is not used
> printf.c:90: warning: value computed is not used
> printf.c:95: warning: value computed is not used
> printf.c:114: warning: value computed is not used
> printf.c:120: warning: value computed is not used
> printf.c:143: warning: value computed is not used
> printf.c:152: warning: value computed is not used
> printf.c:165: warning: value computed is not used
> printf.c:192: warning: value computed is not used
> printf.c:252: warning: implicit declaration of function 'fmt_str'
> printf.c:254: warning: implicit declaration of function 'fmt_plusminus'
> printf.c:256: warning: implicit declaration of function 'fmt_minus'
> printf.c:259: warning: implicit declaration of function 'fmt_ulonglong'
> printf.c:283: warning: implicit declaration of function 'fmt_ulong0'
> printf.c:303: warning: implicit declaration of function 'fmt_double'
> printf.c:303: error: 'FMT_LEN' undeclared (first use in this function)
> printf.c:303: error: (Each undeclared identifier is reported only once
> printf.c:303: error: for each function it appears in.)
> printf.c:324: warning: implicit declaration of function 'fmt_8long'
> printf.c:388: warning: implicit declaration of function 'fmt_xlonglong'
> printf.c:405: warning: implicit declaration of function 'fmt_xlong'
> printf.c:426: warning: implicit declaration of function 'str_len'
> printf.c:456: warning: implicit declaration of function 'fmt_strn'
> printf.c: In function 'vu_vasprintf':
> printf.c:510: error: 'FMT_LEN' undeclared (first use in this function)
> make[4]: *** [printf.o] Error 1
> make[4]: Leaving directory
> `/home/hd/src/vserver-utils-1.0.4_pre/src/libinternal'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/home/hd/src/vserver-utils-1.0.4_pre/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/hd/src/vserver-utils-1.0.4_pre/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/hd/src/vserver-utils-1.0.4_pre'
> make: *** [all] Error 2
> 
> I guess the 'printf' error has something with dietlibc. It once complained
> for missing dietlibc when I "./configure" at the first time, so I
installed
> dietlibc-0.29-6.fc5.i386.rpm and dietlibc-lib-0.29-6.fc5.i386.rpm, and
> passed. The output of ./configure is 
> 
> configure: vserver-utils 1.0.4_pre configured successfully:
>              CC: diet -Os gcc (gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3))
>              CPPFLAGS: ''
>              CFLAGS: '-g -O2 -W -Wall -std=gnu99 -pedantic'
>              prefix: /usr/local
>              build/host: /
>              sysconfdir: ${prefix}/etc
>              vdirbase: /vservers
>              vconfig backend: single
> 
> All above look all right. Then how to fix the 'make' error?
> 
> I also tried to install util-vserver-(core,lib,sysv,build).rpm and found
my
> guests built before still work on the newly built kernel, but can't get
IPv6
> address assigned yet, just as you mentioned in the mailing list that
> util-vserver may not manipulate ipv6 address. My question is how to build
a
> new virtual server with IPv6 address? I used "
> vserver gast build -m yum --context 42 --hostname=gast.example --interface
> gast0=eth0:192.168.0.1/24 -- -d fc5" to build vserver before, then how to
> set the ipv6 address in the command above? Are there any tutorials about
it?
> 
> Thanks!
Well, I was lazy when I tested the IPv6 patch so I hacked up 
http://daniel.hozac.com/vserver/chbind6.c
Compile it with
gcc -lvserver -I<path to kernel tree>/include -o chbind6 chbind6.c
If you're using util-vserver 0.30.210, you should be able to start the 
guest, run
chbind6 -a -n <xid, 42 from your example> -6 <IPv6 address>
and it should be assigned (check /proc/virtnet/<xid>/info to make sure).
--
Daniel Hokka Zakrisson
GPG id: 06723412
GPG fingerprint: A455 4DF3 990A 431F FECA  7947 6136 DDA2 0672 3412
------------------------------
Message: 5
Date: Wed, 31 May 2006 20:06:29 +0200
From: Guenther Fuchs <vserver@muh.at>
Subject: [Vserver] linuxwochen Wien
To: vserver@list.linux-vserver.org
Message-ID: <118513463.20060531200629@fuchs.info>
Content-Type: text/plain; charset=us-ascii
Hi there,
somehow it happend that the pointer is very late: linuxwochen Wien
2006 started today with Herbert having an interesting moderation on a
discussion panel relating to "Virtualisation" at all.
He's going to have a speakers task tomorrow 12:00 and having some
other tasks on this event as well , lasting till Friday in Vienna,
location "Urania" - see the link:
  http://www.linuxwochen.at/2006/Wien
Some interviews will be presented on (German) netradio "o94" on
Friday: http://o94.at/programs/netwatcher/ 
-- 
regards 'n greez,
Guenther Fuchs
(aka "muh" and "powerfox")
------------------------------
Message: 6
Date: Wed, 31 May 2006 14:31:00 -0700
From: "Roderick A. Anderson" <raanders@acm.org>
Subject: Re: [Vserver] Multiple NICs, multiple networks: Revisited
To: vserver@list.linux-vserver.org
Message-ID: <447E0B14.1060403@acm.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Roderick A. Anderson wrote:
> I have looked at "http://linux-vserver.org/Recipes" -- "configuring 
> routing for a server with two network interfaces" and it makes sense but 
> since I use sysv ( Redhat/Fedora/CentOS ) systems I'm not sure how to 
> accomplish the same thing.  That is at boot or network restart time 
> without user intervention.
> 
> Any R/F/C users that are doing multiple networks and routing on the list 
> that can share their knowledge?
I have found the answer but still have to test it.  Once I do I'll add 
to the Recipes page.
Rod
-- 
------------------------------
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
End of Vserver Digest, Vol 26, Issue 55
***************************************
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Jun 1 09:39:10 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 01 Jun 2006 - 09:39:18 BST by hypermail 2.1.8