2010-12-02 03:32:06 +00:00
|
|
|
#!/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"
|
|
|
|
|
2010-12-02 03:32:06 +00:00
|
|
|
base=$(pwd)
|
2014-09-25 13:27:28 +00:00
|
|
|
sudo vmbuilder $hypervisor ubuntu --suite=trusty \
|
2010-12-02 03:32:06 +00:00
|
|
|
--verbose --debug \
|
2013-07-03 14:25:57 +00:00
|
|
|
--arch $arch \
|
2010-12-02 03:32:06 +00:00
|
|
|
--dest $base/pandora \
|
|
|
|
--hostname pandora \
|
|
|
|
--swapsize 512 \
|
2013-07-03 14:25:57 +00:00
|
|
|
--rootsize $size \
|
2010-12-02 03:32:06 +00:00
|
|
|
--user pandora \
|
2013-07-03 14:25:57 +00:00
|
|
|
--pass $password \
|
2014-09-25 13:43:02 +00:00
|
|
|
--addpkg linux-image-generic \
|
2010-12-02 03:32:06 +00:00
|
|
|
--components main,universe,multiverse \
|
2015-03-20 07:51:31 +00:00
|
|
|
--firstboot=$base/pandora_install.sh \
|
2013-07-03 14:25:57 +00:00
|
|
|
$extra
|