This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:17.04 | |
ENV REDOX_TOOLCHAIN_APT http://static.redox-os.org/toolchain/apt/ | |
ENV SRC_PATH /src | |
ENV CARGO_HOME /cargo | |
ENV RUSTUP_HOME /rustup | |
ENV PATH $CARGO_HOME/bin:$PATH | |
RUN apt-get update \ | |
&& apt-get install -y git gosu gcc fuse nasm qemu-utils pkg-config \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mk/qemu.mk b/mk/qemu.mk | |
index a76d9f9..4ab960b 100644 | |
--- a/mk/qemu.mk | |
+++ b/mk/qemu.mk | |
@@ -8,6 +8,8 @@ else | |
endif | |
ifeq ($(net),no) | |
QEMUFLAGS+=-net none | |
+else ifeq ($(net), bridge) | |
+ QEMUFLAGS+=-net nic,model=e1000 -net bridge,br=br0 -net dump,file=build/network.pcap |