[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Convert CentOS system to Xen image?



> Great!
> 
> Now
> you should edit kernel command line
> and specify new root fs path.
> 
> What bootloader to you use?
> 
> Presuming you use GRUB:
> 
> 
> 1. press e in the GRUB bootprompt
> 2. Choose kernel line
> 3. Press e again
> 4. Change root=/dev/ida/c0d0p1 arg to root=/dev/hda1
> 5. add parameter init=/bin/sh
> 6. press b to boot
> 7. when you will get shell prompt do
> mount -t proc proc /proc
> mount -o rw,remount /
> mount -a 
> vi /etc/fstab
> 
> and here change /dev/ida/c0d0pXXXX to /dev/hdaXXXX
> 
> also you can use sed instead of vi:
> 
> sed -i s@/dev/ida/c0d0p@/dev/hda@ /etc/fstab
> 
> 8. umount -a
> 9. continue booting process
> exec /sbin/init
> 

Problem is I don't even get to grub. After I create the new machine in
xen, select the image file for the hard disk, set the other settings, it
gives me a popup that no kernels can be found. Did I miss some steps?

Thanks,
James


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.