VirtualBox error "Failed to open a session for the virtual machine" - virtualbox

I have a virtual machine with Windows XP with a clean installation. I set it as immutable to create a differential machine, so I create a new virtual machine, select the immutable hard disk and create a new snapshot in the new virtual machine folder.
However, when I try to start the virtual machine I get this error:
"failed to open a session for the virtual machine".
Código Resultado:
VBOX_E_INVALID_OBJECT_STATE (0x80BB0007)
Componente:
ProgressProxy
Interfaz:
IProgress {c20238e4-3221-4d3f-8891-81ce92d9f913}
What is the problem? until now I can use differential virtual machines without problems. I have installed the last version or VirtualBox v4.3.4 and the problem persists.
If I set the hard driver as normal and I create a new virtual machine and select this hard drive I don't have any problem.
EDIT: I use the same virtual disk and do the same steps in another computer and it works fine. I think that the problem is the VirtualBox of my computer with the problem, but I try to uninstall the program and reinstall it and the problem persists, so I don't know how to solve the problem.
EDIT 2: if I set the virtual harddrive as multiattached instead of immutable, then it works fine. In my case is enough, but I know that it would be work as immutable because it was work until now and it works in another computer.
I try to create a new user in windows to try if the problem if with the configuration of my account, but the problem persists. So I think that some general configuration of VirtualBox has been corrupted and I am not be able to repair it.
I would like to know if there is any solution to use a immutable hard drive, because I would like to solve the problem with VirtualBox, although by the moment the multiattached hard disk is enough.

I had the same issue, I tried editing the VM but it wasn't letting me save it. So I tried the following:
Tried editing the VM to change RAM/CPU etc, but it wasn't letting me save it
Deleted the vm (not the data) and tried adding it again, didn't fix it
Tried moving the vbox file to another directory and import it, but it didn't let me move the vbox file so I realized there's a virtualbox process running that's holding a lock on it. So I killed that process and started it again and my VM booted

Killing VM process dint work in my case.
Right click on the VM and click on "Discard Saved State".
This worked for me.

For windows users
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
I had the same issue, and this trick works for me
Goto control panel
Open Uninstall program
Click on turn windows features on or off
Scroll down and find the hyper-V folder.
Uncheck the Hyper-V.
Apply changes and restart your system.
Now here you go... Open your virtual box and start the os you want.
Hope this helps..

Updating VirtualBox to newest version fixed my issue.

If you are in Windows and the error message shows VT-x is not available make sure Hyper-V is disabled in Windows components.

maybe it is caused by privilege, please try this:
#sudo chmod 755 /Applications
#sudo chmod 755 /Applications/Virtualbox.app

Something that I tried and work for me is simply you create a new virtual machine and you use the existing virtual hard disk file and everything is like you left it.

On Ubuntu, this can also be caused by incorrect permissions. I chmod 755 Logs/ which fixed the issue.

In my case I gave administrator privilege to Virtualbox and it solved my problem.
i.e., run run as administrator on windows 10

In may case, "VM VirtualBox Extension Pack" was broken. So I uninstalled it and reinstalled it.

For MAC users
After some research, this worked for me:
Quit VirtualBox
Right click "Applications" folder
Click on "Get Info"
Change "Everyone" Permission to "Read Only"
Open VirtualBox, and now it should work.

Normally this error occurs when it try to load the previous state. This happened in Mac Virtual box.
I tried after restarting the virtual box but again also i've encountered this issue.
Right Click on the operating system in the virtual box and then Click on the Discard Saved State.. .This fixed the issue.

try this
sudo update-secureboot-policy --enroll-key
and restart your system, when restart it shows option and select Mok key and you will work fine.

The only thing that solved the issue for me is to unmount the second hard disk on my laptop.
My current setup contains 1 HDD on SATA0 port and 1 SSD on SATA1 port. I've the OS and Oracle VirtualBox installed on the SSD drive.
When I deleted the partition on the HDD, the issue was solved.

This solved my problem:
open a cmd with admin privilige
bcdedit /set hypervisorlaunchtype off
reboot
Error gone and VMs are working again.

This worked for me:
In the Oracle VM Manager - right click on your virtual maching (for example kali linux).
In the menu choose "discard saved state".
Then press discard and restart your virtual machine.

Ubuntu based system, solution that worked for me...
Delete virtualbox and download the latest deb package from the virtualbox website.

Related

VirtualBox Shared Folder Not Accessible Inside Guest

I have been following this guide: https://www.virtualbox.org/manual/ch04.html#sf_mount_auto
I am running ubuntu 16 with a Windows 2016 VM guest, the VM name is "WindowsServer2016". I need to create a shared folder that is in my home: /home/heatdeath/For_Virtual (is the name of the folder in Ubuntu that I want to share)
In virtualbox I have added the folder to the shared folder, and enabled auto-mount. Yet when I go into the Windows VM, and look under networks, there is no shared folder.
So instead of auto-mounting, I try manually by using
net use x: \\vboxsvr\For_Virtual
And I get the error:
System error 53 had occured
The network path was not found
I also tried vboxsrv.
Kinda at my wits end with this, done alot of research and nothing new turns up. Any help appreciated
Indeed difficult & frustrating to solve, if you don't know.
My Linux distro didn't include VBoxAdditions.iso
I finally found it at http://download.virtualbox.org/virtualbox/
under the version of virtualbox installed.
First, make sure that you belong to the vboxsf and vboxusers groups, and usb if you want to use usb access. (It might be a bit different on your distro)
Just download the iso to a convenient location
(I use the same folder for all the msw sources),
and select it via the cd/dvd option in virtualbox.
Then start the guest session, and in the menu at the bottom of the guest window, make sure that the iso is selected, and start it from the guest file manager.
When finished installing, select reboot.
After, all the defined shared folders appear automatically as virtual optical disks just after the virtual hard disk and the virtual optical installation disk.
BTW, I tried to get help on the virtualbox forum, just getting a rude response.
I finally found the answer with an internet search.

Vagrant Box with Trellis/Bedrock

I recently set up a Trellis/Bedrock/Sage environment. I like it so far but have been running into the issue that if I step away from my computer, I can’t reconnect to my local production environment and have to start up my wordpress install from scratch. Is there a way to “save” a vagrant box so I can close my computer and not have to vagrant destroy, then vagrant up each time?
Thanks,
You could probably Save State directly in VirtualBox to accomplish what you want:
Also, I was able to find this comment to help answer your question here which also may do the trick:
In order to keep the same VM around and not loose its state, use the
vagrant suspend and vagrant resume commands. This will make your VM
survive a host machine reboot with its state intact.
https://serverfault.com/users/210885/

Virtual box Host only Network Interface

When I am trying to add a new Network Interface for Host only network, Virtual Box version :Version 5.0.22 r108108.
I am getting a following error:
Could not find Host Interface Networking driver! Please reinstall.
Result Code:
E_FAIL (0x80004005)
Component:
HostNetworkInterfaceWrap
Interface:
IHostNetworkInterface {455f8c45-44a0-a470-ba20-27890b96dba9}
Reinstall the Virtual Box and restart your system.
open virtual box -> select the default virtual machine-> setting -> network -> change host-only to bridged networking -> start virtual machine -> Open docker quickStart Terminal to connect
You must reinstall the driver.
Go to device manager, you will find an "unknown driver" missing then update it by pointing to this link:
C:\Program Files\Oracle\VirtualBox\drivers\network\netadp6\VBoxNetAdp6.inf
Existing answers didn't help me, but this did:
Open the Network tab of your VirtualBox settings.
Cycle through all Adapter tabs and make sure none of them points to something non-existent, even if the adapter is disabled.
For disabled adapters, enable them, set to Not attached, then disable again.
Save.
UPD: that didn't solve it. The solution was to reinstall VirtualBox like #ArpitArgarwal suggests, but simply repairing it didn't help. What helped was:
Manually uninstall existing VirtualBox.
Install VirtualBox, starting the installer with admin privileges.
1.Open Virtual Box with Run as administrator. Then it showing below snapshot error: 0x80004005 belongs to Failed to open a session for the virtual machine. Check with this error correct or not.
http://commandstech.com/how-to-resolve-failed-to-open-a-session-for-the-virtual-machine-error-code-0x80004005/
5.Now, the issue may be solved. If an issue is still pending then close it Virtual Box. Then open with Headless start option. It means that Restart the Virtual Box.
In some cases, (worked for me) running and getting the latest update of vbox fix the problem. And got the Host Interface Networking driver automatically installed.
The update I run was:
VirtualBox-6.0.14-133895-Win
Follow the below settings and it will allow you to configure Host-only Adapter-
Open VirtualBox Manager
Click on "File" -> "Host Network Manager"
Click on "Create".
Now you can select "Host-only Adapter" from Network tab of a VM.
Note: Screenshot taken from VirtualBox 6.0

how do i install centos 7 in virtualbox on a windows 10 host without error

I have a new laptop running windows 10. I installed oracle virtual box, then created a virtual drive and tried installing centos 7 on virtual drive, after installation is completed i got the following error upon reboot:
The instruction at 0x00000000535AC145 referenced memory at 0x0000000003F35A78. The memory could not be read.
Press ok to terminate the program.
Of course after I hit ok the program terminates. Then I have to run the install again and I get the same error. Very aggravating!
Please any help would be greatly appreciated.
You can try to download all your installers again. Preferably from the actual Virtualbox and Centos websites. Maybe the files got corrupted or not completely downloaded.
Also, you could try to check the logs?
From here: https://www.virtualbox.org/manual/ch12.html
For problem determination, it is often important to collect debugging
information which can be analyzed by VirtualBox support. This section
contains information about what kind of information can be obtained.
Every time VirtualBox starts up a VM, a so-called "release log file"
is created containing lots of information about the VM configuration
and runtime events. The log file is called VBox.log and resides in the
VM log file folder. Typically this will be a directory like this:
$HOME/VirtualBox VMs/{machinename}/Logs

Vagrant reset my VM and now I am frightened I lost my work

I have a horrible situation and I hope you can help.
This morning, the terminal opened in my VM hanged, I tried to access Virtualbox and it went unresponsive. I killed Virtualbox manually and typed vagrant up. Vagrant (vagrant ssh) booted on a VM that pretty much seems the default one and I am terrified that all my work has been lost.
Typing vmboxmanage list vms shows:
wasp_1375609265" {29663113-786b-4b8a-adc8-2edecf06bcff}
which is the same UUID I find on the .vagrant file.
I am on a Mac OSX Montain Lion, the version of vagrant I am using is 1.0.6 and Virtualbox is 4.2.16.
Is there any way I can access the image at the previous state it had before I manually killed it? I can't believe that vagrant or Virtualbox purposely overwrote the image with a default one
It turned out that I am an idiot and the image was not lost. For some reasons Virtualbox saved it with a cryptic name and vagrant reverted to the default vagrant box wasp_32... when I run it again. I found the image I was looking for simply running all the *.vmdk I found under ~/VirtualBox VMs.
After that I followed the instructions I found here to make vagrant booting the correct image