Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Soares <rafaelsoaresbr@gmail.com>2017-07-05 16:29:26 -0400
committerRafael Soares <rafaelsoaresbr@gmail.com>2017-07-05 16:29:26 -0400
commitfdf0e101a594340f6fdf1c827bb0f0ab847fde1d (patch)
tree4d0f2224b91db5060520e7cfa60240a818928dff
parent497b87a624db752ceb2556af3f37b653cf7d73b1 (diff)
Add vmware support
-rw-r--r--provision/vmware.sh7
-rw-r--r--vagrant.json30
2 files changed, 37 insertions, 0 deletions
diff --git a/provision/vmware.sh b/provision/vmware.sh
new file mode 100644
index 0000000..2e59c32
--- /dev/null
+++ b/provision/vmware.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -e
+set -x
+
+sudo pacman -S --noconfirm open-vm-tools
+sudo systemctl enable vmtoolsd
diff --git a/vagrant.json b/vagrant.json
index e53de04..cb65bfe 100644
--- a/vagrant.json
+++ b/vagrant.json
@@ -73,6 +73,26 @@
"curl -O 'http://{{.HTTPIP}}:{{.HTTPPort}}/install{,-chroot}.sh'<enter><wait>",
"bash install.sh < install-chroot.sh && systemctl reboot<enter>"
]
+ }, {
+ "type": "vmware-iso",
+ "boot_wait": "10s",
+ "http_directory": "http",
+ "disk_size": "{{user `disk_size`}}",
+ "iso_checksum": "{{user `iso_checksum`}}",
+ "iso_checksum_type": "{{user `iso_checksum_type`}}",
+ "iso_url": "{{user `iso_url`}}",
+ "ssh_username": "vagrant",
+ "ssh_password": "vagrant",
+ "ssh_port": 22,
+ "ssh_wait_timeout": "10000s",
+ "shutdown_command": "sudo systemctl poweroff",
+ "headless": "{{user `headless`}}",
+ "vmx_data": {"memsize": "{{user `memory`}}"},
+ "boot_command": [
+ "<enter><wait10><wait10><wait10><wait10>",
+ "curl -O 'http://{{.HTTPIP}}:{{.HTTPPort}}/install{,-chroot}.sh'<enter><wait>",
+ "bash install.sh < install-chroot.sh && systemctl reboot<enter>"
+ ]
}
],
@@ -96,6 +116,16 @@
],
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
"only": ["qemu"]
+ },
+ {
+ "type": "shell",
+ "scripts": [
+ "provision/postinstall.sh",
+ "provision/vmware.sh",
+ "provision/cleanup.sh"
+ ],
+ "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
+ "only": ["vmware-iso"]
}
],
"post-processors": [