From db6d7144c7659ee919f72703e84d65c64decbb48 Mon Sep 17 00:00:00 2001 From: Christian Rebischke Date: Sun, 7 May 2017 22:08:53 +0200 Subject: added qemu provisioning scripts --- provision/qemu.sh | 7 +++++++ vagrant.json | 13 ++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 provision/qemu.sh diff --git a/provision/qemu.sh b/provision/qemu.sh new file mode 100644 index 0000000..aa36e03 --- /dev/null +++ b/provision/qemu.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +set -e +set -x + +sudo pacman -S --noconfirm linux-headers +sudo pacman -S --noconfirm qemu-guest-agent diff --git a/vagrant.json b/vagrant.json index 406b07a..b5193e6 100644 --- a/vagrant.json +++ b/vagrant.json @@ -77,7 +77,18 @@ "provision/virtualbox.sh", "provision/cleanup.sh" ], - "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'" + "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'", + "only": ["virtualbox-iso"] + }, + { + "type": "shell", + "scripts": [ + "provision/postinstall.sh", + "provision/qemu.sh", + "provision/cleanup.sh" + ], + "execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'", + "only": ["qemu"] } ], "post-processors": [ -- cgit v1.2.3-70-g09d2