The use of the kitchen converges. Exception: VirtualBox requires that the same user be used to manage the created virtual machine.

I am using a chef to create a dev environment on VirtualBox on my local machine. My local computer is Windows 7.

At first I would like to excuse myself a little, because I am completely new with all this chef and a wandering environment, I just followed the instructions and now I am stuck with an error that I do not understand, and in this case I do not know how to fix it.

I was told to go to the vm folder in the boss folder structure and run the "install package" command. After several problems, I managed to install the necessary gems. Now I need to run the “minimize kitchen” command to build a virtual machine in the Oracle VM Box, but at some point during the execution I received an error / exception.

Class: Kitchen::ActionFailed Message: Failed to complete #create action: Expected process to exit with 0, but received '1' Begin output of vagrant ssh-config STDOUT: STDERR: The VirtualBox VM was created with a user that doesn't match the current user running Vagrant. VirtualBox requires that the same user be used to manage the VM that was created. Please re-run Vagrant with that user. This is not a Vagrant issue. The UID used to create the VM was: 122765 Your UID is: 0 End output of vagrant ssh-config Ran vagrant ssh-config returned 1 Please see .kitchen/logs/kitchen.log for more details Also try running kitchen diagnose --all for configuration 

I found this problem:

The tramp does not start. The user who created the virtual machine does not match the current user .

So, I run the same command as the Administrator, but this did not help. Same problem.

In particular, I do not understand below the command

VirtualBox requires that the same user is used to manage the created virtual machine.

I think the chef uses a specific user to create a vagrant environment.

I wanted to stop and start Vagrant env from the command line to "wander" directly, but I got the same error.

 The VirtualBox VM was created with a user that doesn't match the current user running Vagrant. VirtualBox requires that the same user be used to manage the VM that was created. Please re-run Vagrant with that user. This is not a Vagrant issue. The UID used to create the VM was: 122765 Your UID is: 0 

I would appreciate any help. I would like to mention that it is a machine company and I do not have access to user rights changes such as UIDs (although I think this only applies to windows)

+4
source share
1 answer

For all of you who have come up with the same problem, the solution is quite simple. At least I worked for me.

First i run the command

 kitchen destroy 

it will destroy your virtual box that you just created, but to be honest, I don’t think it matters.

Decision:

I had to delete the .Vagrant folder from my user home directory, where for windows the folder is located in C: \ Users \ (your username) \. Vagrant

This will remove your stray specimens.

Thanks and good luck.

+3
source

All Articles