Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a virtual machine with Ubuntu server with an encrypted LVM.

I set up a virtual drive using imdisk to access its virtual hard drive without running the virtual machine, but I can't find any way to access this encrypted lvm in Windows.

Is there any Windows program that allows mounting encrypted LVMs?

share|improve this question
1  
I am not sure about the LVM layer, but the dm-crypt seem to be usable using FreeOTFE. See en.wikipedia.org/wiki/Dm-crypt –  Zoredache May 2 '12 at 21:50
    
Only if the underlying filesystem is NTFS. –  ultrasawblade May 2 '12 at 22:31
    
FreeOTFE supports dm-crypt/LUKS. I installed it but now the problem is it can only open a file (no .vdi container compatible) or a partition on my physical disk, and I only have the virtual drive created by Imdisk. Any ideas? –  elcodedocle May 3 '12 at 10:22
1  
Have you considered just rebuilding the virtual machine and setting up the system to not use LVM? –  Zoredache May 10 '12 at 17:31
    
I've considered it and I've done it. I disabled LVM encryption on the volume inside the .vdi container to avoid redundant encryption and moved the .vdi to a TrueCrypt container. Seems the best alternative so far, but I still would like to know if there is a solution to allow me mount LVM LUKS encrypted volumes inside a variable size .vdi containers. –  elcodedocle May 12 '12 at 10:04

1 Answer 1

From wikipedia dm-crypt :

dm-crypt and LUKS encrypted disks can be accessed and used under MS Windows using FreeOTFE, provided that the filesystem used is supported by Windows (e.g. FAT/FAT32/NTFS).

Encrypted Ext2, Ext3 and Ext4 filesystems are supported by use of Ext2Fsd (all ext* versions) or Ext2 Installable File System for Windows (ext2 and ext3 only) and with FreeOTFE.

See this article for how to use these products :
Mounting LUKS / dm-crypt Partitions in Microsoft Windows.

The described method works on a partition, so I wonder if it wouldn't also work on an lmdisk partition.

share|improve this answer
    
Sure about Explore2fs LVM2 support using this Virtual Volumes beta. Unfortunately it does not support dm-crypt/LUKS encryption, neither vdi virtual HDD container access or access to the virtual drive where imdisk mounts this vdi container, so it's nowhere close to a solution. Thanks anyway. –  elcodedocle May 6 '12 at 16:43
    
dm-crypt does throw a spanner into the machinery. I rewrote my answer. –  harrymc May 6 '12 at 17:14
    
all of that I've already figured it out, but how can I get to see the virtual hardrive (VDI container) partitions on the list the same way I see the physical hard drive ones? I tried Imdisk with no luck (it's a variable size container and it only works with fixed sized VDI containers). I guess I need a virtual device driver for vdi containers or something like that... –  elcodedocle May 6 '12 at 18:45
    
Do you mean to say that the problem is that FreeOTFE refuses to use the imdisk drive ? –  harrymc May 6 '12 at 19:51
    
Another question : Might using TrueCrypt instead of dm-crypt make the job easier? Hmmm, you may run into the same problem with variable vdi. You might need to give up on the variable part. –  harrymc May 6 '12 at 20:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.