Message boards : Theory Application : Read console from host
Message board moderation

To post messages, you must log in.

AuthorMessage
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 817
Credit: 661,412,170
RAC: 172,049
Message 47632 - Posted: 31 Dec 2022, 10:57:37 UTC

Did anyone work out a way to read the VM console output from the host operating system?

I looked thouhg the files in the slots directory but there isn't anything there.
ID: 47632 · Report as offensive     Reply Quote
computezrmle
Volunteer moderator
Volunteer developer
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 15 Jun 08
Posts: 2450
Credit: 232,571,564
RAC: 131,135
Message 47633 - Posted: 31 Dec 2022, 11:22:04 UTC - in response to Message 47632.  

The VM consoles usually present a top output or tail logfiles from inside the VM.
You can inspect the logfiles of a selected task pressing the "show graphics" button.
This requires the BOINC client and the VM running on the same computer.

An optional method would be to start a webbrowser on the computer running the task.
Check the task's stderr.txt for a line like
2022-12-31 11:47:01 (2379028): Detected: Web Application Enabled (http://localhost:40651)
Then copy "http://localhost:40651" to the webbrowser's address line.
Be aware that each task gets a random port number.
ID: 47633 · Report as offensive     Reply Quote
kotenok2000
Avatar

Send message
Joined: 21 Feb 11
Posts: 65
Credit: 548,171
RAC: 298
Message 47634 - Posted: 31 Dec 2022, 18:33:57 UTC - in response to Message 47633.  

Didn't vm put logs in shared folder at some point in the past?
ID: 47634 · Report as offensive     Reply Quote
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 817
Credit: 661,412,170
RAC: 172,049
Message 47636 - Posted: 1 Jan 2023, 21:49:07 UTC - in response to Message 47634.  

There is some files in:

slots\n\boinc_WUName\Logs


they aren't the same as whats show in the Fn-F2 screens of the VM though
ID: 47636 · Report as offensive     Reply Quote
Toby Broom
Volunteer moderator

Send message
Joined: 27 Sep 08
Posts: 817
Credit: 661,412,170
RAC: 172,049
Message 47639 - Posted: 3 Jan 2023, 20:32:52 UTC - in response to Message 47633.  

I tested it out and it doesn't work as expected. Either the webpage is the wrong one or it never loads up.

I can use the screenshot function then OCR the picture to see what the console output but this is sub-optimal I would say.
ID: 47639 · Report as offensive     Reply Quote

Message boards : Theory Application : Read console from host


©2024 CERN