Closed runeksvendsen closed 8 years ago
Hmmm! Can you tell me which version of the HaLVM was installed in the F23 environment?
I'm not used to Fedora, but as I recall it HaLVM was already installed in /usr/bin
(halvm-ghc, halvm-cabal, etc.) when it booted up. As far as I can see, these binaries are provided by the HaLVM
package, which dnf
says is at version 2.1.0.
Side note: I built the WebServer example using this guide: https://github.com/GaloisInc/HaLVM/wiki/HaLVM-Web-Server-Quick-Start. So HaNS
and network-hans
were installed from Git master, and your fork of the HTTP
package was used (https://github.com/acw/HTTP). For the WebServer example I cloned git master of HaLVM, configured it, and just ran make
inside the examples/HighLevel/WebServer
directory.
Actually, looking through my bash history, it appears that I installed HaNS
and network-hans
using cabal (from Hackage), if that makes a difference.
In trying to figure out this issue, I've discovered two things, without actually making it work:
I still haven't figured out why it the kernel exits after finding a network device, but before getting an IP address via DHCP. Any clues on how to debug this would be greatly appreciated.
Hi Rune, Not sure that helps but when I tried to do the same, I had to assign a fixed IP to make webserver boot. However my setting was different: I ran unikernels on a local Xen VM on my laptop.
HTH Arnaud
Le 31 août 2016 07:31, "Rune K. Svendsen" notifications@github.com a écrit :
In trying to figure out this issue, I've discovered two things, without actually making it work:
- The "Failed to read" errors disappear when I use an m3 instance rather than a t1 instance
- The "TPM Front" errors are seemingly unrelated to this issue, as they appear in many logs from images that actually boot
I still haven't figured out why it the kernel exits after finding a network device, but before getting an IP address via DHCP. Any clues on how to debug this would be greatly appreciated.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GaloisInc/HaLVM/issues/77#issuecomment-243662616, or mute the thread https://github.com/notifications/unsubscribe-auth/AACdHYLKmgHm2phO1zz21iR8Kb1nyaJ0ks5qlRGugaJpZM4JipyR .
Well, I'll tell you first, debugging on AWS is a pain. :)
So, question #1: it sounds like it's exiting / crashing, not just running forever?
One step would be to make sure you can see console messages (via writeConsole). Send those out as soon as you have a console available, and make sure you can see them. After that, add a top-level exception handler that catches everything and prints it out to said console, and then extend this to every point that creates a thread. Just to make sure that there isn't an exception flowing around that we're missing.
I'll note that I'm a little slow because I'm working on a HaLVM web server myself, and running into other EC2 problems. I'll update this ticket and you as I have news on my side, but I'd love to get the base version working, too.
OK, turns out there was at least one bug in the network driver code that could cause hangs when sending data on the network. This has been fixed in head, and should roll out to the various repos over the course of the day. In addition, I have an updated HaLVM web server that I'm putting together; I'll update this ticket with news as it gets finalized over the next day or two.
OK, that took longer than planned. Cabal and Docker threw some wrenches in my plan. But, here's the new, improved web server. I should update the examples directory to point to it:
This looks great! I will definitely get around to trying it out at a later time.
So, I finally managed to get everything working wrt. permissions for
ec2-unikernel
, and I have an AMI for the WebServer example, but when I boot this AMI in an EC2 instance, it shuts down by itself, leaving the following in the log:The unikernel was built using the fedora23 Vagrant environment. The AMI image name in EC2 is called
ami-7726ed17
, and I have made it public.