Skip to content

Resources

Commands

  • Kernal Debugging
    • Proxmox
      • Proxmox Shell
        # 1. Set the VM to UEFI without Secure Boot
        qm set 127 -bios ovmf
        qm set 127 -efidisk0 local-lvm:1,efitype=4m,pre-enrolled-keys=0
         
        # 2. Verify network is on vmbr0
        qm set 127 -net0 e1000,bridge=vmbr0
         
        # 3. Disable Proxmox firewall for the lab
        echo "[OPTIONS]" > /etc/pve/firewall/cluster.fw
        echo "enable: 0" >> /etc/pve/firewall/cluster.fw
         
        # 4. Reboot
        qm reboot 127
      • debuggee
        :: 1. Configure KDNET
        kdnet.exe 1.2.3.4 192.168.99.17 50000
        :: 2. Enable at boot
        bcdedit /debug on
        bcdedit /dbgsettings net hostip:192.168.99.17 port:50000 key:1.2.3.4
        :: 3. Allow the port
        netsh advfirewall firewall add rule name="KDNET" dir=in action=allow protocol=UDP localport=50000
        :: 4. Reboot
        shutdown /r /t 0
      • debugger
        windbg.exe -k net:port=50000,key=1.2.3.4

Tools

Notes