15 lines
464 B
Bash
Executable File
15 lines
464 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
SUITE=lucid
|
|
ARCH=amd64
|
|
MIRROR=http://${MIRROR_HOST:-`hostname`}:3142/archive.ubuntu.com/ubuntu
|
|
|
|
mkdir -p var
|
|
|
|
if [ ! -e var/id_dsa ]; then
|
|
ssh-keygen -t dsa -f var/id_dsa -N ""
|
|
fi
|
|
sudo vmbuilder kvm ubuntu --arch=$ARCH --suite=$SUITE --addpkg=openssh-server,pciutils,build-essential,git-core,subversion --ssh-key=var/id_dsa.pub --ssh-user-key=var/id_dsa.pub --mirror=$MIRROR --dest=base --flavour=virtual --overwrite
|
|
mv base/*.qcow2 base.qcow2
|