have you resolve this isse I met the same issue as you
qemu-system-x86_64: -netdev tap,id=idafPmQW,fd=21: TUNGETIFF ioctl()
failed: Inappropriate ioctl for device
Thanks
Lei
On Fri, Apr 6, 2012 at 4:36 PM, sumit sengupta <sumit_sngpt at
yahoo.co.in> wrote:> Hi,
>
> When I'm trying to run qemu-kvm command on RHEL6(linux kernel 2.6.32)
then I
> get following errors which I think related to tap devices in my setup. Any
> idea why is that?
>
>
> bash$ LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=none
> /usr/libexec/qemu-kvm -S -M rhel6.2.0 -enable-kvm -m 512 -smp
> 1,sockets=1,cores=1,threads=1 -name instance-00000027 -uuid
> a93aeed9-15f7-4ded-b6b3-34c8d2c101a8 -nodefconfig -nodefaults -chardev
>
socket,id=charmonitor,path=/var/lib/libvirt/qemu/instance-00000027.monitor,server,nowait
> -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown
> -kernel /home/sumitsen/openstack/nova/instances/instance-00000027/kernel
> -initrd /home/sumitsen/openstack/nova/instances/instance-00000027/ramdisk
> -append root=/dev/vda console=ttyS0 -drive
>
file=/home/sumitsen/openstack/nova/instances/instance-00000027/disk,if=none,id=drive-virtio-disk0,format=qcow2,cache=none
> -device
> virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0
> -netdev tap,fd=26,id=hostnet0 -device
> rtl8139,netdev=hostnet0,id=net0,mac=fa:16:3e:15:84:3e,bus=pci.0,addr=0x3
> -chardev
>
file,id=charserial0,path=/home/sumitsen/openstack/nova/instances/instance-00000027/console.log
> -device isa-serial,chardev=charserial0,id=serial0 -chardev
> pty,id=charserial1 -device isa-serial,chardev=charserial1,id=serial1 -usb
> -device usb-tablet,id=input0 -vnc 127.0.0.1:0 -k en-us -vga cirrus -device
> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5
> char device redirected to /dev/pts/1
> qemu-kvm: -netdev tap,fd=26,id=hostnet0: TUNGETIFF ioctl() failed: Bad file
> descriptor
> TUNSETOFFLOAD ioctl() failed: Bad file descriptor
> qemu-kvm: -append root=/dev/vda: could not open disk image console=ttyS0:
No
> such file or directory
>
> [sumitsen at sorrygate-dr ~]$ rpm -qa qemu-kvm
> qemu-kvm-0.12.1.2-2.209.el6.x86_64
>
> Let me know if you need any other info.
>
> Thanks,
> Sumit
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users