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

Re: [Xen-users] Problem passing command-line parameters to xm create


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

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