Corporate Home Open Source Home
Syndicate content
Eucalyptus
4 replies [Last post]
lisiyang
Offline
Joined: 05/24/2010

Hi,all:
Recently, I am researching about how to create linux image,and I follow the orders which are in the wiki ,
#dd if=/dev/zero of=new.img bs=1M count=6000
#kvm -cdrom Fedora.iso -drive if=scsi,file=new.img,boot=on
and after install the fedora,I think I ready get the iamge,but I do not know how to get the kernel and ramdisk which are
compatible with the image ,so hope for help,thank you !

graziano
Offline
Joined: 01/14/2010
Hello, one way to be sure, is

Hello,

one way to be sure, is to try one of the pre-packaged images: once you get one that works well for you, you can reuse the kernel/initrd you uploaded. Just use the modules you find in the image (in /lib/modules) and add them to your image.

cheers
graziano

lisiyang
Offline
Joined: 05/24/2010
hello,thank you for your

hello,thank you for your help! i install fedora12 ,and i use fedora11 prepackaged kernel and ramdisk ,but it seems not help,and the instance seems running ,but i can not login in the instance, in the nc.log ,it says
[Thu Aug 5 16:50:07 2010][002551][EUCAERROR ] system(/opt/eucalyptus/usr/lib/eucalyptus/euca_rootwrap /opt/eucalyptus/usr/share/eucalyptus/add_key.pl /opt/eucalyptus/usr/lib/eucalyptus/euca_mountwrap 32256 /usr/local/eucalyptus/admin/i-42E707F3/disk /tmp/sckey.jdIrB8) failed with 256
[Thu Aug 5 16:50:07 2010][002551][EUCAERROR ] ERROR: key injection / tune2fs command failed
i do not know how to solve the problem?

lisiyang
Offline
Joined: 05/24/2010
hello, i can use the root

hello, i can use the root password which set during installing the os to login in the instance,it appears that the instance is run successfully and get the public ip and private ip.so i think the only problem is the key . the key cannot inject in the os.
who can help me to resolve the problem ? thank you very much~

graziano
Offline
Joined: 01/14/2010
hello, can you look into the

hello,

can you look into the rc.local that you have in your instance? There should be instructions to get the public key from the meta-data service and inject it as authorized_keys (thus allowing passwordless login). Since you have an image with a root login, you can check in the logs or run the sshd in debug mode or check that the authorized_keys is correct.

The error you got about key injections, is another avenue to try *if* your instance does not have an rc.local as describe above. In this case you may want to try to run the command by hand on the disk image to check what the problem is. Also you can check the httpd*log in $EUCALYPUTS/var/log/eucalyptus to see if some error ended up there.

cheers
graziano