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

Running vagrant up results in Stderr: VBoxManage: error: RawFile#0 failed to create the raw output file /Users/ehankinson/Projects/leandog/atdd-linux-vagrant-master/ubuntu-xenial-16.04-cloudimg-console.log (VERR_FILE_NOT_FOUND) #2

Open
danielhelfand opened this issue Apr 1, 2019 · 6 comments

Comments

@danielhelfand
Copy link

danielhelfand commented Apr 1, 2019

When running vagrant up in the base directory of this repository on macOS Mojave, the following error appears:

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "f0ecf372-c452-40dc-b072-d1fb6e3b9b1d", "--type", "gui"]

Stderr: VBoxManage: error: RawFile#0 failed to create the raw output file /Users/ehankinson/Projects/leandog/atdd-linux-vagrant-master/ubuntu-xenial-16.04-cloudimg-console.log (VERR_FILE_NOT_FOUND)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

In working some Lean Dog team members, it appears the solution is to open Virtual Box (use cmd + space and type Virtual Box and open the Virtual Box application). Click on LDATDDDev, click on the Ports tab, and change the path from /Users/ehankinson/Projects/leandog/atdd-linux-vagrant-master/ubuntu-xenial-16.04-cloudimg-console.log to /Users/<YOUR USER FOLDER>/<LOCAL PATH TO ATDD REPO>/atdd-linux-vagrant-vm/ubuntu-xenial-16.04-cloudimg-console.log

@qre0ct
Copy link

qre0ct commented Jun 23, 2019

There is a small hack that seemed to work in my case. Had the exact same issue. All I did was created the missing path (like so in your case) : /Users/ehankinson/Projects/leandog/atdd-linux-vagrant-master/ubuntu-xenial-16.04-cloudimg-console.log
It solves the problem. Still trying to figure out though how to change the logs path for VBoxManage.

Actually, just figured out. This can be fixed by changing the the Path/Address settings in the ports section of the virtual box's settings. Make it to the missing path (/Users/ehankinson/Projects/leandog/atdd-linux-vagrant-master/ubuntu-xenial-16.04-cloudimg-console.log in your case). Ensure that the box was shut down so you can make the change.

Screen Shot 2019-06-23 at 1 09 57 PM

@kumichou
Copy link
Collaborator

The line in the Vagrantfile

vb.customize ["modifyvm", :id, "--uartmode1", "disconnected"]

is supposed to disconnect the UART and not require that location to be there. Apparently this isn't working in all versions of VirtualBox?

@lukmanlab
Copy link

May be in macos, need allow permission to document. You can test run another Vagrantfile and re-run your existing vagrant/restore snapshot existing vm.

@samfullman
Copy link

Yeah, that .customize method is not working in vagrant --version 2.2.2

@samfullman
Copy link

When I packaged my box, I had a path to that Serial Port that was relative to my computer, hence the message. So the answer was, make sure that setting is corrected (as shown above) before doing a vagrant package

https://superuser.com/questions/1622167/vagrant-box-fails-trying-to-log-to-a-path-the-box-was-created-from/1622179#1622179

@Mosu6997
Copy link

What is an ATDD Repository?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants