summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Rebischke <Chris.Rebischke@posteo.de>2017-07-15 20:25:29 +0200
committerGitHub <noreply@github.com>2017-07-15 20:25:29 +0200
commit9ad45230e3148fc0c5a99d1b95df5cf2cb3b9ee3 (patch)
tree8156f7e7d951b3d2ea63b5623848beeb4568cbb9
parent04910c2b2d8763ce74b164806f7b49ab82da7177 (diff)
parent2baf7797fbd3fc21fc88509b8bfc617fb4e7cbc6 (diff)
downloadarch-boxes32-9ad45230e3148fc0c5a99d1b95df5cf2cb3b9ee3.tar.xz
Merge pull request #12 from rafaelsoaresbr/vmware-support
Vmware support
-rw-r--r--README.md2
-rw-r--r--provision/vmware.sh7
-rw-r--r--vagrant.json30
3 files changed, 39 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8fba1c2..1847fa4 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,7 @@ You'll need the following dependencies:
* vagrant (for vagrant images)
* qemu (for libvirt provider support)
* virtualbox (for virtualbox support)
+* VMware Workstation Pro (for vmware support)
## How to start the build process
@@ -30,6 +31,7 @@ On any other System:
* virtualbox-iso
* qemu/libvirt
+* vmware-iso
## post-processors
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 12b36d3..d8429b9 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": [