I tried to run Whonix in Live Mode on VirtualBox 6.1 on Win10 but it will either warn me that it can still write on the disk or crash immediately…
I can change the .vdi with VBoxManage to immutable but it will still get Live mode is enabled but it is still possible to write to the disk.[…]
When I try to change it to readonly, VBoxManage will output VBoxManage.exe: error: Cannot change type for medium ‘C:\Users\X\VirtualBox VMs\Whonix-Workstation-XFCE\Whonix-XFCE-15.0.1.9.3-disk002.vdi’ since it has 2 child media
VBoxManage setextradata Whonix-Workstation-XFCE “VBoxInternal/Devices/lsilogicsas/0/LUN#0/AttachedDriver/Config/ReadOnly” 1
will work but crash the VM on startup with details: Failed to construct device ‘lsilogicsas’ instance #0 (VERR_PDM_CFG_MISSING_DRIVER_NAME). E_FAIL (0x80004005) IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
Also updated and upgraded everything.
Windows 10 Pro Build 19043.1110
Whonix Build 15.0.1.9.3
VirtualBox Version: 6.1.22 r144080 (Qt5.6.2)
I am trying to use Whonix in Live mode in VirtualBox. When I followed the pertinent VirtualBox instructions to set the drive read-only, it said to run this command:
I encountered this error when trying to start the virtual machine:
Failed to construct device ‘lsilogicsas’ instance #0 (VERR_PDM_CFG_MISSING_DRIVER_NAME).
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
There is another post in ‘Support’ (which I cannot link to) that details the same problem, and suggests changing the controller type to ACHI in the virtual machine settings. However this did not work.
This also occured to me when i was trying Whonix in Live Mode in Virtualbox I saw a warning saying, Whonix is in Live mode but it is still possible to write to disk please turn off the VM and set the disk to read only.I changed the disk to immutable but it was still showing the same warning.Then I tried to change the disk to read only in the host command prompt using the command
“VBoxManage setextradata Whonix-Workstation-XFCE “VBoxInternal/Devices/lsilogicsas/0/LUN#0/AttachedDriver/Config/ReadOnly” 1”
After that I opened the Vm in Virtualbox and It Showed
Failed to construct device ‘lsilogicsas’ instance #0 (VERR_PDM_CFG_MISSING_DRIVER_NAME).
Result Code:
E_FAIL (0x80004005)
Component:
ConsoleWrap
Interface:
IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
I tried the above given fixes but it doesn’t work also changed the controller type to ACHII but it doesn’t work
Windows 11 Home Build 10.0.22000
Whonix Build 16.0.3.7
VirtualBox Version 6.1.30 r148432 (Qt5.6.2)
In this tutorial one of the step is missing: Before executing the commands mentioned, you should set the type of the storage device controller from AHCI to LsiLogic SAS in the settings of the one/two virtual machine(s).
It is also able to stop the warning from being provoked by replacing lsilogicsas in the commands given with ahci, while the alert of the disk file being changeable will still exist, which indicates that this approach is not valid.
To avoid issues like Failed to open a session for the virtual machine in the future, use the the recommended version of the VirtualBox host software and Stay Tuned.
Yes I did try it before, which indeed led to a successful start-up of the virtual machine, while the alert in Whonix, which says that the disk can still be written, still turned out to remain. I did not test whether the disk was actually able to be written and it might then be fault of check mechanism of disk properties run by Whonix. I reckon that the developers should go through that part of the code.