Skip to contentSkip to conversation

Defining a bridge

Qemu-arm Jerry Stuckle 1 participant 2 messages Oct 21, 2016 – Oct 25, 2016

lore
Share & tools
lore
#0 lore raw

Hi, all,

To start out, I am a programmer, not a Linux administrator. So please be gentle with me - I'm in over my head here. :)

To start, my setup is: Windows 7 as the base OS with two nics, wired and wireless (only one active at a time). Under this I have Oracle Virtual Machine running Ubuntu 4.4.0-38-generic (latest stable release). I have set up a bridge in Ubuntu's Network Manager as described on
http://ask.xmodulo.com/configure-linux-bridge-network-manager-ubuntu.html.
The bridge is defined as "bridge0" and works correctly in Ubuntu.

I start QEMU under Ubuntu 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 \
	-netdev bridge,br=bridge0,id=net0,helper=/usr/lib/qemu/qemu-bridge-helper

Guest system is Debian 3.2.0-4-vexpress, again the latest stable version. I get a SLIRP connection just fine when I don't specify the -device and -netdev parameters. The "lshw" shows the driver to be smsc911x, but I don't know how to relate that to which NIC is being emulated (it at least works).

When I do specify the -device and -netdev parameters, I get no network. The log shows nothing unusual other than no network device is found.

Are there any known problems with a setup like this? If not, does anyone have an idea as to what I am doing wrong? I appreciate any and all suggestions.

Jerry

#1 lore raw

Anyone have an idea on this?

Quoted 40 lines · Jerry Stuckle

Hi, all,

To start out, I am a programmer, not a Linux administrator. So please be gentle with me - I'm in over my head here. :)

To start, my setup is: Windows 7 as the base OS with two nics, wired and wireless (only one active at a time). Under this I have Oracle Virtual Machine running Ubuntu 4.4.0-38-generic (latest stable release). I have set up a bridge in Ubuntu's Network Manager as described on
http://ask.xmodulo.com/configure-linux-bridge-network-manager-ubuntu.html.
The bridge is defined as "bridge0" and works correctly in Ubuntu.

I start QEMU under Ubuntu 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 \
	-netdev bridge,br=bridge0,id=net0,helper=/usr/lib/qemu/qemu-bridge-helper

Guest system is Debian 3.2.0-4-vexpress, again the latest stable version. I get a SLIRP connection just fine when I don't specify the -device and -netdev parameters. The "lshw" shows the driver to be smsc911x, but I don't know how to relate that to which NIC is being emulated (it at least works).

When I do specify the -device and -netdev parameters, I get no network. The log shows nothing unusual other than no network device is found.

Are there any known problems with a setup like this? If not, does anyone have an idea as to what I am doing wrong? I appreciate any and all suggestions.

Jerry