Skip to contentSkip to conversation

Missing vhost=on support on -netdev bridge.

Qemu-devel Piotr Karbowski 4 participants 6 messages Dec 22, 2013 – Jan 9, 2014

lore
Share & tools
lore
#0 lore raw

Hi,

Looks like netdev bridge have no support for vhost=on switch. Would be ince if that could be added.

-- Piotr.

#1 lore raw
Quoted 2 lines · Piotr Karbowski

Looks like netdev bridge have no support for vhost=on switch. Would be ince if that could be added.

Try -netdev tap,helper=/path/to/qemu-bridge-helper,vhost=on,...

Stefan

#2 lore raw

Hi

Quoted 5 lines · Stefan Hajnoczi
Quoted 2 lines · Piotr Karbowski

Looks like netdev bridge have no support for vhost=on switch. Would be ince if that could be added.

Try -netdev tap,helper=/path/to/qemu-bridge-helper,vhost=on,...

Sadly, -netdev tap does not support br= so I can't specify the bridge for helper.

And I can't pass the '--use-br=' argument for helper= tap's option so no workaround here.

-- Piotr.

#3 lore raw
Quoted 9 lines · Piotr Karbowski

Hi

Quoted 5 lines · Stefan Hajnoczi
Quoted 2 lines · Piotr Karbowski

Looks like netdev bridge have no support for vhost=on switch. Would be ince if that could be added.

Try -netdev tap,helper=/path/to/qemu-bridge-helper,vhost=on,...

Quoted 10 lines

Sadly, -netdev tap does not support br= so I can't specify the bridge for helper.

And I can't pass the '--use-br=' argument for helper= tap's option so no workaround here.

-- Piotr.

You should be able to pass a command line like this:

  -net tap,helper="/usr/local/libexec/qemu-bridge-helper --br=br0"
Signature · 2 lines
Regards,
Corey Bryant
#4 lore raw
Quoted 4 lines · Corey Bryant

You should be able to pass a command line like this:

   -net tap,helper="/usr/local/libexec/qemu-bridge-helper --br=br0"

Qemu treat it as one, single command as a whole. :<

sh: /usr/libexec/qemu-bridge-helper --br=lebridge0: not found
failed to launch bridge helper
qemu-system-x86_64: -netdev tap,id=if0,helper="/usr/libexec/qemu-bridge-helper --br=lebridge0": Device 'tap' could not be initialized

-- Piotr.

#5 lore raw
Quoted 6 lines · Piotr Karbowski
Quoted 4 lines · Corey Bryant

You should be able to pass a command line like this:

   -net tap,helper="/usr/local/libexec/qemu-bridge-helper --br=br0"
Quoted 7 lines

Qemu treat it as one, single command as a whole. :<

sh: /usr/libexec/qemu-bridge-helper --br=lebridge0: not found failed to launch bridge helper
qemu-system-x86_64: -netdev tap,id=if0,helper="/usr/libexec/qemu-bridge-helper --br=lebridge0":
Device 'tap' could not be initialized

Nah, it does work. I just failed a bit while doing exec() in perl so I passed double quotes to qemu instead of just telling /bin/sh to treat it as single argument.

Thank you guys.

-- Piotr.