-
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
Vagrant up .box <hardisk> entry created with incorrect directory name #7445
Comments
Hi @Freewilly3d Thank you for opening an issue. Unfortunately I am having a hard time following your issue. Are you saying that the VM image is created on a different disk than where the command is run? If so, that is a virtualbox bug - it will create the VM under the directory where you've configured it to store VMs. |
The VM is created in the right place. This location of the .vmdk in .vbox is not adjusted to that location. Inside the .vbox file the directory for the vmdk is, I assume the one the box was created with. It is not changed to the location of the vm on my computer. The vm is created here: F:\ubuntu-trusty-vb_default_1465910250618_72697
|
Hi @Freewilly3d Sorry - I'm still not following. The VM is the vmdk file. Could you please explain in more detail the steps you are taking and the desired result. Please understand that we are not at your computer, so every detail is important. |
Ok; let me try
around 1767 in the gist it looks like the software picks up the downloaded .vbox file and starts making changes to the text that defines the vm. It changes all the references to the new directory F:\ubuntu-trusty-vb_default_1465910250618_72697 except for the location of the vmdk or SataController @4545 in the gist the drive has been changed to F: but the path is still wrong. That never gets changed resulting in the error when the startup is attempted. Thanks |
Hi @Freewilly3d Thank you for the reply:
Can you please explain how you did that? Was that something you did in the virtualbox GUI or a configuration in your Vagrantfile? |
The vagrant file is imbedded in the initial entry text above. I first attempted to do it with vboxmanage setproperty but found that the value ended up with a extra double quote after the colon or F:" causing a different error. Then I went into the virtualbox gui and corrected the value to "F:". Is there a way to set this in the vagrantfile? In looking through the debug I couldn't tell if vagrant using vboxmanage clone,export/import or some other method to create the new vm and if you were expecting vboxmanage to adjust the location of the vmdk relative to the new directory containing all the vm stuff... Thanks |
This scenario may affect other providers. When I attempt vagrant up using the hyperv provider I get errors. When I try vagrant up on Script: get_vm_status.ps1 At C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.8.4\plugins\providers\hype
withinboredom/Trusty64 E:\Vagrant\ubuntu-trusty>vagrant up --provider hyperv x metadata.json When I try it on withinboredom/Trusty64 I get this error E:\Vagrant\ubuntu-trusty>vagrant up --provider hyperv x metadata.json I can provide additional debug info and details if necessary. |
Hello, I am also having this issue window 10, vagrant latest, etc: I tried with two different boxes, no luck in starting the vm. ` Script: get_vm_status.ps1 At C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.8.4\plugins\providers\hyperv\scripts\get_vm_status.ps1:21 char:8
|
Hi @Freewilly3d @lorenzo1975 , I had the same issue, this here fixed it for me #7487 Same issue is logged over here #7447 Hope it helps |
Hi there, It looks like this has been resolved within a previously shipped version of Vagrant so I am now closing this issue. If the original issue was not fully resolved, please reopen this issue or create a new one. Cheers! |
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. |
Vagrant version
1.8.4
Host operating system
Windows 10
Guest operating system
Ubuntu
Vagrantfile
Debug output
https://gist.github.com/Freewilly3d/5eb40a36540fe9c983439de05b573081
Expected behavior
What should have happened?
HARDDISK entry in .vbox directory s/b changed to directory created for vm by vagrant
VM Created in this directory F:\ubuntu-trusty-vb_default_1465910250618_72697
Actual behavior
What actually happened?
Steps to reproduce
The text was updated successfully, but these errors were encountered: