aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'images/ubuntu/genimg')
-rwxr-xr-ximages/ubuntu/genimg7+5 −2
1 files changed, 5 insertions, 2 deletions
diff --git a/images/ubuntu/genimg b/images/ubuntu/genimg
index 114438c..28d6e08 100755
--- a/images/ubuntu/genimg
+++ b/images/ubuntu/genimg
@@ -142,7 +142,8 @@ run_root apt-get -y install locales
run_root apt-get -y install linux-base
run_root apt-get -y install linux-image-generic
run_root apt-get -y install \
- build-essential git mercurial ssh sudo dirmngr curl ca-certificates
+ build-essential git mercurial ssh sudo dirmngr curl ca-certificates \
+ qemu-guest-agent
if [ "$arch" = "amd64" ]; then
extlinux -i /mnt/boot
@@ -159,6 +160,7 @@ echo '%sudo ALL=(ALL) NOPASSWD: ALL' >>/mnt/etc/sudoers
echo "PermitEmptyPasswords yes" >>/mnt/etc/ssh/sshd_config
echo ssh >>/mnt/etc/securetty
run_root systemctl enable ssh
+run_root systemctl enable qemu-guest-agent
# Prevent docker from mucking up networking
mkdir -p /mnt/etc/docker
@@ -272,7 +274,8 @@ cat >"$out/config.json" <<EOF
$protocols
],
"access": [
- { "type": "ssh", "port": 22, "user": "build", "auth": "empty-password" }
+ { "type": "ssh", "port": 22, "user": "build", "auth": "empty-password" },
+ { "type": "qga" }
],
"network": {
"mode": "$net_mode",