Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Aug 31, 2010 6:09 am 
Offline
Newbie

Joined: Tue Aug 31, 2010 5:33 am
Posts: 4
Hi.

I'm brand new to Linode, and I've set mine up using Arch Linux i686 with kernel "Latest 2.6 Paravirt (2.6.32.16-linode28)"

I want to encrypt a disk with cryptsetup/LUKS, using the command:
Code:
cryptsetup --debug luksFormat /dev/xvdc -c aes-xts-plain -h sha512 -s 512


but it fails with:
Code:
Check that kernel supports aes-xts-plain cipher


It doesn't fail if I use CBC mode: aes-cbc-plain, and XTS can't be found in /proc/crypto. The stock Arch kernel (on my laptop) supports XTS. How can I get it to work on my Linode?


Top
   
 Post subject:
PostPosted: Tue Aug 31, 2010 7:21 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
On linode the kernel comes from xen aka the Latest Paravirt kernel not from the distribution, if you want your own kernel check here http://library.linode.com/advanced/pv-grub-howto (there isn't a guide for arch so you'll have to adapt the commands to your os)


Top
   
 Post subject:
PostPosted: Tue Aug 31, 2010 9:56 am 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
Our kernels support loading modules. If you can get the cipher you want to build as a module (and appease the Linux kernel gods correctly), our kernel might let you modprobe it.

Start with: http://www.linode.com/src/

Might be easier to just revert to your distribution's kernel, but I seem to recall issues with Arch's domU kernel. Can't provide any evidence, but Arch is sticking out in my brain.

_________________
Disclaimer: I am no longer employed by Linode; opinions are my own alone.


Top
   
 Post subject:
PostPosted: Tue Aug 31, 2010 5:07 pm 
Offline
Newbie

Joined: Tue Aug 31, 2010 5:33 am
Posts: 4
Hmm. Well I'm not really well-versed in compiling kernel modules, but I managed to get my xts.ko module by downloading the Linode kernel sources and changing in .config to:
Code:
CONFIG_CRYPTO_XTS=m

then:
Code:
make modules
make modules_install


BUT:
Code:
# modprobe xts
FATAL: Module xts not found.

# insmod /lib/modules/2.6.32.16-linode28/kernel/crypto/xts.ko
insmod: error inserting '/lib/modules/2.6.32.16-linode28/kernel/crypto/xts.ko': -1 Invalid module format


Code:
# dmesg
xts: no symbol version for module_layout


:(

I'd appreciate any help. Thanks all.

Would be nice if XTS mode was enabled in the stock Linode kernels.


Top
   
 Post subject:
PostPosted: Thu Apr 14, 2011 9:02 pm 
Offline

Joined: Thu Apr 14, 2011 8:39 pm
Posts: 1
You can use truecrypt instead if you are interested. Without kernel modules use the following:
Code:
-m=nokernelcrypto


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group