What's the interaction between LUKS and VirtualBox dynamically allocated storage disks?

Discussions about using Linux guests in VirtualBox.
Post Reply
Lehman01
Posts: 1
Joined: 22. Mar 2018, 14:57

What's the interaction between LUKS and VirtualBox dynamically allocated storage disks?

Post by Lehman01 »

LUKS is the manner in which most Linux-based operating systems (such as Ubuntu) achieve full disk encryption.

If you install a Linux guest (let's say for the sake of discussion, Ubuntu) using VirtualBox's dynamically allocated storage, how does that interact with LUKS? As the dynamically allocated storage expands, is the expansion encrypted? Or is only the disk at the time of creation encrypted?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: What's the interaction between LUKS and VirtualBox dynamically allocated storage disks?

Post by mpack »

There is no connection between the two, just as there is no connection between LUKS and a Western Digital drive on a physical PC.

If the guest OS asks the hardware to store data, the hardware stores data. End of story. The hardware (virtual or not) doesn't care what the data is.

Probably you have some kind of misunderstanding of what dynamic storage is. E.g. that it works at a sector level and knows nothing about files, file systems, partitions or whatever.
Post Reply