Some appliances don't have NICs

fatzopilot

New Member
Oct 6, 2011
22
0
1
Hi,

I am sucessfully running some OpenVZ appliances based on Ubuntu 11.04 (AMD64) on Proxmox 1.9. I tried to run some of the appliance templates that are accessible from the download section in the web interface as well (Wordpress and Mediawikie based on Debian i386), but their network interfaces do not seem to work, i.e. doing ifconfig, I only see their looback device. In /etc/network/interfaces, an eth0 is not present as well. However, the following line is in the corresponding /etc/vz/conf/109.conf on the host: NETIF="ifname=eth0,bridge=vmbr1,mac=9E:2A:3D:36:7F:D5,host_ifname=veth109.0,host_mac=00:18:51:EA:87:7B". The Ubunutu VZ (in which the NICs work) is configured correspondingly (i.e. using vmbr1).
Is there some problem with those appliances or am I missing someting different?

Thanks
 
you talk about venet (recomended) or veth?
 
if you use veth, you need to configure the network inside the container. here is an example for Debian containers.

Code:
nano /etc/network/interfaces

and add the following (e.g. for DHCP):

Code:
auto eth0
iface eth0 inet dhcp
 
yes, no it works. I wasn't aware I also seem to have done this for the Ubuntu VMs....

Thanks
fatzopilot
 
One more thing: Any idea why the Debian VMs do not seem to publish their hostname to the DHCP (they get an IP, though)? The Ubuntu ones do this out of the box...