IPv6 & venet on the 2.6.32 kernel

Smanux

Renowned Member
Jun 29, 2009
39
3
73
Hi,

Has anyone managed to configure successfully an IPv6 on a venet for a container with the 2.6.32 kernel? It used to work with the 2.6.24 kernel, but with the newer kernel the IPv6 assigned is just ignored.

In the container I get this:

Code:
ariane:/# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1656 (1.6 KiB)  TX bytes:1656 (1.6 KiB)

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:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:948 (948.0 B)  TX bytes:390 (390.0 B)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet addr:178.33.109.xxx  P-t-P:178.33.109.xxx  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
Code:
ariane:/# route -6
Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
fe80::/64                      ::                         U    256 0     0 venet0
::/0                           ::                         !n   -1  1     1 lo
::1/128                        ::                         Un   0   3     5 lo
ff00::/8                       ::                         U    256 0     0 venet0
::/0                           ::                         !n   -1  1     1 lo
Also worth noting, in /var/log/init.log I can see this message:

Code:
SIOCSIFADDR: Cannot assign requested address
Failed to bring up venet0.
Did I miss an extra step to configure the IPv6 with the 2.6.32 kernel, or is this simply a regression?
 
Last edited:
Greetings,

We are in October 2012, 2 year after the last response of this thread and i have exactly the same problem.

My kernel is 2.6.32-14-pve and i have the same error :

/etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces ... (warning).
Reconfiguring network interfaces...SIOCDIFADDR: Cannot assign requested address
SIOCSIFADDR: Permission denied
Failed to bring up venet0.
done.

My /etc/network/interfaces is :

auto lo
iface lo inet loopback
auto venet0
iface venet0 inet manual
up ifconfig venet0 up
up ifconfig venet0 127.0.0.2
up route add default dev venet0
down route del default dev venet0
down ifconfig venet0 down
iface venet0 inet6 manual
up ifconfig venet0 add 2a01:e35:2f06:ab60::101/128
down ifconfig venet0 del 2a01:e35:2f06:ab60::101/128
up route -A inet6 add default dev venet0
down route -A inet6 del default dev venet0
auto venet0:0
iface venet0:0 inet static
address 192.168.0.1
netmask 255.255.255.255

IPv6 added with :
vzctl set 101 --ipadd 2a01:e35:2f06:ab60:0:0:0:101 --save

I hope you won't tell me "Please use 2.6.18 for feature complete OpenVZ" ? :)
This kernel was been released in December 2006, there are 6 years ...

Do you have an idea please ?
 
My issue was fixed in a recent kernel, I don't know when exactly, but IPv6 works fine with Proxmox 2.
 
Thanks so much for your response, so the problem shouldn't come from the kernel.

I have 3 network interface on my Proxmox : vmbr0(eth0), venet0 and eth1.

My proxmox is linked to a modem (called Freebox) in bridge mode. IPv6 of my first equipment (modem) is : 2a01:e35:2f06:ab60::1/126, my vmbr0(eth0) is 2a01:e35:2f06:ab60::2/126 and on my eth1, I have set a sub network IPv6 (where i am with my personal computer) with 2a01:e35:2f06:ab60:1::1/80 and my personal IPv6 is 2a01:e35:2f06:ab60:1::2/80.

All is perfect till now, i can access to IPv6 everywhere.

The problem now is on my OpevNZ container on my venet0.

When i set :

#vzctl set 101 --ipadd 2a01:e35:2f06:ab60::3 --save
Adding IP address(es): 2a01:e35:2f06:ab60::3
CT configuration saved to /etc/pve/openvz/101.conf

and i enter in my 101 :

#vzctl enter 101
entered into CT 101

and i show my IPv6 on my 101 :

#ip -6 addr show
....... (nothing is showed)

Then, i exit my VM to delete my IPv6 :

#exit
#vzctl set 101 --ipdel 2a01:e35:2f06:ab60::3 --save
Deleting IP address(es): 2a01:e35:2f06:ab60::3
SIOCDIFADDR: Cannot assign requested address
CT configuration saved to /etc/pve/openvz/101.conf

And i get an error line.

I don't understand what is my problem and i don't know where i can look.
Could you assist me to resolv my problem please ?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!