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-devel

Re: [Xen-devel] Re: [Fedora-xen] Xl and /dev/null (no domU cfgfile)

To: Pasi Kärkkäinen <pasik@xxxxxx>
Subject: Re: [Xen-devel] Re: [Fedora-xen] Xl and /dev/null (no domU cfgfile)
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Tue, 9 Aug 2011 10:32:30 +0100
Cc: "xen@xxxxxxxxxxxxxxxxxxxxxxx" <xen@xxxxxxxxxxxxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "W. Michael Petullo" <mike@xxxxxxxx>
Delivery-date: Tue, 09 Aug 2011 02:33:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110801220333.GA32373@xxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Citrix Systems, Inc.
References: <20110801183043.GA23443@xxxxxxxxx> <20110801220333.GA32373@xxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, 2011-08-01 at 23:03 +0100, Pasi Kärkkäinen wrote:
> On Mon, Aug 01, 2011 at 01:30:43PM -0500, W. Michael Petullo wrote:
> > The old xm command allowed for a domain to be configured from and
> > command line using "xm create /dev/null kernel=x ..." Xl does not seem
> > to support this:
> > 
> > $ sudo xl create /dev/null
> > libxl: error: libxl_utils.c:328:libxl_read_file_contents /dev/null is not a 
> > plain file: Success
> > Failed to read config file: /dev/null: Inappropriate ioctl for device
> >

That's a pretty weird interface, probably more of a coincidence than a
deliberate feature. Far better would be to just make the file optional.
Can someone cook up such a patch?

If we are looking to be bug/oddity compatible with xm then we could
remove the S_ISREG check from libxl_read_file_contents. I suppose that,
in principal at least, there is no reason to prevent people reading
pipes, fifos, symlinks or even character devices to get the
configuration file. (unless we might potentially read it multiple
times?).

>  
> > Does anyone know the preferred technique to create a domain without an
> > existing domain configuration file (i.e., purely from the command line)?
> > 
> 
> Sounds like a question to xen-devel mailinglist.. at least I haven't
> seen a solution to that so far.


> 
> (CC added).
> 
> -- Pasi
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



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

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