Skip to main content

Posts

Showing posts from August, 2016

[RTEMS] Alternative way to run QEMU on cluster like executing in background

My case is to get some stdio output from console with QEMU. Unfortunately, it is not possible to run QEMU with & command. An alternative way is that using screen to keep ssh session running when you disconnect. Assume I have a PC with linux shell to connect to cluster: screen ssh yourname@clusterpc I use the following option to set up my qemu vm and output to a file called result.txt: qemu-system-arm -no-reboot -nographic -M realview-pbx-a9 -m 256M -kernel \ kernel file >> result.txt After this command, the vm is started. Press Ctrl + A and then Ctrl + D in immediate succession. And now it is disconnected. To reconnect to the session screen -r If you have multiple sessions like my case, you need to specify the session you are going to resume: There are several suitable screens on:         3390.pts-13.ls12sq      (Detached)         3646.pts-13.ls12sq   ...