WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] /dev/sda2 does not exist. Dropping to a shell! (Dom0: Ub

To: "Fajar A. Nugraha" <list@xxxxxxxxx>
Subject: Re: [Xen-users] /dev/sda2 does not exist. Dropping to a shell! (Dom0: Ubuntu 10.10, DomU: Ubuntu 10.10)
From: Hitesh Khandelwal <hitesh.iitk@xxxxxxxxx>
Date: Wed, 16 Mar 2011 20:05:55 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 16 Mar 2011 17:07:26 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=fpYiVivRjbDb+StArgzW8lMsizzZvoijnGaIO7trhfc=; b=v8ZrkMbkdwoXGd5+MXTpYSsYCTe7+CwbQw9EjXGkca6a48bsdxFKW2lEkgBurVNsmD E4TnauGSODfnXcPIpw/VqYo07sIcXGRX2kSwU504SgeN2hZ9sFz6Y8/bNY8Mo0GcP70h fx5Zc84enhtsscibYBp33P/5v5WMW5nHIEMJw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=XCcMiclE7L54JVHB6UrGmK9/6wXxQskjO2hPf0EY5dgnr8IcIL326ELAwvDO/6wWKS 8oa4rqkwTPIMaycfHs6FGFMjfdySZd+q9AyuJ69jWiuHKjR7VfcTUi3PrsFRWyyBREnl 6DilhSdCo2/ntOkOShw0D6PFEtyGTLM2uMPWY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTind6ORtJShh_NsP9K5-hfnp+SKUZuSt09FGO5fu@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTi=RfjjzvvbDPidnm827r_CC2yaAADV-jeSCJVsY@xxxxxxxxxxxxxx> <AANLkTimtmno-0NyUV94iFJ1gwWth-cftdqdsc+sGqkP=@xxxxxxxxxxxxxx> <AANLkTik-7Y30h9x4M-UFOai6PuNPn7gaZmBKV3OPa7zj@xxxxxxxxxxxxxx> <AANLkTi=uQ5gswzir=xPw8MTEMzxJarJ+ZJHrGo+PifZz@xxxxxxxxxxxxxx> <AANLkTikb8cu5pK+Fe_1ngJ6AMevZ=NVEN5WpmmJzYPTc@xxxxxxxxxxxxxx> <AANLkTind6ORtJShh_NsP9K5-hfnp+SKUZuSt09FGO5fu@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

I works now, I put the hvc0.conf file in /etc/init.

I am sorry for the miscommunication, I meant domU boots when I use xen-tools+pygrub to create and boot a VM. Here is the final version of my .cfg file:

kernel = '/boot/vmlinuz-2.6.32.27'
ramdisk = '/boot/initrd-2.6.32.27.img'
vcpus       = '1'
memory      = '512'
name        = 'cloud-vm07'
vif         = [ 'ip=128.10.130.192,mac=00:16:3E:AB:B1:FD,bridge=eth2' ]
disk        = [ 'file:/home/hkhande/xen-image/domains/cloud-vm07/disk.img,xvda1,w',
                  'file:/home/hkhande/xen-image/domains/cloud-vm07/swap.img,xvda2,w' ]
extra = "root=/dev/xvda1 ro"

Thanks for your help!
Hitesh


On Fri, Mar 11, 2011 at 3:18 AM, Fajar A. Nugraha <list@xxxxxxxxx> wrote:
On Fri, Mar 11, 2011 at 11:56 AM, Hitesh Khandelwal
> I unsuccessfully tried adding extra = 'console=hvc0' and extra =
> 'console=tty'.

What does domU's /boot/grub/grub.cfg (or menu.lst) show? If you don't
have any "console" argument there, you shouldn't need any console
argument here.

> Begin: Running /scripts/local-bottom ... done.
> done.
> Begin: Running /scripts/init-bottom ... done.
> init: ureadahead main process (803) terminated with status 5

Looks like you just need a login prompt there. If you previously
configure it for ssh access, you should be able to access domU via
ssh.

See this log

[    0.000000] console [hvc0] enabled

it might be a simple matter of creating /etc/init/hvc0.conf with the
content I sent earlier. Although I'm a little confused. If you don't
have a login prompt now, you shouldn't have login prompt when booting
with pygrub either.

Try comparing the boot log when booting with pygrub vs dom0 kernel
(you might need to edit grub.cfg first to remove "quiet" and "rhgb"),
see where the difference is.

--
Fajar

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