Skip to content

Instantly share code, notes, and snippets.

@Wenzel
Created January 18, 2018 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wenzel/0153bf35cc91df5559b07ccdd1543c74 to your computer and use it in GitHub Desktop.
Save Wenzel/0153bf35cc91df5559b07ccdd1543c74 to your computer and use it in GitHub Desktop.
/etc/default/grub configuration file to get Xen output on a serial cable
GRUB_CMDLINE_LINUX="earlyprintk=xen"
GRUB_CMDLINE_XEN_DEFAULT="com1=115200,8n1 console=com1 loglvl=all guest_lvl=all"
GRUB_TERMINAL="serial"
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
@Wenzel
Copy link
Author

Wenzel commented Jan 18, 2018

  • add serial=pty to your Xen guest config file.
  • start the guest
  • append these lines to /etc/default/grub
  • run update-grub2
  • reboot the guest
  • on the host, you can run sudo xl console <DomID>
  • profit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment