- Notifications
You must be signed in to change notification settings - Fork2.2k
how to start microvm with LUKS encrypted file system(rootfs.ext4) using firecracker#4327
-
I have created an encrypted filesystem(rootfs.ext4) using LUKS. Trying to start microvm by using LUKS encrypted file system with firecracker. Is it possible to start microvm with encrypted file system..? Can anyone suggest on this. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 3 comments 1 reply
-
Thanks for the interest in Firecracker :) We haven't tried booting a microVM with an encrypted rootfs, so I am not sure if it would work. Firecracker microVMs do not use a boot-loader to boot. I am not sure whether You should definitely be able to use an un-encrypted root filesystem with additional encrypted drives which you unecrypt at boottime. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hello, @bchalios do you have any recommendations on how to start microvms with encrypted file system ? Thanks |
BetaWas this translation helpful?Give feedback.
All reactions
-
I am in the same boat. Any resolution on this? |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hey, I think the solution proposed by bchalios is the way to go but I'm not aware of anybody actually implementing it:
Note that the initrd is copied to the VM memory, consuming it. You can technically do the same with a separate (unencrypted) boot disk that prepares the system and then delegates to the other init process. If you manage to get the setup working, don't forget to provide the details here for the community! Update: the kernel documentation has a nice guide on what is the initrd and how to make one:https://docs.kernel.org/admin-guide/initrd.html . It's only missing the LUKS mounting part, but there's a complete example on how to pivot_root to a new filesystem. |
BetaWas this translation helpful?Give feedback.