unikraft / dynamic-apps

Pre-built Dynamic Linux ELFs
7 stars 36 forks source link

NodeJS hang on user input #79

Open SorenEricMent opened 1 year ago

SorenEricMent commented 1 year ago

I was working on adding node and gnupg to run.yaml with this commit https://github.com/unikraft/app-elfloader/pull/33 where I run into the problem: NodeJS is able to launch and start the shell, but it hangs on user input. The -enable-kvm -cpu host script patch is used

By hang: the shell appeared as

Booting from ROM..1: Set IPv4 address 172.44.0.2 mask 255.255.255.0 gw 172.44.0.1
en1: Added
en1: Interface is up
Powered by
o.   .o       _ _               __ _
Oo   Oo  ___ (_) | __ __  __ _ ' _) :_
oO   oO ' _ `| | |/ /  _)' _` | |_|  _)
oOo oOO| | | | |   (| | | (_) |  _) :_
 OoOoO ._, ._:_:_,\_._,  .__,_:_, \___)
             Prometheus 0.14.0~018fe1a4
Welcome to Node.js v18.15.0.
Type ".help" for more information.
> 
Error: Could not get the home directory.
REPL session history will not be persisted.
> 

But not responding to any user input

run.yaml used:

  - name: node
    rootfs: ../dynamic-apps/node
    command: /bin/node
    memory: 512
    networking: True

Command used: ./scripts/build/make-qemu-x86_64-9pfs.sh ./scripts/run/qemu-x86_64-9pfs-node.sh

razvand commented 1 year ago

5HP