Hi,
I have migrated one of my OpenVZ containers this morning to my new infrastructure.
Old server was on a 192.168.0.* subnet, the VZ container on 192.168.0.12
New server is on a 10.10.1.* subnet, and I want the OpenVZ container still on 192.168.0.12.
I have put eth0 on my node into a Trunk Port, tagging the VLANs required, this works for KVM VM's, as they come up on the correct network.
Have done a little digging around and found the following command:
My VLAN here is VLAN 100, but I just can't figure out why no veth interface is shown.
From the OVZ container:
Sorry I am a bit new to OpenVZ containers and their networking..
Just wondering if someone can point me in the right direction?
If all else fails I think i might try following: http://www.robthomson.me.uk/2011/02/10/migrating-openvz-to-kvmzenvmware/
Just so I can keep my CTs alive as I need to decommission the old Prox setup soon.
Thanks again everyone for all your hard-work and knowledge.
I have migrated one of my OpenVZ containers this morning to my new infrastructure.
Old server was on a 192.168.0.* subnet, the VZ container on 192.168.0.12
New server is on a 10.10.1.* subnet, and I want the OpenVZ container still on 192.168.0.12.
I have put eth0 on my node into a Trunk Port, tagging the VLANs required, this works for KVM VM's, as they come up on the correct network.
Have done a little digging around and found the following command:
Code:
[FONT=Menlo]root@proxnode2:~# vzctl set 102 --netif_add adm100,,,,venet0-00v100 --save[/FONT][FONT=Menlo]Configure veth devices: veth102.100 [/FONT]
[FONT=Menlo]According to /etc/pve/openvz/102.conf, CT102 has no veth interface configured.[/FONT]
[FONT=Menlo]/usr/sbin/vznetcfg exited with error[/FONT]
[FONT=Menlo]Error: failed to apply some parameters, not saving configuration file![/FONT]
My VLAN here is VLAN 100, but I just can't figure out why no veth interface is shown.
From the OVZ container:
Code:
[FONT=Menlo]root@proxnode2:~# cat /var/lib/vz/private/102/etc/network/interfaces [/FONT][FONT=Menlo]# This configuration file is auto-generated.[/FONT]
[FONT=Menlo]#[/FONT]
[FONT=Menlo]# WARNING: Do not edit this file, your changes will be lost.[/FONT]
[FONT=Menlo]# Please create/edit /etc/network/interfaces.head and[/FONT]
[FONT=Menlo]# /etc/network/interfaces.tail instead, their contents will be[/FONT]
[FONT=Menlo]# inserted at the beginning and at the end of this file, respectively.[/FONT]
[FONT=Menlo]#[/FONT]
[FONT=Menlo]# NOTE: it is NOT guaranteed that the contents of /etc/network/interfaces.tail[/FONT]
[FONT=Menlo]# will be at the very end of this file.[/FONT]
[FONT=Menlo]#[/FONT]
[FONT=Menlo]
[/FONT]
[FONT=Menlo]# Auto generated lo interface[/FONT]
[FONT=Menlo]auto lo[/FONT]
[FONT=Menlo]iface lo inet loopback[/FONT]
[FONT=Menlo]
[/FONT]
[FONT=Menlo]# Auto generated venet0 interface[/FONT]
[FONT=Menlo]auto venet0[/FONT]
[FONT=Menlo]iface venet0 inet manual[/FONT]
[FONT=Menlo] up ifconfig venet0 up[/FONT]
[FONT=Menlo] up ifconfig venet0 127.0.0.2[/FONT]
[FONT=Menlo] up route add default dev venet0[/FONT]
[FONT=Menlo] down route del default dev venet0[/FONT]
[FONT=Menlo] down ifconfig venet0 down[/FONT]
[FONT=Menlo]
[/FONT]
[FONT=Menlo]
[/FONT]
[FONT=Menlo]iface venet0 inet6 manual[/FONT]
[FONT=Menlo] up route -A inet6 add default dev venet0[/FONT]
[FONT=Menlo] down route -A inet6 del default dev venet0[/FONT]
[FONT=Menlo]
[/FONT]
[FONT=Menlo]auto venet0:0[/FONT]
[FONT=Menlo]iface venet0:0 inet static[/FONT]
[FONT=Menlo] address 10.10.1.62[/FONT]
[FONT=Menlo] netmask 255.255.255.255[/FONT]
[FONT=Menlo]
[/FONT]
[FONT=Menlo]root@proxnode2:~# [/FONT]
Sorry I am a bit new to OpenVZ containers and their networking..
Just wondering if someone can point me in the right direction?
If all else fails I think i might try following: http://www.robthomson.me.uk/2011/02/10/migrating-openvz-to-kvmzenvmware/
Just so I can keep my CTs alive as I need to decommission the old Prox setup soon.
Thanks again everyone for all your hard-work and knowledge.