Problem configuring VLAN on proxmox. Error starting guest with tag configured.

jonaz

New Member
Jul 10, 2013
1
0
1
Hi

Im a new user evaluating proxmox for future use.

This is my error message when i try to start my guest:

Code:
Found duplicate PV 0JIo1OWfZN6pz1SB21LQg61nfiXBrcHs: using /dev/sdd not /dev/sdc
Found duplicate PV 0JIo1OWfZN6pz1SB21LQg61nfiXBrcHs: using /dev/sdd not /dev/sdc
ERROR: trying to add VLAN #156 to IF -:bond0:- error: File exists
can't add vlan tag 156 to interface bond0
/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,vhost=on:  Device 'tap' could not be initialized
TASK ERROR: 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 -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  'if=none,id=drive-ide2,media=cdrom,aio=native' -device  'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -device  'ahci,id=ahci0,multifunction=on,bus=pci.0,addr=0x7' -drive  'file=/dev/vol1/vm-100-disk-1,if=none,id=drive-sata0,aio=native,cache=none'  -device  'ide-drive,bus=ahci0.0,drive=drive-sata0,id=sata0,bootindex=100' -netdev   'type=tap,id=net0,ifname=tap100i0,script=/var/lib/qemu-server/pve-bridge,vhost=on'  -device  'virtio-net-pci,mac=4E:7E:3A:E4:25:6D,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300''  failed: exit code 1

I also got this message which is similar a few times:
Code:
Added VLAN with VID == 156 to IF -:bond0:-
Cannot find device "bond0.156"
can't up interface bond0.156
/var/lib/qemu-server/pve-bridge: could not launch network script

My interfaces config looks like this:
Code:
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto bond0
iface bond0 inet manual
        slaves eth0 eth1
        bond_miimon 100
        bond_mode balance-rr

auto vmbr0
iface vmbr0 inet static
        address  10.13.151.20
        netmask  255.255.255.0
        gateway  10.13.151.1
        bridge_ports bond0
        bridge_stp off
        bridge_fd 0


auto vlan200
iface vlan200 inet static
        vlan_raw_device eth0
        address 10.13.200.4
        network 10.13.200.0
        netmask 255.255.255.0
        broadcast 10.13.200.255

auto vlan201
iface vlan201 inet static
        vlan_raw_device eth1
        address 10.13.201.4
        network 10.13.201.0
        netmask 255.255.255.0
        broadcast 10.13.201.255


vlan200 annd vlan201 is only used for iscsi multipath. All vm traffic should use vmbr0 whith uses bond0.

Any suggestions?


When i start the vm i can see that interface vlan156 is added when i run ifconfig -a. So why does it complain about bond0.156 when its interface vlan156 it should be using?

Code:
bond0     Link encap:Ethernet  HWaddr 00:22:19:84:2a:b0  
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:40087 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21343 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:28479111 (27.1 MiB)  TX bytes:6560815 (6.2 MiB)

eth0      Link encap:Ethernet  HWaddr 00:22:19:84:2a:b0  
          UP BROADCAST RUNNING PROMISC SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:15059 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8417 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8527147 (8.1 MiB)  TX bytes:3029364 (2.8 MiB)

eth1      Link encap:Ethernet  HWaddr 00:22:19:84:2a:b0  
          UP BROADCAST RUNNING PROMISC SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:25028 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12926 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:19951964 (19.0 MiB)  TX bytes:3531451 (3.3 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:6320 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6320 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4307352 (4.1 MiB)  TX bytes:4307352 (4.1 MiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          inet6 addr: fe80::1/128 Scope:Link
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:3 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vlan156   Link encap:Ethernet  HWaddr 00:22:19:84:2a:b0  
          BROADCAST MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:920 (920.0 B)  TX bytes:0 (0.0 B)

vlan200   Link encap:Ethernet  HWaddr 00:22:19:84:2a:b0  
          inet addr:10.13.200.4  Bcast:10.13.200.255  Mask:255.255.255.0
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:5645 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5021 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:6354772 (6.0 MiB)  TX bytes:456890 (446.1 KiB)

vlan201   Link encap:Ethernet  HWaddr 00:22:19:84:2a:b0  
          inet addr:10.13.201.4  Bcast:10.13.201.255  Mask:255.255.255.0
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:10334 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9567 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:17284766 (16.4 MiB)  TX bytes:878746 (858.1 KiB)

vmbr0     Link encap:Ethernet  HWaddr 00:22:19:84:2a:b0  
          inet addr:10.13.151.20  Bcast:10.13.151.255  Mask:255.255.255.0
          inet6 addr: fe80::222:19ff:fe84:2ab0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11594 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5790 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3313838 (3.1 MiB)  TX bytes:5017952 (4.7 MiB)
 
Last edited:

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!