From fdf0e101a594340f6fdf1c827bb0f0ab847fde1d Mon Sep 17 00:00:00 2001 From: Rafael Soares Date: Wed, 5 Jul 2017 16:29:26 -0400 Subject: Add vmware support --- provision/vmware.sh | 7 +++++++ vagrant.json | 30 ++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 provision/vmware.sh 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'", "bash install.sh < install-chroot.sh && systemctl reboot" ] + }, { + "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": [ + "", + "curl -O 'http://{{.HTTPIP}}:{{.HTTPPort}}/install{,-chroot}.sh'", + "bash install.sh < install-chroot.sh && systemctl reboot" + ] } ], @@ -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": [ -- cgit v1.2.3-70-g09d2 From 2baf7797fbd3fc21fc88509b8bfc617fb4e7cbc6 Mon Sep 17 00:00:00 2001 From: Rafael Soares Date: Wed, 5 Jul 2017 16:36:58 -0400 Subject: Update README.md (Closes #3) --- README.md | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-70-g09d2