princeton-sns / firecracker-tools

5 stars 5 forks source link

integrate communication over `tty` with controller #17

Closed LedgeDash closed 5 years ago

LedgeDash commented 5 years ago

Testing is done based on commit 67de721c on branch integrate of firecracker-tools and commit c7c4e0ae on branch console of firecracker.

[luzhuo@Jasper] ./target/debug/controller --appfs_dir . --fconfig bins/controller/example_func_configs.yaml --kernel vmlinux-2 --runtimefs_dir . --requests bins/controller/example_requests.json        [202/1757]
2 functions loaded                                                                                                                                                                                                 
[    0.000412] ACPI BIOS Error (bug): A valid RSDP was not found (20190703/tbxfroot-210)                                                                                                                           
[    0.001008] ACPI BIOS Error (bug): A valid RSDP was not found (20190703/tbxfroot-210)                                                                                                                           
[    0.070514] zswap: default zpool zbud not available                                                                                                                                                             
[    0.071186] zswap: pool creation failed                                                                                                                                                                         
[    0.074851] zswap: default zpool zbud not available                                                                                                                                                             
[    0.075606] zswap: pool creation failed                                                                                                                                                                         
OpenRC init version 0.41.2.6fc2696f3e starting                                                                                                                                                                     
Starting sysinit runlevel                                                                                                                                                                                          
OpenRC init version 0.41.2.6fc2696f3e starting                                                                                                                                                                     
Starting sysinit runlevel                                                                                                                                                                                          

   OpenRC 0.41.2.6fc2696f3e is starting up Linux 5.3.0-rc5 (x86_64)                                                                                                                                                

 * Mounting /proc ...                                                                                                                                                                                              

   OpenRC 0.41.2.6fc2696f3e is starting up Linux 5.3.0-rc5 (x86_64)                                                                                                                                                

 [ ok ]                                                                                                                                                                                                            
 * Mounting /proc ...                                                                                                                                                                                              
 * Mounting /run ...                                                                                                                                                                                               
 [ ok                                                                                                                                                                                                              
* /run/openrc: creating directory                                                                                                                                                                                  
 * /run/lock: creating directory                                                                                                                                                                                   
 * /run/lock: correcting owner                                                                                                                                                                                     
 * Mounting /run ...                                                                                                                                                                                               
 * Caching service dependencies ...                                                                                                                                                                                
 * /run/openrc: creating directory                                                                                                                                                                                 
 * /run/lock: creating directory                                                                                                                                                                                   
 * /run/lock: correcting owner                                                                                                                                                                                     
 * Caching service dependencies ...                                                                                                                                                                                
Service `hwdrivers' needs non existent service `dev'                                                                                                                                                               
 [ ok ]                                                                                                                                                                                                            
Starting boot runlevel                                                                                                                                                                                             
Service `hwdrivers' needs non existent service `dev'                                                                                                                                                               
 [ ok ]                                                                                                                                                                                                            
Starting boot runlevel                                                                                                                                                                                             
 * Remounting devtmpfs on /dev ...
 [ ok ]
 * Mounting /dev/mqueue ...
 [ ok ]
 * Mounting /dev/pts ...
 * Remounti ng [d eovtkmpfs on  /d]ev
...
 [ ok ]
 * Mounting /dev/shm ...
 [ ok ]
 * Mounting /dev/mqueue ...
 [ ok ]
 * Mounting /dev/pts ...
 [ ok ]

 ...
r[ ok ]modp
obe: can't change directory to '/lib/modules': No such file or directory
modprobe: can't change directory to '/lib/modules': No such file or directory
 [ ok ]
 * Loading modules ...
modprobe: can't change directory to '/lib/modules': No such file or directory
c* Mounting misc binary formamt ofidlepsrysotbeme  .c..an't
hange directory to '/lib/modules': No such file or directory
 [ ok ]
 [ ok ]
Starting default runlevel
 * Starting serverless-workload ...
 * Mounting misc binary format filesystem ...
 [ ok ]
Starting default runlevel
 * Starting serverless-workload ...

controller hangs at the first VM's * Starting serverless-workload ....

We likely should make the controller/firerunner more agnostic of the underlying communication channel implementation.