VirtualBox

Opened 5 months ago

Closed 6 weeks ago

#22191 closed defect (invalid)

Using a .vhd image in the VM will crash the VM in Linux

Reported by: livefreedead Owned by:
Component: other Version: VirtualBox-7.1.0
Keywords: VHD crash Cc: livefreedead
Guest type: Linux Host type: Linux

Description

I have a VHD file that is 80gb, I use it to transfer to and from my Linux Mint v22 Host and the same Guest OS, in a windows host I am able to do this without an issue. But using a Linux Host I've found that my VM crashes when I try to copy to or from the VHD, especially if I attempt to do other things. it happens almost every time, I;ve had multiple installs and it's occurred on Linux Mint v21 and v22 and on Virtualbox 7.0.18 and 7.1.0. I am just reporting this bug as a way to get things off the VM to the real HDD is essential.

Change History (3)

comment:1 by livefreedead, 5 months ago

I just tested in 7.1.2 and the VHD still crashes if I read or write over 800mb of data at once. It must be relating to buffers/cache or something like that. to be clear, the VHD is just made with VirtualBox and mounted as a 2nd disk after the guest OS is installed, so that I can transfer things without needing to install guest tools and use the network. I am trying to make a Linux Respin and the only way to get the builder on without having to install guest tools and add users/groups etc is via a VHD or a ISO mounted. which I can't copy from the VM to a ISO. It is stable as a rock on Windows Host on any version and even in Linux it works sometimes and never crashes the Host, but the VM guest just locks up, not even Ctrl+Alt + F1 - F7 can get to console etc.

Version 0, edited 5 months ago by livefreedead (next)

comment:2 by livefreedead, 7 weeks ago

Seeing as nobody here cared to help, I've solved this on my own after using VMWare for 30 minutes today (First time I've been able to actually install it in Linux Mint since Broadcom took it over) and it actually gave me an error about why the system stopped, so I was able to find a solution to that VM which also happened to fix it in VirtualBox as well:

In the VM Software, disable Host Write Cache then follow below on the Guest OS

Open a Terminal and run sudo swapoff -a

So it turns out that both VM software have a bug where when the File Write Cache either gets full (It's set to 512mb for most Linux OS's default), once the write speed is maxed out and the cache gets to it's limit it stalls the Guest OS which causes a fake/soft kernel panic. By disabling the Swap file while using the VM you will not get this happening and your system will be solid but may stutter a bit if the writing occurs.

I also disabled the cache on my actual Host OS too as I don't need it, so not sure if it was the VM or the Real HW that's fixed it, or even doing both. But the fix is relating to the write cache and swap file regardless.

comment:3 by aeichner, 6 weeks ago

Resolution: invalid
Status: newclosed

The host write cache should be disabled by default for VMs in VirtualBox which don't use the IDE controller emulation. You likely didn't get any help because you didn't provide at least a VBox.log of the VM as stated here when you created the ticket.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette