Problem with /dev/xvda
Hi There,
I followed this howto and the reason I signed up to your site is to work out why this is happening. Im sure that using the .img file for xen im downloading from stacklet will resolve my problem, but my curiosity is just getting the better of me.
I have followed hundreds (spending around 8 hours yesterday trying to resolve this) of howtos.
This one I followed - http://www.howtoforge.com/centos_5.0_xen gets me the furthest. I get through the text based centos prompt and then start to install centos and when the installer wants to spin up the disk and get it ready to format it gives me the error:
"Input/output error during read on /dev/xvda" which from what I learnt means that the disk which centos is trying to install onto cannot be found/used.
I tried used "dd" to create a disk filled with zeros and that didnt work, tried formatting the drives (drive.img file) as ext3 and that didnt work cant for the lift of me work out why and googling my ass off doesnt get me an answer either.
If you could shed some light, that would be wonderful!
Cheers,
Mitch
We don't use virt-install to create images so this is a guess on my part. In that howto it mentions a xen config file with the line:
disk = [ 'tap:aio:/vm/vm01.img,xvda,w', ]
Yet the stock xen kernel 2.6.18 on CentOS uses sda as the root device. I am pretty sure that is your problem but I have no idea how to override that in the tool you are using, i.e. I am not sure you can simply edit that text file to get things working.
Try booting the CentOS image you downloaded from here -- you will see that the root device is /dev/sda and the root partition is /dev/sda1.
Thankyou for your reply. I got the image working using the .pygrub.cfg (the other one doesnt work for some reason.)
I am wanting to build my own centos image using the methods I like, but cant seen to create a config file that allows me to boot to a centos ISO. I replied to your email and would love to chat over skype/gmail chat if that is possible.
Cheers,
mitch