[SOLVED] Can't start VM's

rauppe31

New Member
Mar 26, 2013
21
1
3
Hello

I can't start any KVM-VM's.
When I run
Code:
qm start 100
The following Error is showing:

Code:
bridge 'vmbr0' does not exist
/var/lib/qemu-server/pve-bridge: could not launch network script
kvm: -netdev type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge: Device 'tap' could not be initialized
start failed: command '/usr/bin/kvm -id 100 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -daemonize -name test -smp 'sockets=1,cores=1' -nodefaults -boot 'menu=on' -vga cirrus -k en-us -m 512 -cpuunits 1000 -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -drive 'file=/var/lib/vz/template/iso/debian-6.0.7-amd64-netinst.iso,if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/var/lib/vz/images/100/vm-100-disk-1.qcow2,if=none,id=drive-ide0,aio=native,cache=none' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge' -device 'e1000,mac=CE:40:3F:79:83:D8,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: exit code 1
What can I do?
 
Last edited:

spirit

Famous Member
Apr 2, 2010
4,158
259
103
www.odiso.com
Hello

I can't start any KVM-VM's.
When I run
Code:
qm start 100
The following Error is showing:

Code:
bridge 'vmbr0' does not exist
/var/lib/qemu-server/pve-bridge: could not launch network script
kvm: -netdev type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge: Device 'tap' could not be initialized
start failed: command '/usr/bin/kvm -id 100 -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server,nowait' -mon 'chardev=qmp,mode=control' -vnc unix:/var/run/qemu-server/100.vnc,x509,password -pidfile /var/run/qemu-server/100.pid -daemonize -name test -smp 'sockets=1,cores=1' -nodefaults -boot 'menu=on' -vga cirrus -k en-us -m 512 -cpuunits 1000 -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3' -drive 'file=/var/lib/vz/template/iso/debian-6.0.7-amd64-netinst.iso,if=none,id=drive-ide2,media=cdrom,aio=native' -device 'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 'file=/var/lib/vz/images/100/vm-100-disk-1.qcow2,if=none,id=drive-ide0,aio=native,cache=none' -device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=100' -netdev 'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge' -device 'e1000,mac=CE:40:3F:79:83:D8,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300'' failed: exit code 1
What can I do?
Seem that you don't have a vmbr0 bridge in your network config.

can you post your /etc/network/interfaces ?
 

rauppe31

New Member
Mar 26, 2013
21
1
3
Seem that you don't have a vmbr0 bridge in your network config.

can you post your /etc/network/interfaces ?
This is my /etc/network/interfaces:

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address 192.168.121.60
        netmask 255.255.255.0
        network 192.168.121.0
        broadcast 192.168.121.255
        gateway 192.168.121.254
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.121.254
        dns-search fritz.box
 

spirit

Famous Member
Apr 2, 2010
4,158
259
103
www.odiso.com
This is my /etc/network/interfaces:

Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address 192.168.121.60
        netmask 255.255.255.0
        network 192.168.121.0
        broadcast 192.168.121.255
        gateway 192.168.121.254
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.121.254
        dns-search fritz.box
So you have installed proxmox manually on top of a debian ?

you need to have a setup like this:


auto vmbr0
iface vmbr0 inet static
address 192.168.121.60
netmask 255.255.255.0
network 192.168.121.0
broadcast 192.168.121.255
gateway 192.168.121.254
bridge_ports eth0
bridge_stp off
bridge_fd 0
 

rauppe31

New Member
Mar 26, 2013
21
1
3
So you have installed proxmox manually on top of a debian ?
Yes.

you need to have a setup like this:


auto vmbr0
iface vmbr0 inet static
address 192.168.121.60
netmask 255.255.255.0
network 192.168.121.0
broadcast 192.168.121.255
gateway 192.168.121.254
bridge_ports eth0
bridge_stp off
bridge_fd 0
Ok, I have added this text to my /etc/network/interfaces and the VM's are now running. Thank you!
 
Feb 11, 2020
6
0
1
51
San Clemente California
Hey Staff !
SAME PROBLEM !
Can You help me to set up my bridge on a Hetzner machine ?
Code:
cat /etc/network/interfaces

auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp27s0
iface enp27s0 inet static
  address 95.217.74.62
  netmask 255.255.255.192
  gateway 95.217.74.1
  # route 95.217.74.0/26 via 95.217.74.1
  up route add -net 95.217.74.0 netmask 255.255.255.192 gw 95.217.74.1 dev enp27s0

iface enp27s0 inet6 static
  address 2a01:4f9:4a:1981::2
  netmask 64
  gateway fe80::1
--

could you kindly check that the few settings I have written by reading this post are correct ?

Code:
auto enp27s0
iface vmbr0 inet static
address 95.217.74.62
netmask 255.255.255.192
network ??
broadcast ??
gateway ??
bridge_ports enp27s0
bridge_stp off
bridge_fd 0
thx
Gio
Hey did you ever find a soluton to this issue. I have hetzner as well and I can seem to figure out the fuck to do about the network config.. any help would be great.
 

MadMakz

New Member
Jan 12, 2020
6
0
1
If you don't know what to fill in there then you're not yet ready to run a public faceing server.

Other than that all infos you need are provided by your host and the proxmox documentation and in @GioMBG particular case there's even help and hints on Hetzners wiki.
 

ecce

New Member
Feb 17, 2020
10
0
1
39
Hey Staff !
SAME PROBLEM !
Can You help me to set up my bridge on a Hetzner machine ?
Code:
cat /etc/network/interfaces

auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp27s0
iface enp27s0 inet static
  address 95.217.74.62
  netmask 255.255.255.192
  gateway 95.217.74.1
  # route 95.217.74.0/26 via 95.217.74.1
  up route add -net 95.217.74.0 netmask 255.255.255.192 gw 95.217.74.1 dev enp27s0

iface enp27s0 inet6 static
  address 2a01:4f9:4a:1981::2
  netmask 64
  gateway fe80::1
--

could you kindly check that the few settings I have written by reading this post are correct ?

Code:
auto enp27s0
iface vmbr0 inet static
address 95.217.74.62
netmask 255.255.255.192
network ??
broadcast ??
gateway ??
bridge_ports enp27s0
bridge_stp off
bridge_fd 0
thx
Gio
Are you asking about what to write instead of the question marks in your vmbr0 config? If so: network is 95.217.74.0, broadcast is .63 in the end and gateway .1. That said, I'm a complete novice on proxmox, the network and broadcast can be calculated off the other info and gateway I assume is the same since the subnet is the same as the physical nic. Not sure if I understand your question completely though.
 
Feb 11, 2020
6
0
1
51
San Clemente California
Madmakz,

I am sure you had to start somewhere, I have similar set up as GioMBG and it is not close to the default setup that the wiki's provide. There is something that they leaving out information. Take for example volume groups (of which I still having figured out) its almost as if hetzner sets up multiple hard drive system on an lvm then you are setting up an and lvm on top of and lvm if that makes any sense. on system boot and pvscan show 1 physical HD. if I pre-set up 3 VG I can't initialize the drives its crazy..

Lets take GioMBG's example, in your wiki it suggest to you use this network interface setup (of which I tried)

Code:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet static
        address  198.51.100.5
        netmask  255.255.255.0
        gateway  198.51.100.1
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp


auto vmbr0
iface vmbr0 inet static
        address  203.0.113.17
        netmask  255.255.255.248
        bridge_ports none
        bridge_stp off
        bridge_fd 0
2 things that are not spelled out most of the examples that I have see them use eth (0) (1) so, does the new naming convention effect the configuration in anyway? all I can find in reference to that is the hotplug reference.. I understand the naming convention enp27s0 en=ethernet p=x s=slot But the examples use eth0 so how is that possible with debian?

and none examples or the wikis say if I need to include

Code:
up route add -net 95.217.74.0 netmask 255.255.255.192 gw 95.217.74.1 dev enp27s0

Code:
auto enp27s0
iface enp27s0 inet static
  address 95.217.74.62
  netmask 255.255.255.192
  gateway 95.217.74.1
  # route 95.217.74.0/26 via 95.217.74.1
  up route add -net 95.217.74.0 netmask 255.255.255.192 gw 95.217.74.1 dev enp27s0
I cant afford the 270 license fee but I would be willing to pay the 80 community support annual proxmox license or what ever its call if you guys could share what is the key that we are missing? their is a real shortage if IT people in the industry I am attempting to learn this stuff from forums like this and maybe to make a career change. Comments like " you're not yet ready to run a public facing server" albit might be true if at some corporation But I am not. I would hope that ProxMox would want people to gravitate toward there solution rather than and XCP-NG, and it would be great someone could walk the new people through a set up..

ISN'T that what a forum is supposed to be, so people can share and help

I just want to get a simple server up running 2-3 vms on hetzner it shouldnt be this difficult
 

MadMakz

New Member
Jan 12, 2020
6
0
1
@chgo2oc That' why you should never use preconfigured server but instead install from scratch or at least from minimal.
As far as i know Hetzner only sets up Soft-Raid 1 and a LVM

The Proxmox Wiki only describes the installation in a normal, unlimited, standard enviroment.

eth0 is to be replaced with your desired interface that's connected to the network (mostly it's eth0, in newer distros and RedHat it's most likeley not. Read: Predictable Network Interface Names).

However, first you should be aware that there are three types of network setups

Routed
Bridged
NAT

Routed/Bridged will not always work, and sometimes only with special additions like pointopoint, depending on your provider. You have to ask/check that individually with your hoster. It's rather unrelated to Proxmox but a general topic on Virtualisation/Networking itself.

As for Hetzner the formating is a bit off in their Wiki combining Host and Guest config in a single "Code"-block.
Also note that you'll need dedicated MACs for Bridged setup in Hetzners Network (you can get them from Hetzners Controlpanel/Robot).
Also check their Forums. There should be a coupple of threads there about this topic.


So for Routed setup it should look like:

Host:
Code:
auto enp27s0
iface enp27s0 inet static

auto vmbr0
iface vmbr0 inet static
  address 95.217.74.62
  netmask 255.255.255.255
  gateway 95.217.74.1
  pointopoint 95.217.74.1
  bridge_ports enp27s0
  bridge_stp off
  bridge_fd 1
  bridge_hello 2
  bridge_maxage 12
  up ip route add <IP for VM>/32 dev vmbr0
  down ip route del <IP for VM>/32 dev vmbr0
Guest something like
Code:
auto eth0
iface eth0 inet static
    address  <VM IP>
    netmask  <Netmask>
    gateway  <Gateway>
    pointopoint <Gateway>
@GioMBG No need to bitch on PM. Get mature.
P.S.: Asking in a thread marked as "solved" won't bring you alot of people.
 
Last edited:
Feb 11, 2020
6
0
1
51
San Clemente California
Thanks MadMakz,

Could you recommend a host provider that would facilitate the setting up of proxmox an easier process? I think your right in the sense that I am not ready to run a public facing server, hard pill to swallow. I just spent the better part of the day f-ing with fdisk and pvcreate because out of I cant figure out how to get access to 2.7T of locked (for lack of a better word) data on a fresh install of proxmox. Ive tried both using Hetzner proxmox iso and the majority of times I used Debian stretch... it’s just a little above my head unfortunately.. I think I will just load it on and extra home PC, and start building from there...

Let’s not resort to putting each other down.. we all know frustrations mount when can’t figure something out.. MadMakz thanks for trying and GioBMG, you’ll get it, we are just at that learning curve phase where it’s just one brick wall after another, you might think your running in place, just like everything else no pain no gain..
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!