Begin adding VMWare

This commit is contained in:
Greg Hellings
2023-08-15 11:23:29 -05:00
committed by greg-compass
parent 15044c8fb9
commit a56b40249b
17 changed files with 35 additions and 27 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
set -ex
port="${1}" # HTTP port that packer is running on
host="${2}"
loadkeys en # Probably not necessary in a script, but here we are
@@ -40,7 +41,7 @@ pacstrap -K /mnt base linux nano sudo networkmanager openssh grub python3
genfstab -L /mnt >> /mnt/etc/fstab
# Run stuff in the chroot
curl -o /mnt/in-chroot.sh http://10.0.2.2:"${port}"/in-chroot.sh
curl -o /mnt/in-chroot.sh "http://${host}:${port}/in-chroot.sh"
arch-chroot /mnt /usr/bin/bash /in-chroot.sh "${disk}"
rm /mnt/in-chroot.sh
+1 -1
View File
@@ -9,7 +9,7 @@ boot_command = [
"<wait60>", # Wait for system to come up?
"curl -o /tmp/install.sh http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.sh<enter>",
"<wait5>",
"/usr/bin/bash /tmp/install.sh {{ .HTTPPort }}<enter>"
"/usr/bin/bash /tmp/install.sh {{ .HTTPPort }} {{ .HTTPIP }}<enter>"
]
http_directory = "distros/archlinux/rolling/http/"
boot_wait = "10s"
+2
View File
@@ -3,3 +3,5 @@ rolling:
provider: qemu
- arch: x86_64
provider: virtualbox-iso
- arch: x86_64
provider: vmware-iso