Page 1 of 1

Snapshot independent drive in VBox?

Posted: 26. Jan 2018, 11:48
by Lapsio
Is there any equivalent of VMWare independent drives in VirtualBox? I want to create read-only VM, reset on every shutdown to previous snapshot but with persistent ~/.config directory (mount as second drive). How can I do that?

Re: Snapshot independent drive in VBox?

Posted: 26. Jan 2018, 12:11
by socratis
Lapsio wrote:I want to create read-only VM, reset on every shutdown to previous snapshot
You have two options of doing that. 1) take a snapshot and revert to that whenever you shutdown the VM, or 2) use an "immutable" VDI. See ch. 5.4 Special image write modes for more details.
Lapsio wrote:but with persistent ~/.config directory (mount as second drive)
I'm not sure I understand that part. What does the "~/.config" directory have anything to do with a second drive?

Re: Snapshot independent drive in VBox?

Posted: 26. Jan 2018, 12:20
by Lapsio
socratis wrote:
Lapsio wrote:but with persistent ~/.config directory (mount as second drive)
I'm not sure I understand that part. What does the "~/.config" directory have anything to do with a second drive?
I don't want ~/.config to be part of snapshot. I want it to be persistent over VM resets. I thought the natural way of doing it was to create second drive and make it non-snapshotted.

Re: Snapshot independent drive in VBox?

Posted: 26. Jan 2018, 13:29
by socratis
If your second drive is located on another drive, sure. You can't be thinking in terms of directories. Only in terms of hard disks; one is not modified, the other one is. So, locate your "/home" in a different drive. Doable...