passing network bridge in args line?

sweet-t

New Member
Oct 22, 2012
19
2
1
Can someone help me bridge vmbr1 onto my VM network adapter via the args line?

I need to pass the network adapter manually via the arguments until/unless disabling MSI-X is implemented into proxmox (Bug 1267)

This works for that need:

Code:
args: -netdev tap,id=net1 -device virtio-net-pci,netdev=net0,mac=FF:FF:FF:FF:FF:FF,vectors=0

But I wish to bridge this device to vmbr1 instead of vmbr0.

The closest I have gotten is chaning

Code:
tap,id=net1

to

Code:
bridge,br=vmbr1,id=net1

which results in:

kvm: -netdev bridge,br=vmbr1,id=net1: bridge helper failed

Any help would be appreciated.
Thanks.
 
  • Like
Reactions: kanapkaaa
Ive actually already found the solution after running on a VM with the correct bridge assigned to a virtio network device

Code:
qm showcmd ###

For posterity's sake and until vectors=0 is an option within proxmox gui; this is now a working virtio network on vmbr1 in a macOS High Sierra 10.13 guest:

Code:
-netdev type=tap,id=net1,ifname=tap777i1,script=/var/lib/qemu-server/pve-bridge,downscript=/var/lib/qemu-server/pve-bridgedown,vhost=on -device virtio-net-pci,netdev=net1,mac=FF:FF:FF:FF:FF:FF,vectors=0

Adjust the network mac address and place in VM config args line.
 
  • Like
Reactions: kanapkaaa
This is a very inelegant solution.
In the example above I've added the net device from an existing VM. Both VMs cannot be running at the same time.

Does anyone have any better solutions to offer?