Skip to content

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

Open
huguesalary wants to merge 2 commits intomachine-drivers:masterfrom
betabrand:multi-images
Open

Feature: --xhyve-experimental-attach-image allows to attach a custom disk image#120
huguesalary wants to merge 2 commits intomachine-drivers:masterfrom
betabrand:multi-images

Conversation

@huguesalary
Copy link
Copy Markdown
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