Snapshot independent drive in VBox?

This is for discussing general topics about how to use VirtualBox.
Post Reply
Lapsio
Posts: 13
Joined: 24. Jun 2017, 17:15

Snapshot independent drive in VBox?

Post 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?
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Snapshot independent drive in VBox?

Post 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?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Lapsio
Posts: 13
Joined: 24. Jun 2017, 17:15

Re: Snapshot independent drive in VBox?

Post 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.
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Snapshot independent drive in VBox?

Post 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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply