Hyperv (#14)
* Do not commit the .venv file * Fix packer formatting issues * I am, once again, asking to fix the cache path * Fix URI generation for tests * Prevent prompting during Hyper-V tests * Add more waits to hopefully build on GHA * Hyper-V ISO expansion Expand coverage of Hyper-V ISO to all distros except Debian Simplify a few steps in the update/upgrade process for VMs Edit the test script for Windows support * Fix plugin cache path on Mac * Point to the correct mirror URL
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
apt update
|
||||
apt autoremove -y
|
||||
apt upgrade -y
|
||||
|
||||
# Configure sshd to be faster
|
||||
sed -i -E -e 's,^.*(UseDNS).*$,\1 No,' /etc/ssh/sshd_config
|
||||
@@ -11,3 +9,11 @@ echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /etc/ssh/sshd_config
|
||||
|
||||
# Clean up after ourselves
|
||||
apt-get clean
|
||||
|
||||
virt="$(systemd-detect-virt)"
|
||||
if [ "${virt}" == "microsoft" ]; then
|
||||
yum install -y hyperv-daemons
|
||||
systemctl enable hpervfcopyd
|
||||
systemctl enable hypervkvpd
|
||||
systemctl enable hypervvssd
|
||||
fi
|
||||
@@ -41,7 +41,7 @@ d-i apt-setup/non-free boolean true
|
||||
d-i apt-setup/contrib boolean true
|
||||
|
||||
tasksel tasksel/first multiselect
|
||||
d-i pkgsel/include string curl openssh-server sudo python3
|
||||
d-i pkgsel/include string curl openssh-server sudo python3 hyperv-daemons
|
||||
|
||||
d-i grub-installer/bootdev string default
|
||||
|
||||
@@ -55,4 +55,6 @@ d-i preseed/early_command string
|
||||
d-i preseed/late_command string \
|
||||
echo 'Defaults:vagrant !requiretty' > /target/etc/sudoers.d/vagrant; \
|
||||
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /target/etc/sudoers.d/vagrant; \
|
||||
chmod 440 /target/etc/sudoers.d/vagrant
|
||||
chmod 440 /target/etc/sudoers.d/vagrant; \
|
||||
in-target apt-get update; \
|
||||
in-target apt-get upgrade -y
|
||||
Reference in New Issue
Block a user