Weblog entry #4 for itsec

lost in xen-create-image
Posted by itsec on Wed 23 Jan 2008 at 22:30
Why does xen-create-image not work? It always worked perfectly...

It says that an existing kernel would not exist...

# xen-create-image --size=4GB --swap=512MB --ip=1.2.3.4 --hostname=myDomU
The kernel image we're trying to use does not exist.
The image is - '/boot/vmlinuz-2.6.18-5-686'
Aborting
Logfile produced at:
/var/log/xen-tools/myDomU.log

# ls -als /boot/vmlinuz-2.6.18-5-686
1236 -rw-r--r-- 1 root root 1260371 2007-12-24 22:36 /boot/vmlinuz-2.6.18-5-686

# id
uid=0(root) gid=0(root) Gruppen=0(root)

Grrr
The kernel is there and I was logged in as root...

The logfile contains the same as above:

The kernel image we're trying to use does not exist.
The image is - '/boot/vmlinuz-2.6.18-5-686'
Aborting

I am lost...

 

Comments on this Entry

Posted by mwr (24.158.xx.xx) on Thu 24 Jan 2008 at 03:33
[ Send Message | View Weblogs ]
'uname -r' on my Xen box at work returns '2.6.18-4-xen-686' -- you sure you're running a Xen kernel, and if not, might that be the problem?

[ Parent | Reply to this comment ]

Posted by Steve (82.32.xx.xx) on Thu 24 Jan 2008 at 06:56
[ Send Message | View Steve's Scratchpad | View Weblogs ]

Check the kernel= + initrd= in /etc/xen-tools/xen-tools.conf. Make sure they are both xen-versions of the kernel - not like the one you're using above.

If that doesn't help mail me directly.

Steve

[ Parent | Reply to this comment ]

Posted by namit (83.70.xx.xx) on Sat 1 Mar 2008 at 00:25
[ Send Message ]
I have same problem and have checked kernel and they are xen versions.


xen2:~# xen-create-image -hostname=123 -ip=192.168.0.50 -netmask=255.255.255.0 -gateway=192.168.0.1 -passwd
The kernel image we're trying to use does not exist.
The image is - '/boot/vmlinuz-2.6.18-4-xen-686'

xen2:~# ls /boot/vmlinuz-2*
/boot/vmlinuz-2.6.18-4-xen-686 /boot/vmlinuz-2.6.18-5-686

xen2:~# ls /boot/vmlinuz-*
/boot/vmlinuz-2.6.18-4-xen-686 /boot/vmlinuz-2.6.18-5-686

[ Parent | Reply to this comment ]

Posted by Steve (82.32.xx.xx) on Sat 1 Mar 2008 at 00:29
[ Send Message | View Steve's Scratchpad | View Weblogs ]

Please specify the kernel with --kernel=/boot/vmlinuz-2.6.18-5-686 and see if that works?

Steve

[ Parent | Reply to this comment ]

Posted by Anonymous (83.70.xx.xx) on Sat 1 Mar 2008 at 12:16
yes that worked thats really odd anyway that will do thanks

also if i pass the --passwd is there any way of filling that in automaticaly tried


echo -n 'passwordtemp\n' | xen-create ..... --passwd

[ Parent | Reply to this comment ]

Posted by Steve (82.32.xx.xx) on Sat 1 Mar 2008 at 12:21
[ Send Message | View Steve's Scratchpad | View Weblogs ]

That is odd, but good to know it worked. I guess I'd suggest you set that in the config file via "kernel = /boot/vmlinuz-2.6.18-5-686".

As for the password, no you can't set it magically like that I'm afraid. (Not my fault, a limitation of the passwd command generally.

I tend to not set passwords, and use the skellington file support (see manpage) to automatically add an SSH key to new images - so I can ssh in as root immediately then reset the password if I need to.

Steve

[ Parent | Reply to this comment ]

Posted by cmdln (208.75.xx.xx) on Fri 18 Apr 2008 at 23:34
[ Send Message ]
Thats right, I had the same issue. I could specify the kernel as an option but if you have the path to the kernel enclosed in ' in xen-tools.conf it said it could not find it. Simply removing the ' from that line in xen-tools.conf corrected the issue.

cmdln

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search