All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Configuring IPv6 for Proxmox OVZ on Dedibox / Online.net
Setting up Native IPv6 for OVZ in Proxmox on your Dedibox /Online.net. No Failover IP, Virtual MAC or Router required.
I have to mention that messing with your network config can do terrible things to your server, so proceed at your own risk..
Good for the Kidechire that don't require KVM in Proxmox.
1) Enable IPv6
/etc/modprobe.d/local.conf
options ipv6 disable=0
2) Get IPv6 to start on boot add the line ipv6 below loop
/etc/module
ipv6
3) Reboot server to enable IPv6
4) Enable Forwarding and Proxy
/etc/sysctl.conf
net.ipv6.conf.all.forwarding = 1 net.ipv6.conf.all.proxy_ndp = 1 net.ipv6.bindv6only = 1
5) in putty issue command
sysctl -p
6) From the online console go to the IPv6 tab and create a /64 subnet from your /48 IP block.
7) Create a new file named dhclient6.conf in
/etc/dhcp/
Replace DUID with the DUID number of the /64 from the online console.
interface "vmbr0" { send dhcp6.client-id DUID; request; }
8) Network Configuration, add the following lines to your interfaces file
/etc/network/interfaces
iface vmbr0 inet6 static address YourIPv6::1 netmask 64 accept_ra 2 pre-up dhclient -cf /etc/dhcp/dhclient6.conf -pf /run/dhclient6.eth0.pid -v -nw -6 -P vmbr0 pre-down dhclient -x -pf /run/dhclient6.eth0.pid
9) Restart Network issue the command in putty or reboot your server
service networking restart
You can add IPv6 directly in the CT creation page from the Proxmox Web GUI, no need to configure anything else prior.
From the Proxmox Web GUI
Top Right click "Create CT" button
Fill the info accordingly until you reach the "Network" tab
Beside "IP address" input your IPv6 address eg. xxxx:xxx:xxxx:xxx::2 Make sure you reserve this IP strictly for this CT and that the IP is not used anywhere else.
You may choose any IPv6 within your range but xxxx:xxx:xxxx:xxx::1 since this is already in use for the Proxmox host.
On the "DNS" tab leave it as is, we will change it after the CT is created.
Once on the "Confirm" tab you can review your setting and if all is well then click the "Finish" button
After your CT is created click on the CT and it should be highlighted blue, then Click on the "DNS" tab to the right of the CT
Under the "DNS" tab double click on "DNS server" and if the CT will be a IPv6 only you can delete all the IPv4 DNS and input a IPv6 DNS of your choosing. 2001:4860:4860::8888 for Googles Public DNS or 2001:470:20::2 for HE's Public DNS or use them both separating them with a space in between.
If you have followed the steps correctly you should now be able to start your CT and access it from the internet.
Well hope it's not too confusing. Let me know if this works out or if I goofed something up..
This tutorial is actually a continuation from my other guide on setting up IPv6 on KVM for your Dedibox server which you can find Here
Reference:
http://documentation.online.net/en/serveur-dedie/reseau/ipv6-prefix
http://forum.online.net/index.php?/topic/4729-howto-ipv6-using-dhclient-for-ubuntu/
http://tech.poirsouille.org/2014/09/proxmox-configuration-ipv6-avec-dhclient/
http://forum.ovh.co.uk/showthread.php?5844-IPv6-with-Proxy-ARP
http://forum.online.net/index.php?/topic/4059-solved-proxmox-and-ipv6/
http://robert.penz.name/582/ipv6-openvz-ves-and-debianproxmox-as-host-system/
Comments
Just want to mention that if you use iLO to install proxmox then this guide may not work. You will get random connection error. you need to use the installer from the online console if you wish to try this guide.
Thank you
Can we assign more than 1 IPv6 for a VM?
for a CT? yes I just tried adding to a OVZ seems to work fine. you can add an IP from the network tab and click on add->IP address
I cannot manage to get IPv6 on the host machine (Proxmox VE 4.1) following this guide, so although LXC container gets the correct IPv6 address, it cannot reach host nor Internet.
Has anyone tried this recently?
Adding manually the IPv6 address to the host allows (as expected) the container to reach the host via IPv6, but neither the host nor the container can reach Internet, as there are no default routes.
Isn't this supposed to be configured automatically?
@earl @bene_online
Great ▲▲▲▲