tbatchelli / vmfest

manage your local VMs from the repl
140 stars 25 forks source link

Enable support for mounting iso media when creating machines #41

Open hugoduncan opened 12 years ago

hugoduncan commented 12 years ago

Some images come bound to iso media that needs to be mounted on a machine. An example would be the SmartOS live iso that is used to run SmartOS.

At the manager level, it would be nice to specify the media via a url, and the mount point, in a similar fashion to the :boot-mount-point.

Something like:

:mount [{:media {:url ...}
             :mount-point ["SATA Controller" 1]}]

The manager could download and cache the media in ~/.vmfest/media or similar.

tbatchelli commented 12 years ago

The mount point for the ISO should be hardware independent if we want the images to be portable across hardware.

One option is to have vmfest figure out an empty spot given the type of IO card the hardware has defined.

I would also simplify the config:

:mount [ url url url] 

The urls could either be remote (e.g. https://) or local (file://), and in the former case, vmfest should download and cache, replacing the url for it's local counterpart.