Minimum instructions to get Baserock from scratch on x86_64

On host, in a terminal, with VirtualBox installed

wget http://download.baserock.org/baserock/baserock-current-build-system-x86_64.img.gz
gzip -d baserock-current-build-system-x86_64.img.gz

VBoxManage convertdd baserock-current-build-system-x86_64.img baserock.vdi --format VDI
VBoxManage createvm --name Baserock --ostype Linux_64 --register
VBoxManage modifyvm Baserock --ioapic on --memory 2048 --nic1 bridged --bridgeadapter1 en0
VBoxManage storagectl Baserock --name "SATA Controller" --add sata --bootable on --portcount 2
VBoxManage storageattach Baserock --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium baserock.vdi
VBoxManage createhd --filename baserock_src.vdi --size 81920
VBoxManage storageattach Baserock --storagectl "SATA Controller" --port 1 --device 0 --type hdd --medium baserock_src.vdi
VBoxManage modifyvm Baserock --cpus 4
VBoxManage startvm Baserock

On guest

login as root (no password), then

ipaddr
passwd

Back on host terminal

ssh-keygen
ssh-add
ssh -A root@ip.of.baserock.guest

ssh-copy-id root@127.0.0.1
mkfs.btrfs -L src /dev/sdb
mkdir /src
echo 'LABEL=src /src btrfs defaults 0 2' >> /etc/fstab

reboot

(The above steps assume that you already have ssh keys on your host machine. If you don't, you will need to run ssh-keygen - and accept the defaults - before you run them.)

cat > /src/morph.conf <<'EOF'
[config]
log = /src/morph.log
log-max = 100M
cachedir = /src/cache
tempdir = /src/tmp
artifact-cache-server = http://cache.baserock.org:8080/
EOF

ln -sv /src/morph.conf /etc/morph.conf

cd /src
git clone git://git.baserock.org/baserock/baserock/morph.git

cd /usr/bin
mv morph morph.dist

cat >morph <<'EOF'
#!/bin/sh
morphpath=/src/morph
PYTHONPATH="$morphpath" "$morphpath/morph" "$@"
EOF

chmod +x morph

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

git clone git://git.baserock.org/baserock/baserock/definitions
cd definitions

scripts/cycle.sh systems/base-system-x86_64-generic.morph clusters/upgrade-devel.morph