Skip to content

Instantly share code, notes, and snippets.

@mariolima
Created August 16, 2024 20:36
Show Gist options
  • Save mariolima/f9cb5da5ff673ae034cae324942806b0 to your computer and use it in GitHub Desktop.
Save mariolima/f9cb5da5ff673ae034cae324942806b0 to your computer and use it in GitHub Desktop.

from https://forum.proxmox.com/threads/two-windows-guests-communicating-via-serial-console-comn.67588/

SSH to ProxMox and do the following:

Code: Code: Provided by Stefan_R

# 101 ID of first VM
# 102 ID of second VM

# add the serial ports
qm set 101 -serial0 socket
qm set 102 -serial0 socket

# start both VMs
qm start 101
qm start 102

# connect the two serial ports on the host
# install and run "byobu" first to leave this running in a session
# even if your SSH session to your ProxMox server closes...
apt install byobu
byobu
socat UNIX-CLIENT:/var/run/qemu-server/101.serial0 UNIX-CLIENT:/var/run/qemu-server/102.serial0

On Debuggee:

Code:

C:\>bcdedit /debug on
The operation completed successfully.

C:\>bcdedit /dbgsettings serial debugport:1 baudrate:115200
The operation completed successfully.

C:\>bcdedit /set testsigning on
The operation completed successfully.

Run regedit as Administrator and go to HKLM\SYSTEM\CurrentControlSet\Control\Session Manager. Create a new Key called Debug Print Filter and within that, a new DWORD Value. Give it the name DEFAULT and a value of 8. This will allow Windows to generate kernel debug messages, which are disabled by default.

On Debugger (with WinDbg Preview):

  1. Select File
  2. Attach to Kernel, select the COM tab, then uncheck Pipe, check Reconnect, Resets = 0 (or desired), Baud Rate = 115200, Port = COM1, check or uncheck Break on Connection as desired.
  3. Click OK.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment