LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-07-2008, 02:18 PM   #1
Reefcrazed
Member
 
Registered: May 2004
Distribution: Debian Stretch
Posts: 144

Rep: Reputation: 15
XEN 3.3 on OpenSuse 10.3 - Waiting for /dev/sda2 to appear


XEN 3.3 install

Ok, I give up and cry "mercy" !

After 3 days on this I am stuck and the README is no help it seems. I did everything like I 'think' the readme tells me to.

Basically I install all of the dependencies first, which there is quite a few. I download the XEN 3.3 source and unpack it.

I then do make world followed by make install. I do not do make dist as it reads from the readme as being 'optional'. All really goes well it seems and the proper files are under the /boot directory but this is where it takes a dive. I edit the menu.lst and add something like this.

Code:
title Xen 3.3
     root (hd0,1)
     kernel /boot/xen-3.3.gz console=vga
     module /boot/vmlinuz-2.6.18.8-xen root=/dev/sda2 ro console=tty0
     module /boot/initrd-2.6.18.8-xen
I make my mkinitrd.

After the machine tries to boot I eventually get a

Waiting for device /dev/sda2 to appear

I have been throught the Xensource forum looking for answers and it just does not seem like a very common problem. I have done this same procedure from within an ESXi virtual machine and with my Dell Laptop with the same results and that leads me to believe I am doing something totally wrong.

Last edited by Reefcrazed; 10-07-2008 at 02:20 PM.
 
Old 10-07-2008, 02:29 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Why are you using this:

Quote:
root=/dev/sda2
I would suggest that you try using something like:

Code:
root=/dev/sda1
unless there is a particular reason for using sda2? Surely in XEN you have defined a Virtual harddrive for use by the VM? Or are you trying to assign a physical partition on your physical harddrive to your VM?
 
Old 10-07-2008, 02:33 PM   #3
Reefcrazed
Member
 
Registered: May 2004
Distribution: Debian Stretch
Posts: 144

Original Poster
Rep: Reputation: 15
I do not understand your remark ?

/dev/sda2 is my root partition, that is what I am telling the Xen kernel to use for root. It clearly says to do this in the README.
 
Old 10-07-2008, 02:39 PM   #4
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
is not /dev/sda2 the root partition of your host machine? on your physical harddrive?
 
Old 10-07-2008, 02:42 PM   #5
Reefcrazed
Member
 
Registered: May 2004
Distribution: Debian Stretch
Posts: 144

Original Poster
Rep: Reputation: 15
Yes it is and I tried /dev/sda1 for kicks with the same results.

You drop to a minimal shell prompt and the /dev directory shows not physical disk so i am guessing something is wrong with my initrd.

Last edited by Reefcrazed; 10-07-2008 at 02:46 PM.
 
Old 10-07-2008, 02:45 PM   #6
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
And since XEN is a VM, would it not make sense to you that it have a virtual harddrive? Unless I have the wrong end of the stick? Have you not defined a virtual harddrive?
 
Old 10-07-2008, 02:47 PM   #7
Reefcrazed
Member
 
Registered: May 2004
Distribution: Debian Stretch
Posts: 144

Original Poster
Rep: Reputation: 15
You have the wrong end of the stick. XEN is a kernel just like the Linux kernel but it is a hypervisor for running VM's.
 
Old 10-07-2008, 02:49 PM   #8
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Ok, but can XEN use the same root filesystem as your physical machine? I didn't think that would either be possible or desirable.
 
Old 10-07-2008, 02:52 PM   #9
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
Try changing it to /dev/hda2.
 
Old 10-07-2008, 02:52 PM   #10
Reefcrazed
Member
 
Registered: May 2004
Distribution: Debian Stretch
Posts: 144

Original Poster
Rep: Reputation: 15
Of course it does. Basically it loads the XEN kernel just like a normal Linux kernel. Once it boots you can then create your virtual machines and everything is stored in the normal file system. I do believe the images for the XEN domains are stored under /var

I have run XEN for quite some time, this is just a newer version and I normally do not compile it from source.

Last edited by Reefcrazed; 10-07-2008 at 02:53 PM.
 
Old 10-07-2008, 02:56 PM   #11
Reefcrazed
Member
 
Registered: May 2004
Distribution: Debian Stretch
Posts: 144

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Total-MAdMaN View Post
Try changing it to /dev/hda2.
Same thing

Code:
Want me to fall back to /dev/sda2 ? (Y/n)
not found -- exiting to /bin/sh
sh: no job control in shell
 
Old 10-07-2008, 03:01 PM   #12
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
As a troubleshooting exercise, will you just check the output of
Code:
df -h
and see what device your root partition is mounted on?
 
Old 10-07-2008, 03:30 PM   #13
Reefcrazed
Member
 
Registered: May 2004
Distribution: Debian Stretch
Posts: 144

Original Poster
Rep: Reputation: 15
Oh yeah did the normal.

mount

and

df -h
 
Old 10-07-2008, 03:35 PM   #14
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Hmmm. Bit of a pain. :$ Have you any option to use another version or binary of XEN? Or do you need this one?
 
Old 10-07-2008, 03:37 PM   #15
Reefcrazed
Member
 
Registered: May 2004
Distribution: Debian Stretch
Posts: 144

Original Poster
Rep: Reputation: 15
XEN 3.3 is when they started utilizing Powernow and Enhanced speed-stepping so yeah this is the version I will be running.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 9 new install - Don't understand how to use /dev/sda2 ericcarlson Fedora 1 09-07-2008 07:25 AM
mount: Mounting /dev/sda2 on /mnt failed: Invalid argument dohpaz Slackware 7 05-25-2007 02:03 AM
Install Slackware on /dev/sda2 Ruben-18 Slackware - Installation 3 04-04-2006 10:23 AM
/dev/sda2 gone?? bmayersohn Linux - Hardware 4 12-29-2005 01:32 PM
/dev/sda2 does not exist. aje Slackware 6 07-17-2005 06:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration