Weblog entry #4 for itsec
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
[ Parent | Reply to this comment ]
[ 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.
[ Parent | Reply to this comment ]
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 ]
[ 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?
[ Parent | Reply to this comment ]
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 ]
[ 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.
[ Parent | Reply to this comment ]
cmdln
[ Parent | Reply to this comment ]