Skip to contentSkip to conversation

QEMU netdev tap type id name is not used on linux host

Qemu-devel JP Senior 2 participants 3 messages Jun 4, 2010 – Jan 10, 2017

lore
Share & tools
lore

JP Senior

author
#0 lore raw

Public bug reported:

Tested with 0.12.3, 0.12.4, and latest git as of 4 jun 2010. The new -netdev type seems to ignore manual specifications of tap ifname.

    qemu-system-x86_64 -hda disk.img -netdev tap,id=ids_e0 -device e1000,netdev=ids_e0

**creates tap0 instead of ids_e0. tap0 passes traffic, ids_e0 doesn't exist
(I tried -netdev type=tap as well for brevity)

QEMU creates a tap0 (or appropriate) interface and does not name this "ids_e0" as would be expected. I also tried 'pre' creating the tap interface.

Previous alterantive was

    qemu-system-x86_64 -hda disk.img -net nic,model=e1000,vlan=99 -net tap,ifname=ids_e0,vlan=99 

**creates ids_e0 as expected, and passes traffic as expected.

** Affects: qemu
Importance: Undecided
Status: New

Signature · 20 lines
QEMU netdev tap type id name is not used on linux host
https://bugs.launchpad.net/bugs/589827
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
Tested with 0.12.3, 0.12.4, and latest git as of 4 jun 2010.
The new -netdev type seems to ignore manual specifications of tap ifname.

    qemu-system-x86_64 -hda disk.img -netdev tap,id=ids_e0 -device e1000,netdev=ids_e0
 **creates tap0 instead of ids_e0.  tap0 passes traffic, ids_e0 doesn't exist
(I tried -netdev type=tap as well for brevity)

QEMU creates a tap0 (or appropriate) interface and does not name this "ids_e0" as would be expected.  I also tried 'pre' creating the tap interface.

Previous alterantive was
    qemu-system-x86_64 -hda disk.img -net nic,model=e1000,vlan=99 -net tap,ifname=ids_e0,vlan=99 
  **creates ids_e0 as expected, and passes traffic as expected.
author
#1 lore raw

Thanks to IRC, the correct syntax is: -netdev
tap,id=asa1_eth0_tap,ifname=asa1_eth0_tap -device
e1000,netdev=asa1_eth0_tap,mac=00:aa:cd:dd:01:01

(noted, fd=h option doesn't work on -netdev)

Signature · 20 lines
QEMU netdev tap type id name is not used on linux host
https://bugs.launchpad.net/bugs/589827
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.

Status in QEMU: New

Bug description:
Tested with 0.12.3, 0.12.4, and latest git as of 4 jun 2010.
The new -netdev type seems to ignore manual specifications of tap ifname.

    qemu-system-x86_64 -hda disk.img -netdev tap,id=ids_e0 -device e1000,netdev=ids_e0
 **creates tap0 instead of ids_e0.  tap0 passes traffic, ids_e0 doesn't exist
(I tried -netdev type=tap as well for brevity)

QEMU creates a tap0 (or appropriate) interface and does not name this "ids_e0" as would be expected.  I also tried 'pre' creating the tap interface.

Previous alterantive was
    qemu-system-x86_64 -hda disk.img -net nic,model=e1000,vlan=99 -net tap,ifname=ids_e0,vlan=99 
  **creates ids_e0 as expected, and passes traffic as expected.
#2 lore raw
In reply to JP Senior

The "id=..." is only the QEMU-internal name of the netdev, not the name of the tap device. So this is not a bug --> closing this ticket.

** Changed in: qemu
Status: New => Invalid

Signature · 28 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/589827

Title:
  QEMU netdev tap type id name is not used on linux host

Status in QEMU:
  Invalid

Bug description:
  Tested with 0.12.3, 0.12.4, and latest git as of 4 jun 2010.
  The new -netdev type seems to ignore manual specifications of tap ifname.

      qemu-system-x86_64 -hda disk.img -netdev tap,id=ids_e0 -device e1000,netdev=ids_e0
   **creates tap0 instead of ids_e0.  tap0 passes traffic, ids_e0 doesn't exist
  (I tried -netdev type=tap as well for brevity)

  QEMU creates a tap0 (or appropriate) interface and does not name this
  "ids_e0" as would be expected.  I also tried 'pre' creating the tap
  interface.

  Previous alterantive was
      qemu-system-x86_64 -hda disk.img -net nic,model=e1000,vlan=99 -net tap,ifname=ids_e0,vlan=99 
    **creates ids_e0 as expected, and passes traffic as expected.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/589827/+subscriptions