aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'images/freebsd/genimg')
-rwxr-xr-ximages/freebsd/genimg6+4 −2
1 files changed, 4 insertions, 2 deletions
diff --git a/images/freebsd/genimg b/images/freebsd/genimg
index e360436..4d40076 100755
--- a/images/freebsd/genimg
+++ b/images/freebsd/genimg
@@ -141,7 +141,7 @@ esac
# resolver; the guest resolv.conf written below is purely for runtime.
pkg -C /dev/null -R "$reposdir" -r "$rootfs" update
pkg -C /dev/null -R "$reposdir" -r "$rootfs" install -y \
- pkg git-lite mercurial sudo curl
+ pkg git-lite mercurial sudo curl qemu-guest-agent
pkg -C /dev/null -R "$reposdir" -r "$rootfs" clean -ay
if [ "$with_ports" = true ]; then
@@ -157,6 +157,7 @@ cat >>"$rootfs"/etc/rc.conf <<EOF
ntpd_enable=YES
sshd_enable=YES
growfs_enable=YES
+qemu_guest_agent_enable=YES
hostname="build"
ifconfig_DEFAULT="inet 10.0.2.15 netmask 255.255.255.0"
defaultrouter="10.0.2.2"
@@ -229,7 +230,8 @@ cat >"$out/config.json" <<CONFIG
}
],
"access": [
- { "type": "ssh", "port": 22, "user": "build", "auth": "empty-password" }
+ { "type": "ssh", "port": 22, "user": "build", "auth": "empty-password" },
+ { "type": "qga" }
],
"network": { "mode": "static", "address": "10.0.2.15/24", "gateway": "10.0.2.2" }
},