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

Subject: Re: [Xen-users] Problem passing command-line parameters to xm create
From: Andrej Radonic <andrej.radonic@xxxxxxxx>
Date: Tue, 20 Jun 2006 11:20:02 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 20 Jun 2006 02:20:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <28276cf00606200212p2312b843x730cbaf48d019f9d@xxxxxxxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)
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.

Olivier,

according to the xm man page you should specify /dev/null as "config file" like this (taken from man):

xm create /dev/null ramdisk=initrd-xen \
                    kernel=/boot/vmlinuz-xen \
                    name=ramdisk nics=0 vcpus=1 \
                    memory=64 root=/dev/ram0


Looks like in this case you should omit the quotation marks.

Cheers,
Andrej

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

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