Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: --xhyve-experimental-attach-image allows to attach a custom disk image #120

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

None yet

2 participants