Networking Interfaces File Issues

itconstruct

Active Member
Aug 3, 2009
77
0
26
I am having problems with restoring my network/interfaces file on the host after I have made some changes.

Could you please let me know what the normal file should look like?

I am using v1.6 with openvz and kvm guests with one network interface.
 
I have been able to now fix this.

Could you please verify that the config is ok below and whether I should make any further changes?

Cheers

# network interface settings
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.0.18
netmask 255.255.255.0
gateway 192.168.0.1
# address 0.0.0.0
# netmask 0.0.0.0

#auto venet0
#iface venet0 inet static
# address 127.0.0.1
# netmask 255.255.255.255
# broadcast 0.0.0.0
# up route add default dev venet0
#auto venet0:0
#iface venet0:0 inet static
# address 192.168.0.24
# netmask 255.255.255.255
# broadcast 0.0.0.0
auto vmbr0
iface vmbr0 inet static
address 192.168.0.18
netmask 255.255.255.0
gateway 192.168.0.1
bridge_prts eth0
bridge_stp off
bridge_fd 0

Also please note that none of my KVM guests will startup.

Please advise asap.
 
you have no reason to assign address, netmask etc to eth0 since is used by the bridge vmbr0
My (default) setup is the following:
Code:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
        address  192.168.1.9
        netmask  255.255.255.0
        gateway  192.168.1.253
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0
 
you have no reason to assign address, netmask etc to eth0 since is used by the bridge vmbr0
My (default) setup is the following:
Code:
# network interface settings
auto lo
iface lo inet loopback
 
iface eth0 inet manual
 
iface eth1 inet manual
 
auto vmbr0
iface vmbr0 inet static
        address  192.168.1.9
        netmask  255.255.255.0
        gateway  192.168.1.253
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
 
auto vmbr1
iface vmbr1 inet manual
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0


Thank you for your help.

I have made the necessary adjustments however at this stage I can not start any KVM guests.

Please advise.
 
start the kvm VM from console, and report message errors here:
i.e. to start vm 101 do (# is the root prompt, don't enter it :)):
# qm start 101
and/or have a look at usual log files for any hint (like /var/log/messages, or run # dmesg and grep for errors or warnings)
vmbr0 connectivity works fine? (the proxmox basic one... can you ssh into proxmox and/or use web interface. I think so, but just in case...)
what is the output of:
# ifconfig
 
start the kvm VM from console, and report message errors here:
i.e. to start vm 101 do (# is the root prompt, don't enter it :)):
# qm start 101
and/or have a look at usual log files for any hint (like /var/log/messages, or run # dmesg and grep for errors or warnings)
vmbr0 connectivity works fine? (the proxmox basic one... can you ssh into proxmox and/or use web interface. I think so, but just in case...)
what is the output of:
# ifconfig

Thanks for your help so far.

I am sorry to advise but we had a power outage last night and now the machine is not accessible again remotely and it has the same network setup as shown below:
Code:
auto lo
iface lo inet loopback
 
iface eth0 inet manual
 
auto vmbr0
iface vmbr0 inet static
address 192.168.0.18
netmask 255.255.255.0
gateway 192.168.0.1
bridge_prts eth0
bridge_stp off
bridge_fd 0

ifconfig reports two network interfaces lo and venet0-00 with neither showing a ip other than the localhost.

When I try and run /etc/init.d/networking restart I get :
Code:
Reconfiguring network interfaces...SIOCSIFADDR: No such device
vmbr0: Error while getting interface flags: No such device
SIOCSIFNETMASK: No such device
vmbr0: Error while getting interface flags: No such device
Failed to bring up vmbr0.
done.

When running # qm start 101 I get:
Code:
device tap101i0 entered promiscuous mode
.....
bridge vmbr0 does not exist!
can't add interface to bridge
/var/lib/qemu-server/bridge-vlan: could not launch network script
could not initialize device 'tap'
start failed: command ......
failed with exit code 1

Please advise asap.
 
Cheers.

Made this change.

KVM Machines seem to now be starting and running however the management website is really slow and won't let me to go past the login page.

Please advise.

I have also upgraded to v1.7

This was fixed by restarting Apache however now when I try and mount my CIFS network shares I receive:

mount error 110 = Connection timed out
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

Please advise.
 

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!