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 passing command-line parameters to xm create

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Problem passing command-line parameters to xm create
From: "Olivier Pernet" <o.pernet@xxxxxxxxx>
Date: Tue, 20 Jun 2006 14:24:28 +0200
Delivery-date: Tue, 20 Jun 2006 05:25:05 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=omTSHrSX4aOy70jTqRN+FXoJ7z60QnDABHGwcWlV3EgTPTI6M8++FulT+ztsnZ+K83qonc+Dmt44K8Yq6nmNS4zKii5xvnW6hqB3hRlmZBWmh3VXOJtojEOIQqc6qrlueR+v31iNfBuHVlUxPa6Molj3qTqWyJIawTLnO1kiE/k=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060620092210.GA22635@xxxxxxxxxxxxxxx>
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: <28276cf00606200212p2312b843x730cbaf48d019f9d@xxxxxxxxxxxxxx> <20060620092210.GA22635@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On 6/20/06, Pablo Javier Roca Mendez
<pablo_javier_roca_mendez@xxxxxxxxxxxxxxx> wrote:
On Tue, Jun 20, 2006 at 11:12:57AM +0200, Olivier Pernet wrote:
> Hello,

Hi!

> I'm trying to create domains using xm create by passing all the
> parameters on the command line, instead of putting them in
> /etc/xen/xmdefconfig (I'm generating them from a script).
>
> But, the very same configuration, while working when in the file,
> fails with inline parameters :
> >xm create name="domainFoo" kernel="/boot/vmlinuz-2.6-xen" memory=256
> root="/dev/sda1 ro" "disk=[ "file:/var/xen/domainFoo.img,sda1,w" ]"
> Using config file "xmdefconfig".
> Error: Device 2049 (vbd) could not be connected. Hotplug scripts not
> working.
>
> It seems that the "disk" parameter isn't parsed correctly. Can you see
> what I'm doing wrongly ?

Yes, the double quotes are interpreted by the shell.
Try surrounding them with single quotes like this instead:
     'disk=[ "file:/var/xen/domainFoo.img,sda1,w" ]'

Regards,
Pablo


It does not work this was either :

[618] root@oplaslim9 [/etc/xen]
xm create /dev/null kernel="/boot/vmlinuz-2.6-xen" memory=256
root="/dev/sda1 ro" disk='[ "file:/var/xen/domainFoo.img,sda1,w" ]'
Using config file "/dev/null".
Error: Device 2049 (vbd) could not be connected. Hotplug scripts not working.

But somobody suggested another way, which is working :

[613] root@oplaslim9 [/etc/xen]
xm create /dev/null kernel="/boot/vmlinuz-2.6-xen" memory=256
root="/dev/sda1 ro" disk="file:/var/xen/domainFoo.img,sda1,w"
Using config file "/dev/null".
Started domain null

Notice the removal of the [ ]. And it looks like it is possible to use
several disks by putting several disk= parameters on the command line.

--
Olivier Pernet

We are the knights who say
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq'|dc

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

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