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

Re: [Xen-users] /dev/sda2 does not exist. Dropping to a shell! (Dom0: Ubuntu 10.10, DomU: Ubuntu 10.10)


  • To: "Fajar A. Nugraha" <list@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>


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

 


Rackspace

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