mirage / mirage-bootvar-xen

archived, please look into the mirage-bootvar repository below for further development. Library for reading MirageOS unikernel boot parameters in Xen
https://github.com/mirage/mirage-bootvar
ISC License
9 stars 14 forks source link

fails with `unknown option' #22

Closed sevenEng closed 8 years ago

sevenEng commented 8 years ago

while trying out the unikernel under the directory example/, it crashes with the following output:

Parsing config from unikernel.xl
MirageOS booting...
Initialising timer interface
Initialising console ... done.
unikernel: unknown option `--hello', did you mean `--help' ?
Usage: unikernel [OPTION]...
Try `unikernel --help' for more information.
Mirage exiting with status 1
Do_exit called!

and i'm on ubuntu 14.04, with ocaml 4.02.3, mirage-xen 2.6.0, the lib version is 0.3.2

siburu commented 8 years ago

I'm confronted with similar situation on EC2:

============= Init TPM Front ================
Tpmfront:Error Unable to read device/vtpm/0/backend-id during tpmfront initialization! error = ENOENT
Tpmfront:Info Shutting down tpmfront
close blk: backend=/local/domain/0/backend/vbd/13813/2048 node=device/vbd/2048
close blk: backend=/local/domain/0/backend/vbd/13813/2051 node=device/vbd/2051
\u001b[32;1mMirageOS booting...\u001b[0m
Initialising timer interface
Initialising console ... done.
myonsole: unknown option `--root'.
Usage: myonsole [OPTION]... 
Try `myonsole --help' for more information.
Ignoring malformed parameter: ro
Ignoring malformed parameter: 4
Mirage exiting with status 1
Do_exit called!

The unikernel image was built on Ubuntu 14.04 with OCaml 4.03.0 and the library versions being same.

siburu commented 8 years ago

The above error (mine) was resolved by using register ~argv:Mirage.no_argv ... in config.ml.

sevenEng commented 8 years ago

Thanks @siburu , this works for me too!