-
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
Packaging causes invalid paths + missing NAT. [Windows 7, VirtualBox 4.3.18] #4668
Comments
I can't reproduce this. To "package" Vagrant almost quite literally calls |
Hi Mitchell, Hmm. I'm on a brand new reinstall of Windows 7 x64 Professional, so I'll try to detail what steps I took to produce this.
Like I said earlier, the paths that are being output for the virtual machine after vagrant packages are what are really fascinating (not that I can get Vagrant to work as is.) If you need me to provide any other information, I'd be more than happy to! |
I'm also able to produce this - I created a box via packer. I was having errors with corruption of the image so I uninstalled/reinstalled vagrant and restarted when asked. When running
I can see the box folder created and unpacking happening with the original box file. Very briefly the virtual box shows the original vm and renames it to _default_xxxxxxxxxxxxx - which my vagrantfile does not specify. The machine fails to boot and I go into virtual box and try to fix the disk. I get an error that the disk UUID is already used associated with another vmdk. Running a sthduuid on the default vmdk and then associating the VM with it allows the machine to properly boot and run through winrm and hostname renaming - the VM does not get renamed in virtual box though. Here's the chained init and up log output - https://gist.github.com/Seakip18/e28e595e2f659126f397 |
After looking at the issues I'm going to close this as VirtualBox config issues. Their path configurations are notoriously annoying and cause issues like this. I haven't heard this from anyone else in about a year. |
I'm seeing this again on VirtualBox 5.0.16 r105871 and vagrant 1.8.1. During box import, it is created on a temporary name (like centos6_1459956912300_18756), and subsequently renamed by vagrant when import is done. However, for some reason, the path to disk image (box-disk1.vmdk) is stored as an absolute path in created .vbox file, and is not correctly changed when the folder is renamed. Yes, this might possibly be a virtualbox bug. A workaround would be nice. I tried to adopt a storageattach trick from http://stackoverflow.com/questions/21050496/vagrant-virtualbox-second-disk-path but my ruby-fu is not up to the task, me and colleagues being on windows and everything. I would only need to reflect the real path to the file, to this guy here: v.customize ["modifyvm", :id, "storageattach","--storagectl","SATA", "--port","0","--medium",disk] the only workaround i know of includes hand-modifying the .vbox file. #3584 also might relate. What would be the correct place to report "virtualbox config issues"? edit: if anyone wants to look at this.. i wasn't clear that a relative path in the .vbox file would work very well. it's just that modifyvm doesn't want to have one. |
Environment
Creation
Errors/Issues
The first error that is encountered is as such:
Which leads me to the following issues:
#2157
#2187
Here, we find that it could be any number of things causing this issue, but the consensus is obviously to try it in the GUI. Which leads me to:
VERR_PATH_NOT_FOUND - indicating that having VirtualBox/Vagrant in this directory is probably causing some pathing issues. Okay, checking settings:
Now isn't that interesting? The location of the disk is:
V:\Deb_default_1413816308626_93374
Yet, it's looking for V:\Deb_1_1413816275606_40978\box-disk2.vmdk.
What's also interesting is there's a SECOND disk here:
V:\boxes\Deb\0\virtualbox\box-disk2.vmdk
OK, so I manually replace the vmdk within the GUI... and try again:
Looks like NAT isn't working now.
The machine is now running (we've avoided the shutoff problem) but NAT is busted.
It looks to me like a bug with pathing and packaging, but I could be very off base. Any suggestions or solutions?
The text was updated successfully, but these errors were encountered: