Skip to content

Conversation

@huguesalary
Copy link
Contributor

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.

…thods to use a *DiskImage type

This is preliminary work towards being able to attach multiple disk images
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants