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

Re: Mirage Hello World (Re: Building mirage-www)



Hi Richard,

$ opam switch mirage-xen

Thanks for the info.

$ make build-basic

now completed successfully.

However:

hph@ubunxen:~/mirage-skeleton$ make run-basic
cd basic && mirari run --xen
[mirari] Using scanned config file hello.conf
[mirari] + xen mode
ERROR:  A different toolstack (xapi) have been selected!
make: *** [run-basic] Error 1
hph@ubunxen:~/mirage-skeleton$

How can I instruct 'mirari run' to use 'xapi' instead of 'xl'?
Is there something that can be added to 'basic/hello.conf' to achieve this?

If I edit /etc/default/xen:

# TOOLSTACK=xapi
TOOLSTACK=xl

hph@ubunxen:~/mirage-skeleton$ make run-basic
cd basic && mirari run --xen
[mirari] Using scanned config file hello.conf
[mirari] + xen mode
xc: error: Could not obtain handle on privileged command interface (13 = Permission denied): Internal error
libxl: error: libxl.c:87:libxl_ctx_alloc: cannot open libxc handle: Permission denied
cannot init xl context
make: *** [run-basic] Error 1
hph@ubunxen:~/mirage-skeleton$

and

hph@ubunxen:~/mirage-skeleton$ sudo make run-basic
cd basic && mirari run --xen
/bin/sh: 1: mirari: not found
make: *** [run-basic] Error 127
hph@ubunxen:~/mirage-skeleton$

BTW, I still cannot run the Mirage "hello World" unikernel as a simple POSIX binary as expected.
It does not print anything.


Cheers,

PhiHo




On Tue, Sep 10, 2013 at 5:15 AM, Richard Mortier <Richard.Mortier@xxxxxxxxxxxxxxxx> wrote:
hi phiho;

On 6 Sep 2013, at 22:19, Phiho Hoang wrote:

> To rebuild this as a Xen VM, simply opam switch and rebuild:
>
> $ opam switch 4.00.1+mirage-xen
> $ eval `opam config env`
> $ make build-basic
> </quote>
>
> I encountered this error:
>
> <quote>
> $ make build-basic
>
> ### basic: configure
> cd basic && mirari configure --unix
> /bin/sh: 1: mirari: not found
> make: *** [configure-basic] Error 127
> </quote>

drat-- that's my fault, again. sorry about this. i missed an inconsistency between the installation instructions and the hello world pages.

replace

$ opam switch 4.00.1+mirage-xen

above with

$ opam switch mirage-xen

...or, more generally, whichever opam compiler switch that you installed the mirage-xen, mirari, etc packages to.

--
Cheers,

R.




This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.






 


Rackspace

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