Skip to content

Instantly share code, notes, and snippets.

@tbatchelli
Created April 23, 2012 23:07
Show Gist options
  • Save tbatchelli/2474428 to your computer and use it in GitHub Desktop.
Save tbatchelli/2474428 to your computer and use it in GitHub Desktop.
Installation of a new OS on Virtualbox
(use '[vmfest.manager :only [server]])
(def my-server (server "http://localhost:18083"))
(use '[visaje.core :only [install-os]])
(install-os my-server
{:name "debian-test-2"
:disk-location "/tmp/debian-test-2.vdi"
:disk-size (* 4 1024)
:os-iso-location
"/Users/tbatchelli/Desktop/ISOS/debian-6.0.2.1-amd64-netinst.iso"
:vbox-iso-location
"/Users/tbatchelli/Desktop/ISOS/VBoxGuestAdditions.iso"
:preseed (slurp "/Users/tbatchelli/deb-preseed.cfg")
:user "vmfest"
:password "vmfest"})
@tbatchelli
Copy link
Author

this:

  • creates a new VM with an empty disk
  • installs the OS with the preseed file
  • installs VirtualBox guest additions on the image
  • removes the VM
  • compacts the drive image
  • makes the drive image immutable and ready to be used as a base for lightweight
    cloud-like cloning in with vmfest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment