You are not logged in.

#1 2015-04-03 22:01:12

iaw4
Member
Registered: 2014-11-28
Posts: 46

qemu bridged networking -- What is the id parameter?

dear arch experts---I am trying to run arch as a guest, that then serves a website to the internet.  I think I got pretty far.   I am following https://wiki.archlinux.org/index.php/QE … dge-helper .

on the host:

    cat > /etc/qemu/bridge.conf
    allow br0
    allow bridge0
    EOF
    chmod u+s /usr/lib/qemu/qemu-bridge-helper

I add the bridge
    brctl addbr bridge0 eth0
and bring up the link
    ip link set up dev bridge 0

now I need to start up.
    qemu-system-x86_64 -enable-kvm -m 2048 $* -hda arch.vmdk -netdev bridge,br=bridge0
almost.

>> qemu-system-x86_64: -netdev bridge,br=bridge0: Parameter 'id' is missing

I tried to add id=eth0, but this only gives me a warning that "netdev eth0 has no peer".  it starts up, but then I have no networking in the guest.

for a networking qemu guru, this is probably a 10 second question, but I am stumped.  help appreciated.

/iaw

Offline

#2 2015-04-03 23:05:57

iaw4
Member
Registered: 2014-11-28
Posts: 46

Re: qemu bridged networking -- What is the id parameter?

hmmm...on a ubuntu host, something like

   -net nic,model=virtio,netdev=hn0 -netdev bridge,br=bridge0,id=hn0

seems to work.  not sure why, but it does ;-).

Offline

Board footer

Powered by FluxBB