crete-dev icon indicating copy to clipboard operation
crete-dev copied to clipboard

waiting for port connection

Open priyangavij opened this issue 5 years ago • 12 comments

The host OS displays "Awaiting connection on 'ubuntu' on port 10012" after the 3 files dispatch,vm-node and svm-node are run. The guest OS is also running crete-run command which displays "Waiting for port". How do I complete the port connection for the tests and traces to run?

priyangavij avatar Oct 12 '19 22:10 priyangavij

Is there any indication that vm-node has connected to crete-dispatch?

moralismercatus avatar Oct 14 '19 18:10 moralismercatus

Screenshot (127)

priyangavij avatar Oct 15 '19 00:10 priyangavij

When I ran the vm-node script, the dispatch terminal displayed saying "Awaiting connection on 'ubuntu' on port '10012'.

priyangavij avatar Oct 15 '19 00:10 priyangavij

Thank you for the screenshot.

"Awaiting connection on 'ubuntu' on port '10012'" just means that dispatch is open to new connections - not necessarily that anything is wrong.

It would appear that the file hostfile/port is not being found by the VM.

I see that the mode is "distributed" - meaning crete-vm-node was the one who started the VM?

Check to ensure vm/1/hostfile/port exists. If not, it may be worthwhile to rm -rf vm and restart. Something may have gotten corrupted.

moralismercatus avatar Oct 15 '19 06:10 moralismercatus

There is a port and pid file existing in the /vm/1/hostfile/ directory. The situation in the screenshot is still persisting even after removing the file and restarting.

priyangavij avatar Oct 16 '19 19:10 priyangavij

I may have to reproduce your env, to get to the bottom of this.

Can you supply the following:

  1. Config files; dispatch, nodes, and run (for good measure).
  2. Version of CRETE being used (SVL-PSU HEAD?).
  3. OS version.
  4. Guest OS info.

moralismercatus avatar Oct 16 '19 22:10 moralismercatus

Hi, I want to make sure that the sequences you are running it are qemu dispatch vm and then svm right? because the order matters as well Can you provide your svm vm and dispatch script that you are running according to your screenshot.

zheli-1 avatar Oct 17 '19 23:10 zheli-1

Thanks for sending the scripts via emails. It looks like you are not using crete-qemu-2.3-system-x86_64 which is a modified qemu by crete to run the snapshot. 

zheli-1 avatar Oct 18 '19 00:10 zheli-1

$CRETEPATH/crete-qemu-2.3-system-x86_64 $COMM_CMD -m $MEM_SIZE -loadvm test -device cirrus-vga &> qemu_log.txt

priyangavij avatar Oct 18 '19 00:10 priyangavij

This is the command I used to load the snapshot.

priyangavij avatar Oct 18 '19 00:10 priyangavij

Command looks right. Can you provide the configuration files of vm dispatch svm as well?

zheli-1 avatar Oct 18 '19 00:10 zheli-1

Where are the output files located? Also, how to analyze them for the sample configuration file provided I just changed the binary target?

priyangavij avatar Oct 20 '19 05:10 priyangavij