VirtualBox error when trying to run Ubuntu "Failed to open a session" [closed] - virtualbox

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Im trying to run Ubuntu in a virtual machine on virtual box. So far I have reinstalled virtualbox once to see if it was the cause, then I redownloaded the .iso, but when I try to run the machine it says it still won't run.
Failed to open a session for the virtual machine ubuntu.
The virtual machine 'ubuntu' has terminated unexpectedly during startup with exit code 1.
Result Code: E_FAIL (0x80004005)
Component: Machine
Interface: IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048}

If you didn't power off the vm after last run, try right-click on VirtualBox Manager >> Discard Saved State. This will start the vm from (virtual) power off state. Current state of vm will be lost.

Are you using VirtualBox 4.3.14? There's a known bug which could be related: https://www.virtualbox.org/ticket/13187
I was having this problem, downgrading "solved" it.

Here's what I did and it worked properly:
(1) Move/copy your hard disk image (my_old_vm.vdi) to a
convenient folder, e.g. C:\my\VMS\my_new_vm\
(2) Create a new virtual machine (click the new button).
(2.b) At some point in time you are asked about the disk
to be used; choose 'existing disk image' and browse
to where you moved my_old_vm.vdi and select that.
(3) Start the VM and reconfigure the machine settings.
(4) Possibly delete the old machine. If you did not move the
.vdi file, then do not delete all files related to the
old machine.
This saved my day.

For me "Detachable Start" works, can you try it out?

I just went through exactly the same problem on a Windows VM. Uninstalling the Norton Internet Security and restarting my computer solved the problem. Credit to this article that I found here: https://forums.virtualbox.org/viewtopic.php?f=6&t=62615

Related

Failed Open Snapshot VirtualBox 6 VERR_SSM_DATA_UNIT_FORMAT_CHANGED [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
Anybody else failing to open snapshots once they upgraded their VirtualBox from v5 to v6? Snapshots that were opening just fine are now failing for me with this error ...
HGCM#0: Bad auto mount point size: 0x5
[ver=3 pass=final] (VERR_SSM_DATA_UNIT_FORMAT_CHANGED).
Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
Some very old snapshots are able to open; but most new ones and ALL the ones I save now using VirtualBox 6 are failing to open. Same error above.
My host is Windows10 and the saved VMs are Ubuntu18 guests.
Disclaimer: It should not be an excepted solution as your saved state will be lost.
As I don't have any sensitive data in the saved state. I have discarded the saved state and it works fine for my case.
EDIT: in some cases it looks like if you take a snapshot using the saved state, and then discard the saved state you might be able to recover back to where your saved state was
Steps
Right Click on the OS
Select Discard Saved State... in the context menu.
Screenshot
Host OS: Windows 10, Guest OS: Ubuntu 18.04, on Virtual Box 6.0.0
I have resolved this problem by installing Oracle_VM_VirtualBox_Extension_Pack-6.0.4.vbox-extpack for my VirtualBox-6.0.4-128413-Win

VirtualBox disk full on importing appliance in ova [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
trying to import MyMachine.ova (Ubuntu created on VBox and exported to ova) I am catching error:
Failed to import appliance D:\Exported Virtual
Machines\MyMachine.ova.
Could not create the imported medium 'D:\VirtualBox
VMs\MyMachine\MyMachine-disk1.vmdk'.
VMDK: cannot write allocated data block in 'D:\VirtualBox
VMs\MyMachine/MyMachine-disk1.vmdk' (VERR_DISK_FULL).
Result Code: VBOX_E_FILE_ERROR (0x80BB0004) Component: ApplianceWrap
Interface: IAppliance {8398f026-4add-4474-5bc3-2f9f2140b23e}
I have C drive and D drive, my C is main drive and there is little space, but on D I have ~110 GB free space so it isn't a problem in space.
Configuration for virtualbox path is File->Preferences->Default machine folder: D:\VirtualBox VMs
And after clicking File->Import appliance I have: Virtual Disk Image D:\VirtualBox VMs\DanfossMachine\DanfossMachine-disk1.vmdk
So it seems that it should work without any problem, but it fails :(
Could someone maybe give a hint?
Here are a couple possible solutions :
Make sure your target file system is NTFS and not something with a 4GB file limitation (eg FAT32)
Uncompress the ova file using 7zip or similar. Create a new virtual machine and import the vmdk that came from the ova as the VM's hard drive during creation. This ought to tell you how large the existing hard drive is. It's possible that your "MyMachine-disk1.vmdk" has a reserved file space much larger than the actual ova file takes up, and thus will run into a disk full error despite not appearing to need that much space.
This happened to me, too. My HDD is about 237GB of which ~50GB was used by the System. I was copying the .ova file (~72GB) into my hard disk (from an external drive, thinking it would speed up the process) and then was trying to import it. As a result, it was taking 2x the space.
The problem was resolved as I (deleted the .ova file from my drive) and imported the image directly from the external drive. I didn't get the error message anymore. Hope it helps. Thanks!
Many days ago i came up with this solution, hope it helps
I did this under Ubuntu Server 20.04
lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
exit
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv```

Unable to log in to Ubuntu running on VirtualBox [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Recently I created a Ubuntu 14.04 (Trusty Tahr) VM in VirtualBox which is running on my Windows 7 laptop. It was working fine, but I am experiencing very strange behavior now. After entering the right password it is again displaying the login screen. But if I enter the wrong password then it says the wrong password that is expected. I checked the log file of VirtualBox, but there is nothing.
RAM and HD allocated for VM is sufficient.
Below is the screen again and again appearing after entering the right password to log in.
This happened to me while adding shared folders on VirtualBox. I have removed the shared folders and restarted VirtualBox.
The above steps solved my issue.
I seems like something is corrupted in your user profile.
You should look into file ~/xsession-errors for the logs and see what is happening.
The usual suspects
Open a terminal screen (Ctrl + Alt + F1) log and and look into these file permissions (owner+mode):
.cache/
.Xauthority
.ICEauthority
If nothing works, just delete these files:
rm -rf .cache
rm .Xauthority
rm .ICEautority
Now go back with Alt + F7, log in and try again.
Another option is to look for any recent changes to the ~/.profile file if any program you installed has modified it recently.
This just happened to me on an Ubuntu 16.04 (Xenial Xerus) guest. I couldn't log in through the GUI, but I was able to log in through the CLI.
Chrome decided to use all the memory in the VM (which somehow prevented a GUI login). I killed Chrome from the CLI and I was then able to login through the GUI.
I recently experienced this issue as well, though with a different Ubuntu OS (Ubuntu MATE 20.04.2.0 (Focal Fossa) on Windows 10), but I've seen this happen on Debian 10 (Buster) and Debian 8 (Jessie), Kali Linux, and Ubuntu 20.04.2.0.
The inability to login has always been due to insufficient memory allocation (with VirtualBox, dynamic allocation doesn't work all the time, and space runs out fast). I received a low drive space warning, but dismissed it; I ended up unable to login to my machine after booting it.
However, you may not receive a warning that you are running low on drive space, so it's a good idea to pay attention to the amount of space you have before running updates or downloading large files. To fix this issue, you'll either need to manually increase the memory allocation from the VirtualBox manager or create a new VM.
You might have made some changes in /etc/environment.
Most probably you have corrupted the PATH variable.
Update the environment file like this (using nano):
sudo nano /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
Save and exit with Ctrl + X.
I'm using the Kali Linux VM, but I just restarted the VirtualBox and everything works just fine! It might help...

Virtual Box: Critical error while running the virtual machine [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I use a VirtualBox machine as a local web server (this is an Open Suse VM). But for a few days, problems occurs with my VM.
First, I can't delete my oldest snapshot, the reason is:
Result Code: NS_RROR_FAILURE (0x80004005)
Component: SessionMachine
Interface: IMachine {480cf695-2d8d-4256-9c7c-cce4184fa048}
Another issue came today:
VirtualBox - Guru Meditation
A critical error has occurred while running the virtual machine and machine
execution has been stopped.
[...]
Press OK if you want to power off the machine of press Ignore if you want
to leave it as for debugging. Please note that debugging requires special
knowledge and tools, so it is recommended to press OK now.
It's pretty painful, because, it's the third time it happens, and I can't work on my web server...
Here is the link to the VirtualBox log file
Note that, I just upgraded my Lubuntu from 12.10 to 14.04 (I got problems during this upgrade -- blank screen when I was booting, but I fixed them). Open Suse is running on my VM, and I use Interbase, PHP, Apache. The first time the issue happened, I was using Netbeans, then it was when I was using Kwrite. I previously got many networks problems with this VM (it's the reason why I take snapshots to avoid rebooting).
Why am I receiving critical errors when attempting to run the virtual machine?
Today I got the same error message, and resolved it by closing the Android Emulator that was also running.
I've figured the answer. 99 Percent of the cases including me will have the same solution. We have assigned more memory for the VM so the Host system does not have enough memory to handle VM. You can get rid of Guru meditation by assigning less memory to the VM. you can do this by: Open Vm>Settings>System> And reduce assigned memory to a lesser value.
Hope it helps.
i was facing this error and tried that and worked for me
1- Open VM VirtualBox
2- file -> Settings -> System -> Processor
3- Check Extended Features : Enable PAE/NX .
VBox linux machines allow 128MB video memory at max, by default. If you have ever tweaked the video memory to 256MB then this error might occur. For me this error came after few days of the tweak to 256MB video memory. When I turned it back to 128MB(default), now the critical error(Guru Meditation) is gone.
This was what happened with me.
I have got same problem (GURU meditation ERROR..) while trying to install windows 10 in VM box ..
I just
and Lower RAM usage to (half),and Done!.
This may Help!..
Trying Reinstallation and Go to Repair of VirtualBox also may Help !!...
I created another VM and the problem doesn't appear more.
In my case, the Guru Meditation error appeared every time I tried to update my Lubuntu 18.04 machine, in VirtualBox 6.04. It was associated with the following Vbox.log error:
00:04:13.601 Not in text mode!
00:04:13.601 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Following the suggestion described here: Not in Text Mode! Error (guest Windows PE 3.0), about activating I/O APIC in the virtual machine configuration, the problem was solved.
VBox linux machines allow 128MB video memory at max, by default. If you have ever tweaked the video memory to 256MB then this error might occur. For me this error came after few days of the tweak to 256MB video memory. When I turned it back to 128MB(default), now the critical error(Guru Meditation) is gone.

VirtualBox upgrade trashed my virtual machine [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I had Virtual Box 3.2 working fine, emulating 32-bit Windows XP in a 64-bit Windows 7 host. Then I upgraded to VirtualBox 4.0.4, and everything seemed to work (after I installed a couple of things -- USB2.0 support, Guest Additions).
Then I restored a snapshot that was taken under version 3.2, and now I've lost everything. I get the error message:
The selected virtual machine is *inaccessible*. Please inspect the error message shown
below and press the **Refresh** button if you want to repeat the accessibility check:
Could not find an open hard disk with UUID {b0e666ef-1041-415a-8329-876b337e1958}.
Result Code:
VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)
Component:
VirtualBox
Interface:
IVirtualBox {d2de270c-1d4b-4c9e-843f-bbb9b47269ff}
I tried creating a new virtual machine from the vdi file, but it locks up when loading WINDOWS\System32\DRIVERS\lfsfilt.sys. I tried re-installing version 3.2, but I get exactly the same problems.
I have a VirtualBox.xml file in my .VirtualBox directory, and various files (Virtual Dell.xml, Virtual Dell.xml-prev etc.) in .VirtualBox\Machines\Virtual Dell.
Help please! How do I get my virtual machine back?
This bug happened to me recently (I assume it's a VirtualBox bug) using snapshots in v4.
I fix'em opening the VirtualBox.xml file and:
Search the UUID of the missing drive (b0e666ef-1041-415a-8329-876b337e1958 in this case), normally will be a tag (notice the />).
Remove the tag which generate the error.
Now, if the problematic HardDisk tag was inside another HardDisk tag (one with open and close tag) reconvert this last tag in one without close.
Sorry, my english it's not good enough for a good explanation, let me show you an example:
Original non-working XML piece:
<HardDisks>
<HardDisk uuid="{ac511969-288a-44b4-b7ac-df5808c1a4ca}"
location="/home/me/.VirtualBox/HardDisks/machine_name.vdi"
format="VDI" type="Normal">
<HardDisk uuid="{e4e44e9d-aad0-4e2f-8ef8-d3d4d64f997f}"
location="/home/me/.VirtualBox/Machines/machine_name/Snapshots/{e4e44e9d-aad0-4e2f-8ef8-d3d4d64f997f}.vdi"
format="VDI"/> <!-- Problematic snapshot -->
</HardDisk>
</HardDisks>
Fixed XML piece:
<HardDisks>
<HardDisk uuid="{ac511969-288a-44b4-b7ac-df5808c1a4ca}"
location="/home/me/.VirtualBox/HardDisks/machine_name.vdi"
format="VDI" type="Normal" /> <!-- Notice we've changed this tag and remove his closing tag since it's not more needed -->
</HardDisks>
This at least works for me, I loose the snapshot but recover the virtual machine.
Hope this help you.
in Virtual Media Manager, is the XP VDI disk attached to the virtual machine? If it is not then open settings for the VM and add the VDI in the Storage tab
another option is to plug in the ISO of Hiren's BootCD and use one of the Browsers / File Managers for disk access
the BootCD also has mini versions of Windows 98 + XP