I didn't even notice before that you're emulating ARM :) It should indeed be "-device virtio-net-device,netdev=net0 \" then - it is placed on virtio-bus instead of PCI. Can you run "lsmod | grep virtio" in Debian and also post your Debian's kernel version?

Just to be sure that you're all good with bridging stuff - can you run "ip l l" in Ubuntu (when your Debian VM is running) and see if there are both bridge0 and tap0 interfaces present? If they are, then the only problem is Debian not seeing virtio-bus and/or virtio NIC.

I never emulated ARM, so I have only guesses as to where to poke around; but you might get an answer straight away on Qemu ARM mailing list - http://wiki.qemu.org/MailingLists.

/--Regards, Aleksei/


*From:* Jerry Stuckle
*Sent:* Monday, October 17, 2016 5:36PM
*To:* Aleksei
*Subject:* Re: [Qemu-discuss] Defining a bridge

On 10/17/2016 2:07 AM, Aleksei wrote:


-device virtio-net-device,netdev=net0 \
This should be -device virtio-net,netdev=net0 \

/--Regards, Aleksei/

Hi, Aleksei,

Thanks for the response.  That was one of the many things I had tried
before (really too many failures to list here :) ), but that fails with

qemu-system-arm: -device virtio-net,netdev=net0: No 'PCI' bus found for
device 'virtio-net-pci'

Which is correct because ARM devices do not have a PCI bus.



*From:* Jerry Stuckle
*Sent:* Monday, October 17, 2016 5:20AM
*To:* Qemu-discuss
*Subject:* [Qemu-discuss] Defining a bridge

OK, I'm back on this now, and need to define a bridge for qemu.

Once again, this is Ubuntu running in VirtualBox under Windows.  Ubuntu
is using NetworkManager, and I have defined the bridge there per

This comes up as bridge0, and seems to be working just fine.  I then try
to start Debian-arm under qemu with:

qemu-system-arm -m 1024M \
        -sd /export/armhf.qcow2 \
        -M vexpress-a9 \
        -cpu cortex-a9 \
        -kernel /export/boot/vmlinuz \
        -initrd /export/boot/initrd.img \
        -append "root=/dev/mmcblk0p2" \
        -device virtio-net-device,netdev=net0 \

/etc/qemu/bridge.conf has

allow bridge0

Qemu starts just fine, no network-related errors, but no network
interface (eth0, etc.) in Debian.  Removing these lines and using slirp
and Debian gets an interface just fine.

Any suggestions as to where to look?  Again, I'm a programmer, not a
Linux admin, so I'm a bit lost there.


Reply via email to