Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th May 2010, 03:21
mitch.sanders mitch.sanders is offline
Junior Member
 
Join Date: May 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unable To Install Centos Guest On Xen 3 Following Guide

Hi There,

I followed this howto and the reason I signed up to your site is to work out why this is happening.

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 install prompts 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/read/written.

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 life 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
Reply With Quote
Sponsored Links
  #2  
Old 9th May 2010, 17:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
Default

Which CentOS version do you use? Did you try this guide? http://www.howtoforge.com/paravirtua...tos-5.4-x86_64
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 10th May 2010, 08:39
mitch.sanders mitch.sanders is offline
Junior Member
 
Join Date: May 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Falko,

Yes I followed that guide and found that using virt-install was unsucessful due to the centos installer (on the guest) being unable to detect /dev/xvda.

So I then proceeded to create a custom config following: http://wiki.centos.org/HowTos/Xen/InstallingCentOSDomU

I am using centos 5.4 on the host and centos 5.4 installer on the guest.

I have then tried to boot using /dev/sda using the following xen config and ks-minimal.cfg config.

Code:
kernel = "/var/www/html/centos54/os/images/xen/vmlinuz"
ramdisk = "/var/www/html/centos54/os/images/xen/initrd.img"
name = "www2-test"
extra = "text ks=http://123.100.229.108/centos54/minimal-ks.cfg"
memory = 2048
disk = [ "tap:aio:/vms/www2/disk01-test.img,sda,w" ]
vif = [ "mac=00:16:36:4f:3b:3d,bridge=xenbr1,script=vif-bridge" ]
vcpus = 8
#bootloader = "/usr/bin/pygrub"
on_reboot = "destroy"
on_crash = "destroy"
contents of http://IP-Of-Webserver/minimal-ks.cfg

Code:
install
url --url http://IP-Of-Webserver/centos54/os/
CentOS-5.4-x86_64-bin-DVD.iso is mounted to /var/www/html/centos54/os and is publicly accessible.

The kernal and ramdisk are used directly from the mounted ISO.

Using /dev/sda and following the prompts gets the installer to:

Code:
+------------+ No Drives Found +-------------+                 
|                                                               |                 
| An error has occurred - no valid devices     |                 
| were found on which to create new file       |                 
| systems. Please check your hardware for    |                 
| the cause of this problem.
Where-as /dev/xvda brings back a similar error of:

Code:
Input/output error during read on /dev/xvda
I have spent close to 16 hours googling, trying new things and running around after guide after guide. If you could shead some light that would be amazing!
Reply With Quote
  #4  
Old 10th May 2010, 09:04
mitch.sanders mitch.sanders is offline
Junior Member
 
Join Date: May 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

2.6.18-164.15.1.el5xen is the kernel on the host.
Reply With Quote
  #5  
Old 10th May 2010, 09:05
mitch.sanders mitch.sanders is offline
Junior Member
 
Join Date: May 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I wrote a long post with heaps of detail that said it needed to be moderated as well as the above post. Not sure where it went (was probably cause it had links in it.)
Reply With Quote
  #6  
Old 11th May 2010, 14:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,703 Times in 2,546 Posts
 
Default

Quote:
Originally Posted by mitch.sanders View Post
I wrote a long post with heaps of detail that said it needed to be moderated as well as the above post. Not sure where it went (was probably cause it had links in it.)
That was our spamfilter. I'm sorry about that - I've just approved your post.

And
Code:
disk = [ "tap:aio:/vms/www2/disk01-test.img,xvda,w" ]
doesn't work?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XEN how do i install guest OS from ISO or CD-ROM The General Installation/Configuration 5 25th October 2010 05:35
3rd try to install centos and get the same error everytime: happz Installation/Configuration 5 18th June 2009 23:06
libWand.so.10 error Taxick Installation/Configuration 8 3rd May 2009 01:27
Install ISPConfig on CentOS Server, in brief gfts Tips/Tricks/Mods 11 4th April 2006 08:29
Notes for CentOS 4.1 install felipegeek Installation/Configuration 6 19th December 2005 10:21


All times are GMT +2. The time now is 05:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.