Skip to content

Commit 7e8f918

Browse files
committed
Add temporary DNS fix for VBox 7.2
1 parent de42bb9 commit 7e8f918

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packer/http/oem-preseed.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ ubiquity ubiquity/success_command string svcfile="/target/etc/systemd/system/ssh
6262
echo "After=network-online.target" >> "$svcfile"; \
6363
echo "Requires=network-online.target" >> "$svcfile"; \
6464
echo "[Service]" >> "$svcfile"; \
65+
echo "ExecStartPre=/bin/bash -c 'echo nameserver 8.8.8.8 > /etc/resolv.conf'" >> "$svcfile"; \
6566
echo "ExecStartPre=/usr/bin/apt-get update" >> "$svcfile"; \
6667
echo "ExecStart=/usr/bin/apt-get -y install openssh-server" >> "$svcfile"; \
6768
echo "ExecStartPost=/bin/systemctl disable ssh-install.service" >> "$svcfile"; \

0 commit comments

Comments
 (0)