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

Re: [MirageOS-devel] Mirage OS 2.4 errors on install and mirage-skeleton build



On 29 Apr 2015, at 12:58, Justin Cormack <justin@xxxxxxxxxxxxxxxxxxxxx> wrote:
> 
> On 29 April 2015 at 10:35, Thomas Gazagnaire <thomas@xxxxxxxxxxxxxx> wrote:
>> Third, when I managed to get one of the network samples building, for
>> example "ping", I couldn't get the unikernel running locally with a tun/tap
>> device I created. Even though I use tapctl to create a tap0 device owned by
>> my user account, just like the tutorial advises, when I go to execute the
>> unikernel I still get this error:
>> 
>> Fatal error: exception Failure("net_tap0")
>> Raised at file "src/core/lwt.ml", line 788, characters 22-23
>> Called from file "src/unix/lwt_main.ml", line 34, characters 8-18
>> Called from file "main.ml", line 47, characters 2-28
>> 
>> 
>> This is rather cryptic but might indicate that you need to run the command
>> using sudo.
> 
> What does strace show here? It might be permissions but if you made
> the device owned by your user account it shouldnt be. You may need to
> make /dev/net/tun world read and write (which is safe to do).


This error message definitely needs to improve -- it's because you
don't have a VIF setup in the unikernel.xl file, and so the driver fails
to connect.

If you edit the <unikernel>.xl and uncomment the line at the bottom
starting with "vif", then there will be a network card in the VM and
it should happily serve traffic.

If you could create an issue on https://github.com/mirage/mirage/issues
with a complaint about the bad error message, it's really easy to fix 
as well.

Anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


 


Rackspace

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