[ask]moving venet to veth

El_makong

New Member
Sep 4, 2013
26
0
1
hello guys,
i want to ask something i have searched before(using google of course)
how to move interface from venet to veth?
current config:
OS: centos6 and ubuntu12.4
IP: centos = 10.10.78.60; ubuntu 10.10.78.62; host 10.10.78.59
gateway: 10.10.78.57/29

currently, guest using openVZ with venet configuration..
well, i need the user own mac address. and own iptables i think..

hardware configuration:
internet -> mikrotik -> eth1 on server engine.eth0 still available(for clustering on the future)

anybody got solution?
 
Hi,
remove the venet device and add an veth-device.

After that, you must configure the network inside the CT (like /etc/network/interface ) with an real IP from your bridged network.
Look with "ifconfig -a" to see the device.

Udo
 
Hi,
remove the venet device and add an veth-device.

After that, you must configure the network inside the CT (like /etc/network/interface ) with an real IP from your bridged network.
Look with "ifconfig -a" to see the device.

Udo

can you be more specific?
 
And he is telling you to fire up a new one to see what it looks like, not telling you to create a new one for your VM to use

Sent from my Nexus 5

well, at first, i try to do that..but the eth0 isnt up..so, i configure it like this

Code:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=de:vi:ce:ma:c:addr
IPADDR=192.168.88.10
NETMASK=255.255.255.0
GATEWAY=192.168.88.1
ONBOOT=yes

#save n quit
service network restart
when i check it again, its added..

but if i use this with the already created CT, it wont work.
 
well, at first, i try to do that..but the eth0 isnt up..so, i configure it like this

Code:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=de:vi:ce:ma:c:addr
IPADDR=192.168.88.10
NETMASK=255.255.255.0
GATEWAY=192.168.88.1
ONBOOT=yes

#save n quit
service network restart
when i check it again, its added..

but if i use this with the already created CT, it wont work.

Sure it will. I have moved VMS around in this fashion several times

Sent from my Nexus 5
 

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!