OpenVZ Forum


Home » General » Support » *SOLVED* Ubuntu VE + working IPv6
*SOLVED* Ubuntu VE + working IPv6 [message #25357] Fri, 21 December 2007 07:27 Go to next message
broquea is currently offline  broquea
Messages: 20
Registered: December 2007
Junior Member
I need to support IPv6, and am playing with Unbuntu as a VE. I've used it as itself naturally, and IPv6 wasn't a problem to configure. My other VEs (not debian based: centos, fedora, trixbox) configure and use IPv6 happily (yay!).

I'm able to configure the IP with vzctl, and once the VE is up and entered, /etc/network/interfaces has an IPv6 config (IP changed for posterity):

iface venet0 inet6 static
        address ::1
        netmask 128
        up ifconfig venet0 add a:b:c::d


However ifconfig output shows nothing configured:

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


I'm looking for this to come up correctly when the VE is started (like the other VEs), and am wondering if the syntax isn't generated correctly or if I'm overlooking something. I don't have access to a non-virutalized ubuntu box to muck with, or spare equipment to blast it onto (zomg, a reason for virtualization!!1!1).

And searching for IPv6 + (any distro) results in "omg what the hell is ipv6, and how do I get rid of it because it takes me an extra 30 seconds for dns lookups to time out because it found a AAAA record and my computer/ISP isn't cool enough to have tunneled/native IPv6 connectivity" posts.

[Updated on: Sat, 22 December 2007 18:14]

Report message to a moderator

Re: Ubuntu VE + working IPv6 [message #25359 is a reply to message #25357] Fri, 21 December 2007 07:51 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

can you please post some information, too:

* distr. of your hardware node
* is IPv6 enabled in /etc/vz/vz.conf ?
* what vzctl version and which version of ve os template is used ?

Re: Ubuntu VE + working IPv6 [message #25363 is a reply to message #25359] Fri, 21 December 2007 09:05 Go to previous messageGo to next message
broquea is currently offline  broquea
Messages: 20
Registered: December 2007
Junior Member
curx wrote on Thu, 20 December 2007 23:51

Hi,

can you please post some information, too:

* distr. of your hardware node
* is IPv6 enabled in /etc/vz/vz.conf ?
* what vzctl version and which version of ve os template is used ?




Distro used for "HN" is CentOS 5.1

Yes, IPv6 is enabled in vz.conf (otherwise my other VE's wouldn't have working IPv6 connectivity Wink)

vzctl version 3.0.18

I grabbed the unbuntu 7.10 precreated template cache: ubuntu-7.10-i386-minimal
http://openvz-mirror1.rapidvps.com/template/precreated/ubunt u-7.10-i386-minimal.tar.gz

Again, the other VEs I'm running, which are essentially RedHat based (centos, fedora) have 100% native IPv6 connectivity using the same command that isn't working for the ubuntu VE:

vzctl set VEID --ipadd x.x.x.x --save
vzctl set VEID --ipadd a:b:c::d --save
(where x.x.x.x is a real ipv4 address and a:b:c::d is a real ipv6 address)

[Updated on: Fri, 21 December 2007 10:39]

Report message to a moderator

Re: Ubuntu VE + working IPv6 [message #25371 is a reply to message #25357] Fri, 21 December 2007 10:31 Go to previous messageGo to next message
broquea is currently offline  broquea
Messages: 20
Registered: December 2007
Junior Member
I've been scouring forums, and saw the mention of vzctl needing to be 3.0.19 for ubuntu to "work". I've had no problems with it working with 3.0.18, including IPv4 networking, but I'm grabbing a copy of 3.0.22 and will update if that fixed my issue of IPv6 not working.

{EDIT}

No luck. It took a moment when applying the IP addresses, fired up the VE, and after logging in, exact same /etc/network/interfaces configuration and output from ifconfig showing no inet6 address configured on venet0

[Updated on: Fri, 21 December 2007 10:40]

Report message to a moderator

Re: Ubuntu VE + working IPv6 [message #25375 is a reply to message #25371] Fri, 21 December 2007 11:29 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

please enter the VE,

and exec:

# /etc/init.d/networking restart

and post the output ...

Re: Ubuntu VE + working IPv6 [message #25377 is a reply to message #25357] Fri, 21 December 2007 11:40 Go to previous messageGo to next message
broquea is currently offline  broquea
Messages: 20
Registered: December 2007
Junior Member
 * Reconfiguring network interfaces...  
SIOCADDRT: File exists
Failed to bring up venet0.
                                                                         [ OK ]
Re: Ubuntu VE + working IPv6 [message #25378 is a reply to message #25377] Fri, 21 December 2007 11:50 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Have you added the IPv6 Support, while the VE is running ?
so please (Re-)Start the VE.

Re: Ubuntu VE + working IPv6 [message #25379 is a reply to message #25378] Fri, 21 December 2007 12:23 Go to previous messageGo to next message
broquea is currently offline  broquea
Messages: 20
Registered: December 2007
Junior Member
curx wrote on Fri, 21 December 2007 03:50

Have you added the IPv6 Support, while the VE is running ?
so please (Re-)Start the VE.




Ok, clarifications:

IPv6 support was set in vz.conf before any VE was created.

I've restarted the Ubuntu VE several times, to no avail.
I've restarted the overall service a few times as well (/etc/init.d/vz).

IPv6 is working in the 3 RedHat based VEs.

IPv6 is not working in the Debian based Ubuntu VE.

It isn't an ip6tables issue because the ipv6 address isn't being applied to the interface.

I can manually configure the ipv6 address on the interface using ifconfig, without errors. However routing is another issue and I need to read more on the whole venet device a bit more to figure out what specific route statement was done under the RedHat based VEs, as it is working.

FC8 VE:
route -A inet6
Kernel IPv6 routing table
Destination                                 Next Hop                                Flags Metric Ref    Use Iface
fe80::/64                                   *                                       U     256    0        0 venet0
*/0                                         *                                       U     1      0        0 venet0
::1/128                                     *                                       U     0      1        1 lo
a:b:c::d/128                                *                                       U     0      19       1 lo
ff00::/8                                    *                                       U     256    0        0 venet0


Ubuntu 7.10 VE (with manual configuration of address onto venet0):
route -A inet6
Kernel IPv6 routing table
Destination                                 Next Hop                                Flags Metric Ref    Use Iface
fe80::/64                                   ::                                      U     256    0        0 venet0
::1/128                                     ::                                      U     0      9        1 lo
a:b:c::d/128                                ::                                      U     0      0        1 lo
ff00::/8                                    ::                                      U     256    0        0 venet0
Re: Ubuntu VE + working IPv6 [message #25380 is a reply to message #25363] Fri, 21 December 2007 12:27 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Can you try to do this with some Debian template?

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Ubuntu VE + working IPv6 [message #25382 is a reply to message #25380] Fri, 21 December 2007 12:39 Go to previous messageGo to next message
broquea is currently offline  broquea
Messages: 20
Registered: December 2007
Junior Member
kir wrote on Fri, 21 December 2007 04:27

Can you try to do this with some Debian template?


As requested, I used debian-4.0-i386-minimal

Different valid IPs both v4/v6 from the Ubuntu VE

Survey says...........working!

/etc/network/interfaces is line for line (excluding the IPs), exactly the same in both debian-4 and ubuntu-7.10, just that debian-4 works.

[Updated on: Fri, 21 December 2007 12:47]

Report message to a moderator

Re: Ubuntu VE + working IPv6 [message #25389 is a reply to message #25357] Fri, 21 December 2007 19:56 Go to previous messageGo to next message
broquea is currently offline  broquea
Messages: 20
Registered: December 2007
Junior Member
6 hours later, and a nap.....

I grabbed the ubuntu-6.06-i386-minimal template from contrib, created a whole new VE, and after launching:

- didn't have IPv6 configured on venet0
- venet0:0 wasn't created with the IPv4 IP either

So I ran: /etc/init.d/network restart

got the following output:

 * Reconfiguring network interfaces...
SIOCSIFADDR: File exists
Failed to bring up venet0.                                                                                                  
                                                           [ ok ]


And despite errors:

- venet0 had the IPv6 address
- venet0:0 was created with the IPv4 address
- I have working IPv4/6 connectivity

So I tried the ubuntu-7.10-i386-minimal template also out of contrib, but it has the same behavior as the other 7.10 template I've been trying.

[Updated on: Fri, 21 December 2007 19:57]

Report message to a moderator

Re: Ubuntu VE + working IPv6 [message #25394 is a reply to message #25357] Sat, 22 December 2007 00:19 Go to previous messageGo to next message
broquea is currently offline  broquea
Messages: 20
Registered: December 2007
Junior Member
I went through the wiki steps for installing under a Debian environment and then rolling your own Gutsy template (which are awesome resources, thanks to those that wrote them up):

http://wiki.openvz.org/Installation_on_Debian
http://wiki.openvz.org/Ubuntu_Gutsy_template_creation

After creating a brand new VE based on an installation of Ubuntu-7.10-server-i386, still no IPv6 love under the VE.

Of course on that brand new 7.10 server I installed, IPv6 works without issue.

So I suppose I could try 7.0.4-server-i386 since I just found the cd in my stack, and see if its an issue with the 7.x branch seeing as Debian-4.0 and Ubuntu-6.0.6 both supported IPv6 as a VE.

{EDIT}

No luck with Ubuntu-7.0.4-server-i386 (feisty) either. And I had even tried /etc/init.d/network restart in all my attempts Sad

[Updated on: Sat, 22 December 2007 01:19]

Report message to a moderator

Re: Ubuntu VE + working IPv6 [message #25397 is a reply to message #25394] Sat, 22 December 2007 09:58 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

i found the error :

on ifup with an IPv6 adress, invoke by /etc/init.d/networking, the command start a "modprobe -Q ipv6", fails in VE so with a "fake-modprobe-script"

# ln -s /bin/true /sbin/modprobe

the error is gone and IPv6 is ready to connect Smile

[Updated on: Sat, 22 December 2007 10:12]

Report message to a moderator

Re: Ubuntu VE + working IPv6 [message #25403 is a reply to message #25397] Sat, 22 December 2007 18:14 Go to previous message
broquea is currently offline  broquea
Messages: 20
Registered: December 2007
Junior Member
curx wrote on Sat, 22 December 2007 01:58

Hi,

i found the error :

on ifup with an IPv6 adress, invoke by /etc/init.d/networking, the command start a "modprobe -Q ipv6", fails in VE so with a "fake-modprobe-script"

# ln -s /bin/true /sbin/modprobe

the error is gone and IPv6 is ready to connect Smile


Awesome, it is working now. I just had to stop/start the entire VE for it to pick up the IPv6 address.

Cheers!
Previous Topic: disk quota exceeded problem at ve
Next Topic: Installation on VPS fails....
Goto Forum:
  


Current Time: Sat Nov 09 01:45:08 GMT 2024

Total time taken to generate the page: 0.03203 seconds