pandora/vm/build.sh

31 lines
623 B
Bash
Raw Normal View History

#!/bin/sh
2013-07-03 14:25:57 +00:00
size=1048576 #in MB
arch=amd64 #i368 or amd64
password=pandora
hypervisor=vbox #vbox or kvm
extra=""
#make available as pandora.local
extra="--addpkg avahi-daemon"
#to create and include in libvirt:
#hypervisor=kvm
#extra="--libvirt qemu:///system"
base=$(pwd)
2012-04-19 12:43:54 +00:00
sudo vmbuilder vbox ubuntu --suite=precise \
--verbose --debug \
2013-07-03 14:25:57 +00:00
--arch $arch \
--flavour generic \
--dest $base/pandora \
--hostname pandora \
--swapsize 512 \
2013-07-03 14:25:57 +00:00
--rootsize $size \
--user pandora \
2013-07-03 14:25:57 +00:00
--pass $password \
--components main,universe,multiverse \
2013-07-03 14:25:57 +00:00
--firstboot=$base/firstboot.sh \
$extra