summaryrefslogtreecommitdiff
path: root/scripts/packer-scripts
diff options
context:
space:
mode:
authorYuya Kusakabe <yuya.kusakabe@gmail.com>2016-03-07 00:00:33 +0900
committerYuya Kusakabe <yuya.kusakabe@gmail.com>2016-03-07 00:03:14 +0900
commit7ba48ff801e98f25053b048e834b8b073fe21ad3 (patch)
treef79c21976b2d228ade907706d2aee418480498f0 /scripts/packer-scripts
parentc3a238ff2000ba4c27c791e66a9a4aaba9576a8f (diff)
downloadvyos-build-7ba48ff801e98f25053b048e834b8b073fe21ad3.tar.gz
vyos-build-7ba48ff801e98f25053b048e834b8b073fe21ad3.zip
Add build scripts for VMware OVF (ref T14)
Diffstat (limited to 'scripts/packer-scripts')
-rw-r--r--scripts/packer-scripts/vmware.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/packer-scripts/vmware.sh b/scripts/packer-scripts/vmware.sh
new file mode 100644
index 00000000..60c4db7e
--- /dev/null
+++ b/scripts/packer-scripts/vmware.sh
@@ -0,0 +1,29 @@
+#!/bin/vbash
+source /opt/vyatta/etc/functions/script-template
+
+# Add Debian Jessie repository
+set system package repository jessie url 'http://ftp.nl.debian.org/debian/'
+set system package repository jessie distribution 'jessie'
+set system package repository jessie components 'main contrib non-free'
+commit
+save
+
+# Install open-vm-tools
+sudo apt-get update
+sudo apt-get -y install open-vm-tools
+
+# Delete Debian Jessie repository
+delete system package repository jessie
+commit
+save
+
+# Removing leftover leases and persistent rules
+sudo rm -f /var/lib/dhcp3/*
+
+# Removing apt caches
+sudo rm -rf /var/cache/apt/*
+
+# Removing hw-id
+delete interfaces ethernet eth0 hw-id
+commit
+save