At Thu, 25 Jun 2015 19:36:10 +0200, Manuel Bouyer <bouyer%antioche.eu.org@localhost> wrote: Subject: Re: xen-4.5 and -current/amd64 > > On Thu, Jun 25, 2015 at 06:10:43PM +0200, Pierre Pronchery wrote: > > >> memory = 1024 > > >> disk = ['file:/scratch/disk.img,hda,w'] > > > > > > you could try: > > > disk = ['file:/scratch/disk.img,0x1,w'] > > > > > > this works for me > > > > Neither are correct. The syntax changed since xl: > > borneo:/usr/pkg/etc/xen#pkg_info |grep xen > xenkernel45-4.5.1 Xen 4.5.x Kernel > xentools45-4.5.1 Userland Tools for Xen 4.5.x > borneo:/usr/pkg/etc/xen#egrep ^disk nb1 > disk = [ 'file:/domains/nb1.vnd,0x1,w' ] > borneo:/usr/pkg/etc/xen#xl create -c nb1 > Parsing config from nb1 > Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, > 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 > The NetBSD Foundation, Inc. All rights reserved. > [...] > boot device: xbd0 > root on xbd0a dumps on xbd0b > root file system type: ffs > WARNING: clock gained 147 days > Enter pathname of shell or RETURN for /bin/sh: > Terminal type is vt100. > We recommend creating a non-root account and using su(1) for root access. > # The old syntax is very much deprecated, and that's a polite way to put it. The support in 4.5 for the old config syntax is very poor at best -- the parser is barely a parser. It knows next to nothing about quoting, for example. As the new manual says: Support for deprecated parameters and syntaxes are likely to be dropped in future versions of xl. So, the old syntax should not be recommended to anyone any more, even if sometimes mostly works for some people. (of course the parser is quite poor at handling the new syntax too, but that's a different problem, and at least it's reasonably documented, and perhaps it will someday be made better -- I couldn't even get the "positional parameters" forms to work reliably) -- Greg A. Woods Planix, Inc. <woods%planix.com@localhost> +1 250 762-7675 http://www.planix.com/
Attachment:
pgp_q0YDDst84.pgp
Description: PGP signature