Using the new --xhyve-experimental-attach-image argument, one can specify a path to an existing disk image to attach to the virtual machine.
For example:
docker-machine create -d xhyve --xhyve-experimental-attach-image ~/myDiskImage.sparsebundle test
This code might not be bullet proof. It was a quick implementation to see if it was at least feasible. It's a good starting point for anybody wanting to code this feature.
Known bug:
can't attach more than one image... this is due to a misusage of the -s argument of xhyve. I will try to fix when I get a chance. Happy if someone else fixes it.
Using the new --xhyve-experimental-attach-image argument, one can specify a path to an existing disk image to attach to the virtual machine.
For example: docker-machine create -d xhyve --xhyve-experimental-attach-image ~/myDiskImage.sparsebundle test
This code might not be bullet proof. It was a quick implementation to see if it was at least feasible. It's a good starting point for anybody wanting to code this feature.
Known bug:
-s
argument of xhyve. I will try to fix when I get a chance. Happy if someone else fixes it.