Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jun 17, 2015 6:29 am 
Offline
Newbie

Joined: Wed Jun 17, 2015 6:17 am
Posts: 2
I'm trying to replicate our current setup with XEN (i.e. LUKS encrypted root disk) with a KVM enabled node, but run into problems when I try to luksFormat the partition/disk

It seems required crypto API's are either not compiled into the finnix KVM kernel, or module loading does not work.

Example session:
Code:
# cryptsetup  luksFormat -v /dev/sdc3

WARNING!
========
This will overwrite data on /dev/sdc3 irrevocably.

Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
device-mapper: reload ioctl on  failed: No such file or directory
Failed to open temporary keystore device.
device-mapper: remove ioctl on temporary-cryptsetup-3692 failed: No such device or address
device-mapper: reload ioctl on temporary-cryptsetup-3692 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-3692 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-3692 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-3692 failed: No such device or address
device-mapper: remove ioctl on temporary-cryptsetup-3692 failed: No such device or address
Command failed with code 5: Input/output error


Also, the kernel modules directory seem to be mismatched to the finnix KVM kernel:
Code:
Linux finnix 3.16.1-kvmnode #1 SMP Mon Apr 27 15:07:17 EDT 2015 x86_64 GNU/Linux


Code:
# ls -l /lib/modules/
total 0
drwxr-xr-x 1 root root 220 Jun 17 10:13 3.10.0-1-amd64-finnix
drwxr-xr-x 1 root root 380 Sep 15  2013 3.10.0-1-x86-finnix


Code:
# modprobe dm_crypt
libkmod: ERROR ../libkmod/libkmod.c:554 kmod_search_moddep: could not open moddep file '/lib/modules/3.16.1-kvmnode/modules.dep.bin'


Top
   
PostPosted: Wed Jun 17, 2015 5:23 pm 
Offline
Newbie

Joined: Tue Apr 14, 2015 7:05 pm
Posts: 3
I have an open ticket regarding this.

Looks like finnix in KVM has the wrong modules under /lib/modules and they don't match the current kernel.

I have the LUKS setup myself so I don't want to take the risk in moving to KVM if I can't fix any issues in finnix.

There's a workaround (if you don't have the disk allocated to 100%), just deploy a debian/ubuntu imate in a 1GB disk and boot from there (apt-get install cryptsetup-bin of course after initial boot).


Top
   
PostPosted: Wed Jun 17, 2015 5:29 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Ignore the modules - they are not used, anyhow.

Up next (within a few days), is an updated Finnix image, and kernel - which we will make sure has all of the needful.

Thanks,
-Chris


Top
   
PostPosted: Thu Jun 18, 2015 6:24 am 
Offline
Newbie

Joined: Wed Jun 17, 2015 6:17 am
Posts: 2
tcpdump wrote:
There's a workaround (if you don't have the disk allocated to 100%), just deploy a debian/ubuntu imate in a 1GB disk and boot from there (apt-get install cryptsetup-bin of course after initial boot).


That's what i did for a new instance, and I wrote a memo to myself to never fully allocate the diskspace in the future, to be flexible in situations such as this ;)


caker wrote:
Ignore the modules - they are not used, anyhow.

Yes, i figured that most of the stuff was compiled into the kernel. Looking forward to the new finnix release!

Thanks for the quick reply!


Top
   
PostPosted: Fri Sep 04, 2015 6:33 pm 
Offline
Junior Member

Joined: Thu Apr 16, 2015 9:44 am
Posts: 21
Hello, not sure if this is the same problem I am currently having but after creating my Linode, I converted it to KVM. Later I wanted to connect my linode in rescue mode, but when I try to login at finnix, it always fails and says "login incorrect". I know my user crediantials are correct.

Should I go back to Xen?


Top
   
PostPosted: Fri Sep 04, 2015 6:36 pm 
Offline
Junior Member

Joined: Thu Apr 16, 2015 9:44 am
Posts: 21
In fact, I'll delete that Linode and go back to Xen. I want to fresh start tomorrow morning and no need to keep this KVM thingy live.

Thanks.


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


Who is online

Users browsing this forum: No registered users and 1 guest


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