1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
mistranslation: 0.880
device: 0.490
other: 0.485
network: 0.462
semantic: 0.377
graphic: 0.360
vnc: 0.298
socket: 0.267
instruction: 0.190
boot: 0.114
assembly: 0.033
KVM: 0.029
QEMU netdev tap type id name is not used on linux host
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.
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)
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.
|