VirtualBox

Opened 10 years ago

#13458 new enhancement

Prevent VM paging on host and zero memory on power off

Reported by: quiettime Owned by:
Component: other Version: VirtualBox 4.3.16
Keywords: Cc:
Guest type: all Host type: all

Description

I run some VMs that I use for anonymity. I would like to make sure that nothing from these VMs appears on disk and I don't know if VirtualBox does that or has an option for that. I asked in the forum two weeks ago but did not receive a reply.

Currently I have the VMs on a portable USB drive. In my Windows 7 host I copy them to a RAM disk that does not page out (awealloc). I cannot run them from the USB drive directly as it's too slow. I have to be sure not to hibernate or sleep during this time because that would write the physical RAM to the hard drive. When I am done I wipe the drive.

I have some requests that could make my life easier and possibly anyone else who's doing the same thing.

I would like an option to zero memory on the host that was allocated by VirtualBox for the guest, after the guest is powered off or suspended. This could be done using ZeroMemory in Windows, for example.

I would like an option to prevent VM paging. In VMWare Workstation, which I am transitioning from, there is a separate level of paging. There's the level VMWare does itself and the level done by the OS (Windows in my case). Does VirtualBox have its own paging routine? In any case an option to prevent all paging would be helpful.

In Windows it's likely that fully preventing paging out won't be possible without administrator privileges, because the only way to make sure allocated memory absolutely stays in RAM is by passing a special flag that that can only be done by a process that has special permissions. There are very good reasons for this, as if any application could allocate all RAM etc.

Also, related to the no paging suggestion, an option to prevent host sleep/hibernate while a VM is running. Thanks

Change History (0)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use