Allow specifying a bridge for qemu to use
Allow `make qemu` to take an additional parameter `bridge` that specifies the bridge interface to use for the netdev. This allows `make qemu brige=br0` which would create a VM connected to br0.
This commit is contained in:
parent
9ffd481edf
commit
48089fbb1f
|
@ -11,8 +11,12 @@ ifneq ($(audio),no)
|
|||
endif
|
||||
ifeq ($(net),no)
|
||||
QEMUFLAGS+=-net none
|
||||
else
|
||||
ifneq ($(bridge),)
|
||||
QEMUFLAGS+=-netdev bridge,br=$(bridge),id=net0 -device e1000,netdev=net0,id=nic0
|
||||
else
|
||||
QEMUFLAGS+=-net nic,model=e1000 -net user -net dump,file=build/network.pcap
|
||||
endif
|
||||
ifeq ($(net),redir)
|
||||
QEMUFLAGS+=-redir tcp:8023::8023 -redir tcp:8080::8080
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue