install qemu-guest-agent

This commit is contained in:
2022-01-17 10:32:32 +01:00
parent 53672b308b
commit 7f216c488a

View File

@@ -11,9 +11,9 @@ autoinstall:
ens224: ens224:
dhcp4: yes dhcp4: yes
dhcp-identifier: mac dhcp-identifier: mac
# To generate hash password # To generate hash password
# mkpasswd --method=SHA-512 --rounds=4096 # mkpasswd --method=SHA-512 --rounds=4096
identity: identity:
hostname: VM-UBU-2004 hostname: VM-UBU-2004
username: firstuser username: firstuser
@@ -44,14 +44,13 @@ autoinstall:
disable_root: false disable_root: false
late-commands: late-commands:
- apt-get update;apt-get -y install qemu-guest-agent
- echo 'firstuser ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/firstuser - echo 'firstuser ALL=(ALL) NOPASSWD:ALL' > /target/etc/sudoers.d/firstuser
- sed -i 's/^#*\(send dhcp-client-identifier\).*$/\1 = hardware;/' /target/etc/dhcp/dhclient.conf - sed -i 's/^#*\(send dhcp-client-identifier\).*$/\1 = hardware;/' /target/etc/dhcp/dhclient.conf
# - 'sed -i "s/dhcp4: true/&\n dhcp-identifier: mac/" /target/etc/netplan/00-installer-config.yaml' # - 'sed -i "s/dhcp4: true/&\n dhcp-identifier: mac/" /target/etc/netplan/00-installer-config.yaml'
- rm -fv /var/lib/dhcp/* - rm -fv /var/lib/dhcp/*
# - systemctl restart networking # - systemctl restart networking
# - curtin in-target --target=/target -- apt update - curtin in-target --target=/target -- apt update
# - curtin in-target --target=/target -- apt upgrade -y - curtin in-target --target=/target -- apt install -y qemu-guest-agent
# - curtin in-target --target=/target -- apt dist-upgrade -y # - curtin in-target --target=/target -- apt dist-upgrade -y
# # - sed -ie 's/GRUB_TIMEOUT=.*/GRUB_TIMEOUT=30/' /target/etc/default/grub # # - sed -ie 's/GRUB_TIMEOUT=.*/GRUB_TIMEOUT=30/' /target/etc/default/grub