Add OVA script (#4)

This commit is contained in:
Pascal Vizeli 2018-04-24 00:14:43 +02:00 committed by GitHub
parent 77293f58ca
commit 5a6b8c5bbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

9
scripts/ovf-create.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
VboxManage createvm --name Hass.io --ostype Linux_64 --register
VBoxManage modifyvm Hass.io --cpus 2 --memory 1048 --firmware efi
VBoxManage modifyvm Hass.io --nic1 bridged
VBoxManage storageattach Hass.io --storagectl "SATA Controller" --device 0 --port 0 --type vmdk --medium $1
VBoxManage export Hass.io --ovf20 --vendor "Home-Assistant" --vendorurl "http://hass.io" --output $2