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] New domains do not show up with "xm list"

To: Egberto Monteiro <egbertomonteiro@xxxxxxxxx>
Subject: Re: [Xen-users] New domains do not show up with "xm list"
From: Priya <pbhat@xxxxxxxxxxxx>
Date: Wed, 29 Sep 2010 16:44:26 -0400
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 29 Sep 2010 13:46:27 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; bh=/HFFNgSwaBistNgn/iqbzCV7dj2klvq9ETZW8gcl7F4=; b=SLtduCt9SprnE48L/ZA4BYmflvonPgTYr4MCe4Nl9Cp6NE6bvM/9cYpwVqjXh+MQhT 2Pq/pLtSaX/6trIXCxOxv2KtCf9TNo3Z+EEvCkUY8CbxLijX68wsPh/Yk4ashs+D6Gmh m+8yeFqxfRa04Ij7H1TvPJfORql+RYVw42du8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=HpQujFp3ritCLFKIm9jLohhwmpqymqc0d72Py+NnZQkY+wQhsn9LT0tm+tKYiFwGA8 y+fVqI7ZruAkgUcCnWMc3rw8aCl9Beh8nDLwWHZH5W/DwqBrENTqz5EX08q24rrHekv/ I4hb9P4b9b2fS8Mq6EOZJHLioqRgcIZKhtTWk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4CA3A03F.8040200@xxxxxxxxx>
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: <AANLkTikmK+HvRzWvCnoKekq8GknXPQ3HVkocs7FJ_euC@xxxxxxxxxxxxxx> <4CA3A03F.8040200@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hey guys!

So the entire output of "xm create -c <domU.cfg> is in attachment. The part that is showing the issue is towards the end:

VFS: Cannot open root device "hda1" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
ca00           59997 xvda driver: vbd

Following is the output of my disks by id:
root@XenOpen:/boot# ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root  9 2010-09-29 10:31 ata-WDC_WD3200AAKS-75L9A0_WD-WMAV28284320 -> ../../sda
lrwxrwxrwx 1 root root 10 2010-09-29 10:31 ata-WDC_WD3200AAKS-75L9A0_WD-WMAV28284320-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2010-09-29 10:31 ata-WDC_WD3200AAKS-75L9A0_WD-WMAV28284320-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2010-09-29 10:31 ata-WDC_WD3200AAKS-75L9A0_WD-WMAV28284320-part5 -> ../../sda5
lrwxrwxrwx 1 root root  9 2010-09-29 10:31 scsi-SATA_WDC_WD3200AAKS-_WD-WMAV28284320 -> ../../sda
lrwxrwxrwx 1 root root 10 2010-09-29 10:31 scsi-SATA_WDC_WD3200AAKS-_WD-WMAV28284320-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2010-09-29 10:31 scsi-SATA_WDC_WD3200AAKS-_WD-WMAV28284320-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2010-09-29 10:31 scsi-SATA_WDC_WD3200AAKS-_WD-WMAV28284320-part5 -> ../../sda5
lrwxrwxrwx 1 root root  9 2010-09-29 10:31 wwn-0x50014ee0ac054885 -> ../../sda
lrwxrwxrwx 1 root root 10 2010-09-29 10:31 wwn-0x50014ee0ac054885-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 2010-09-29 10:31 wwn-0x50014ee0ac054885-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 2010-09-29 10:31 wwn-0x50014ee0ac054885-part5 -> ../../sda5

I changed the "hda1" to "sda2" in my cfg file, so now it looks like this:
kernel = "/boot/vmlinuz-2.6.32.21-xen"
memory = 128
name = "MyLinux"
root = "/dev/sda2 ro"
disk = [ "file:/boot/initrd.img-2.6.32.21-xen,hda1,w" ]

And now when I do "xm create" I get:
root@XenOpen:/etc/xen# xm create -c mylinux.cfg 
Using config file "./mylinux.cfg".
Started domain MyLinux (id=14)
Domain has already finished
Could not start console

And still no addition to "xm list" obviously!... What's the correct value that I should use for the "root" parameter?

The contents of /etc/fstab are:
root@XenOpen:/boot# cat /etc/fstab 
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=44f6c489-7214-4402-a71b-1b70f6031acf /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=e4e47af4-4513-4557-a802-e71bcebe9395 none            swap    sw              0       0


Thanks!

On Wed, Sep 29, 2010 at 4:23 PM, Egberto Monteiro <egbertomonteiro@xxxxxxxxx> wrote:
Try "xm create -c <domu.cfg>" and show us what occured.

Att,
Egberto Monteiro


Em 09/29/2010 05:08 PM, Priya escreveu:
Hello people!

This is a strange error and I am sure I am missing something really basic. I installed Xen 4.0.1 on Ubuntu 10.04, and only have command line access to my domain-0.

Every thing seems to be working okay. My "xm info" output is as follows:
--------------------
root@XenOpen:/etc/xen# xm info
host                   : XenOpen
release                : 2.6.32.21-xen
version                : #2 SMP Mon Sep 27 10:23:06 EDT 2010
machine                : x86_64
nr_cpus                : 2
nr_nodes               : 1
cores_per_socket       : 2
threads_per_core       : 1
cpu_mhz                : 2992
hw_caps                : bfebfbff:20100800:00000000:00000940:0408e3fd:00000000:00000001:00000000
virt_caps              : 
total_memory           : 3931
free_memory            : 3048
node_to_cpu            : node0:0-1
node_to_memory         : node0:3048
node_to_dma32_mem      : node0:2984
max_node_id            : 0
xen_major              : 4
xen_minor              : 0
xen_extra              : .1
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p 
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : unavailable
xen_commandline        : dummy=dummy dom0_mem=832M
cc_compiler            : gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 
cc_compile_by          : root
cc_compile_domain      : 
cc_compile_date        : Mon Sep 27 11:36:56 EDT 2010
xend_config_format     : 4

_________________

I tried to create PV domains using the following configuration file:
root@XenOpen:/etc/xen# more mylinux.cfg 
kernel = "/boot/vmlinuz-2.6.32.21-xen"
memory = 128
name = "MyLinux"
root = "/dev/hda1 ro"


The problem is that when I try to create new PV domains, I get a message saying that they have been created but they don't show up when I do a subsequent xm list:

root@XenOpen:/etc/xen# xm create mylinux.cfg 
Using config file "./mylinux.cfg".
Started domain MyLinux (id=11)
root@XenOpen:/etc/xen# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   832     2     r-----    151.2
Could someone please throw some light on what in the world is going on...please!


--
Priya Bhat


_______________________________________________ Xen-users mailing list


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



--
Priya Bhat


Attachment: xm_create_output.txt
Description: Text document

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