The following prerequisites apply to all types of Linux encryption, including data drive encryption and root, swap, or system device encryption in online or offline mode. If you want to enable Online Encryption for the VM, additional prerequisites are described in Linux Online Encryption Prerequisites and Considerations.
If an entry for the Linux device you intend to encrypt already exists in the Filesystem Table (/etc/fstab
), you need to remove that entry until the encryption process is complete and the HyTrust-created clear text path to the device is available. If you reboot the device after encryption with the /etc/fstab
entry still pointing to the original device path, the system may hang because the encrypted version of the device will fail the filesystem check. For details, see Automatically Mounting Linux Filesystems.
We recommend that you partition the disk before it is encrypted. When DataControl encrypts a disk it writes a private region at the start of the disk that contains information that allows DataControl to identify which keys are associated with which partition.
For example, let's say you have 2 non-partitioned disks, /dev/sdb
and /dev/sdc
, where /dev/sdc
is encrypted by DataControl. If you remove /dev/sdb
and reboot the VM, /dev/sdc
will be renamed /dev/sdb
and the association between the keys and the disk will become invalid. At that point access to the encrypted data will be lost.
Now let's say you have the same set up as before but you partition disk /dev/sdc
and then you encrypt the /dev/sdc1
partition. DataControl adds a UUID (Universally Unique Identifier) in the private area at the start of the /dev/sdc
disk that associates the /dev/sdc1
partition with its encryption keys. When you remove /dev/sdb
and reboot the VM, the encrypted partition /dev/sdc1
will be renamed /dev/sdb1
, but the UUID does not change. In this case, DataControl can use the UUID to match the encryption keys to the partition and the data remains accessible
even after the partition name has changed.
Important: | If you want to resize a partition after you have encrypted it with DataControl, there are additional steps you need to take. For more information, see Disk Size Management in Linux. |
Make sure the Linux VM has access to the following Linux packages and their dependencies:
Encryption Type |
Required Packages |
|||
---|---|---|---|---|
All Linux encryption (data drives and system devices) |
device-mapper OpenSSL
|
|||
Linux root, swap, or system device encryption
|
busybox
dracut-network dropbear EPEL-release hashalot OpenSUSE |
|||
Linux online encryption (data drives and system devices) |
dkms gcc kernel-devel kernel-headers |