###################################################################### # Create initial fotodemo template, starting with base-etch: ###################################################################### VBoxManage clonevdi base-etch-8gb.vdi fotodemo-8gb.vdi VBoxManage registerimage disk fotodemo-8gb.vdi VBoxManage createvm -name fotodemo -register VBoxManage modifyvm fotodemo -ostype linux26 -memory 512 \ -hda fotodemo-8gb.vdi -nic1 nat VBoxManage setextradata fotodemo \ "VBoxInternal/Devices/pcnet/0/LUN#0/Config/fotodemossh/Protocol" \ TCP VBoxManage setextradata fotodemo \ "VBoxInternal/Devices/pcnet/0/LUN#0/Config/fotodemossh/GuestPort" \ 22 VBoxManage setextradata fotodemo \ "VBoxInternal/Devices/pcnet/0/LUN#0/Config/fotodemossh/HostPort" \ 2222 VBoxManage setextradata fotodemo \ "VBoxInternal/Devices/pcnet/0/LUN#0/Config/fotodemohttps/Protocol"\ TCP VBoxManage setextradata fotodemo \ "VBoxInternal/Devices/pcnet/0/LUN#0/Config/fotodemohttps/GuestPort"\ 443 VBoxManage setextradata fotodemo \ "VBoxInternal/Devices/pcnet/0/LUN#0/Config/fotodemohttps/HostPort"\ 44443 # Start it, either: VBoxManage startvm fotodemo # or: VBoxSDL -vm fotodemo & scp -P 2222 \ /home/ted/public_html/projects/gnuadminnotes/setcloneidentity.sh \ xyzzy@localhost:/tmp/ ssh -p 2222 root@localhost \ "sh /tmp/setcloneidentity.sh -d home fotodemo ; shutdown -r now" # Log in: ssh -Xp 2222 xyzzy@localhost # On the machine: su apt-get update apt-get dist-upgrade shutdown -r now # After reboot: shutdown -h now # Create a template VBoxManage clonevdi fotodemo-8gb.vdi fotodemo-template-8gb.vdi ###################################################################### # Now have baseline machine and template ######################################################################