summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-07-29 20:04:06 +0200
committerxengineering <me@xengineering.eu>2024-07-29 20:05:41 +0200
commit9ca8bd760a33f3758a044299357f0732617b936b (patch)
tree46c97b80defe076fd608fd284a616e5fe0537959
parent5bea4c50e7afd39ae64bb2b80c49e4a81650be1b (diff)
downloadcraft-9ca8bd760a33f3758a044299357f0732617b936b.tar
craft-9ca8bd760a33f3758a044299357f0732617b936b.tar.zst
craft-9ca8bd760a33f3758a044299357f0732617b936b.zip
Enable internet access for VM
It is planned that the sources are first directly downloaded into the VM. Later they will be cloned on the host, transmitted via rsync to the VM and the artifacts downloaded from the VM to make the build process completely offline for reproducibility.
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index df9857c..ef428f4 100644
--- a/main.go
+++ b/main.go
@@ -78,6 +78,8 @@ func qemu() *exec.Cmd {
"-net",
"nic,model=virtio",
"-net",
+ "nic,model=virtio",
+ "-net",
fmt.Sprintf(
"user,hostfwd=tcp:127.0.0.1:%s-:22",
port,