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/...-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:
root@proxnode2:~# vzctl set 102 --netif_add adm100,,,,venet0-00v100 --saveConfigure veth devices: veth102.100
According to /etc/pve/openvz/102.conf, CT102 has no veth interface configured.
/usr/sbin/vznetcfg exited with error
Error: failed to apply some parameters, not saving configuration file!
From the OVZ container:
Code:
root@proxnode2:~# cat /var/lib/vz/private/102/etc/network/interfaces # This configuration file is auto-generated.
#
# WARNING: Do not edit this file, your changes will be lost.
# Please create/edit /etc/network/interfaces.head and
# /etc/network/interfaces.tail instead, their contents will be
# inserted at the beginning and at the end of this file, respectively.
#
# NOTE: it is NOT guaranteed that the contents of /etc/network/interfaces.tail
# will be at the very end of this file.
#
# Auto generated lo interface
auto lo
iface lo inet loopback
# Auto generated venet0 interface
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 route -A inet6 add default dev venet0
down route -A inet6 del default dev venet0
auto venet0:0
iface venet0:0 inet static
address 10.10.1.62
netmask 255.255.255.255
root@proxnode2:~#
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/...-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.