managed to start the vm but pve networking service is not running

seaurchin

Member
Oct 12, 2016
3
0
21
42
when I was trying to start my first created vm, i faced the same issue as discussed in this thread https://forum.proxmox.com/threads/cant-start-vms.13824/

so I initially followed the thread and managed to created a bridge vmbr0 , I faced the problem because I created the pve install using vagrant.

I confirmed that vmbr0 does not exist using brctl command i.e
Code:
brctl show vmbr0
after confirming I followed the above linked thread and then tried after confirming I followed the above linked thread and then tried
Code:
 systemctl restart networking
this errored as shown below
Code:
# systemctl status networking
● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2021-12-22 20:24:47 CET; 26min ago
     Docs: man:interfaces(5)
  Process: 27598 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
 Main PID: 27598 (code=exited, status=1/FAILURE)

Dec 22 20:24:46 pve systemd[1]: Starting Raise network interfaces...
Dec 22 20:24:47 pve ifup[27598]: RTNETLINK answers: File exists
Dec 22 20:24:47 pve ifup[27598]: ifup: failed to bring up eth1
Dec 22 20:24:47 pve systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Dec 22 20:24:47 pve systemd[1]: networking.service: Failed with result 'exit-code'.
Dec 22 20:24:47 pve systemd[1]: Failed to start Raise network interfaces.
but to my surprise I when I typed in
Code:
 ip addr show
the vmbr0 bridge was created.
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
    link/ether 08:00:27:a9:dc:1d brd ff:ff:ff:ff:ff:ff
    inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic eth0
       valid_lft 83498sec preferred_lft 83498sec
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP group default qlen 1000
    link/ether 08:00:27:75:0c:1f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.67/24 brd 192.168.1.255 scope global eth1
       valid_lft forever preferred_lft forever
7: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 08:00:27:a9:dc:1d brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.68/24 brd 192.168.1.255 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::a00:27ff:fea9:dc1d/64 scope link 
       valid_lft forever preferred_lft forever
8: tap999i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UNKNOWN group default qlen 1000
    link/ether 26:e0:7d:76:56:35 brd ff:ff:ff:ff:ff:ff
and I was able to start my vm using the command
Code:
sudo qm  start 999
but since in my pve installation the networking service is still not running, I tried reverting to original interfaces file shown below
Code:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

auto vmbr0
iface vmbr0 inet manual

#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
auto eth1
iface eth1 inet static
      address 192.168.1.67
      netmask 255.255.255.0
#VAGRANT-END
but the networking service is still not starting please guide me how should I fix this what what is going wrong here !
thank you in advance
 

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!