Dear autotest team,
After running some very simple install and uptime tests I kept getting the
following information which later breaks my VM networking:
13:29:00 INFO | [qemu output] qemu-kvm: -netdev tap,id=idKvL0U5,fd=22:
TUNGETIFF ioctl() failed: Inappropriate ioctl for device
13:29:00 INFO | [qemu output] TUNSETOFFLOAD ioctl() failed: Bad address
The qemu command that is generated is the following:
13:29:00 INFO | Running qemu command:
/usr/bin/qemu-kvm -S -name 'vm_sgw' -nodefaults -chardev
socket,id=hmp_id_hmp1,path=/tmp/monitor-hmp1-20120719-131734-
FFxNxbwL,server,nowait -mon chardev=hmp_id_hmp1,mode=readline -chardev
socket,id=serial_id_20120719-131734-FFxNxbwL,path=/tmp/serial-20120719-131734-
FFxNxbwL,server,nowait -device isa-serial,chardev=serial_id_20120719-131734-
FFxNxbwL -chardev socket,id=seabioslog_id_20120719-131734-
FFxNxbwL,path=/tmp/seabios-20120719-131734-FFxNxbwL,server,nowait -device isa-
debugcon,chardev=seabioslog_id_20120719-131734-FFxNxbwL,iobase=0x402 -drive
file='/mnt/local/images/SecurityGateway-5_4_6-32-
autotest.raw',if=none,cache=none,id=virtio0 -device virtio-blk-
pci,drive=virtio0 -device virtio-net-
pci,netdev=idKvL0U5,mac='02:00:00:00:00:41',id='idXpfa1K' -netdev
tap,id=idKvL0U5,fd=22 -m 1024 -smp 2,cores=2,threads=1,sockets=1 -cpu 'Penryn'
-vnc :0 -vga std -rtc base=utc,clock=host,driftfix=none -boot
order=cdn,once=dcn,menu=off -enable-kvm
I investigated the error and it is fixed if I do the following code
intervention:
--- a/client/virt/kvm_vm.py
+++ b/client/virt/kvm_vm.py
@@ -1406,7 +1406,7 @@ class VM(virt_vm.BaseVM):
% (nic.nic_name, mac_source.name))
nic.mac = mac_source.get_mac_address(nic.nic_name)
if nic.nettype == 'bridge' or nic.nettype == 'network':
- if not nic.get('tapfd'):
+ if True: #not nic.get('tapfd'):
nic.tapfd = str(virt_utils.open_tap("/dev/net/tun",
nic.ifname,
vnet_hdr=False))
I have the newest autotest version which contains a patch solving similar nic
problems. Perhaps something is missed by the patch.
I am glad to hear if there are any ideas about this issue.
Kind regards,
Plamen
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel