Re: [Vserver] IPV6 and VSERVER ?

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Wed 31 May 2006 - 16:19:13 BST
Message-ID: <447DB3F1.7020709@hozac.com>

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
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Wed May 31 16:19:54 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 31 May 2006 - 16:20:03 BST by hypermail 2.1.8