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] Problem with creating domU

To: Arsen Hayrapetyan <ahairape@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Problem with creating domU
From: Andrej Radonic <andrej.radonic@xxxxxxxx>
Date: Wed, 19 Jul 2006 17:45:26 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 19 Jul 2006 08:45:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.58.0607191555030.8612@xxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <Pine.LNX.4.58.0607191555030.8612@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)
Arsen Hayrapetyan schrieb:
I am tring to create domU (being booted into dom0). I have created the file /vm1disk and populated it with the relevant directories of installed Linux (the same Linux which I have on dom0). I have started the xend daemon and it has started mormally (I have checked the /var/log/xend.log).
I have also connected the loop1 loop device to the vm1disk file:
"losetup /dev/loop0 /path/to/file".

Then I have created the following conf file (/etc/xen/vm1conf):

==============begin=======================
kernel = "/boot/vmlinuz-2.6.11-xenU"
memory = 128
name = "alpha"
nics=1

#disk = [ 'phy:sda5,sda1,w' ]
#disk = [ 'file:/vm1disk, sda1,w' ]
disk = [ 'phy:loop1, sda1 ,w' ]

root = "/dev/sda1 ro"
extra = "3"
===============end======================

When I am issuing the following command:
"xm create /etc/xen/vm1conf -c",
it dies with:
'Using config file "/etc/xen/vm1conf".
Error: Error creating domain: vbd: Device not found:  sda1'

I am getting the same error when I use "disk = [ 'file:/vm1disk, sda1,w' ]"


Arsen,

you don't have to mount or losetup anything. In fact it will cause Xen to not start the domain.

Your "file" line looks okay, except you should eliminate the blank before sda1 (syntax problem?). Also check that /etc/fstab in your guest-image specifies sda1 as the root device.

Bye,

Andrej

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

<Prev in Thread] Current Thread [Next in Thread>