-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Package Hyper-V boxes #7867
Package Hyper-V boxes #7867
Conversation
…ge_* files since right now they are copies of the virtualbox versions, might just put them in general.
Everything is working now, exporting a Hyper-V box and then importing it with the PR #7854. Quite awesome :) Just need to move a few actions to General and then it seems quite fine. I could also copy the tests for Vagrant package to check at least the correct calls. |
@chrisroberts I have a small question. I was refactoring, but it means some of the packaging code will move into the lib folder. I'm not sure if that fits the architecture. Could you provide some feedback on this? |
For testing I made a gist explaining how to get vagrant working from source on Windows. https://gist.github.com/bbrala/7e96be8a4e26f14834e8bbc21d246c38 Just checkout the branch in the repository after running the commands in the gist. |
@bbrala Skimming through the refactor branch, I don't see any glaring issues. I'm very much in favor of isolating common and duplicated behavior, so 👍. I will have a more in depth look at that branch (as well as this entire PR) this afternoon. This looks really great! |
Ok cool! Thanks for looking into it. I will refactor the other bits the same way then tonight (its 17:23 here). |
Ok, it wasn't much effort to change. Just can't test it at work. The Not sure how i would go about fixing that since it means checking what virtualisation is used on that machine. Perhaps check if VirtualBox is enabled on the machine. Although you could have both installed...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bbrala Thanks for all the hard work here. This is fantastic 😃
Thank! I've been using HyperV instead of VirtualBox on Windows 10 for a while now. The performance gain is insane. Next week a the first few developers at @swisnl will move to Hyper V :) Hopefully things will go smoothly, this will at least make repackaging easy ^^ |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
First draft of packaging of Hyper-V boxes. Uses the same logic as the Virtualbox package command./
Need to refactor the
package_*.rb
files since right now they are copies of the virtualbox versions, might just put them in general and extend them.Currently in my dev enviroment i run into the problem that bsdtar is not doing its job. It doesn't tar all the files for some weird reason when they are given as seperate arguments.
From the log:
"C:\\HashiCorp\\Vagrant\\embedded\\gnuwin32\\bin/bsdtar.EXE", "-czf", "G:/laragon/www/devlocal/package.box", "./Vagrantfile", "./vagrant_private_key", "./Virtual Hard Disks", "./Virtual Machines"]
Add or remove
--base
switch to select any existing virtual machine?