* Debugging console
@ 2015-12-28 16:30 Carl Patenaude Poulin
2015-12-28 23:28 ` quizyjones
2015-12-29 13:00 ` Andrew Cooper
0 siblings, 2 replies; 3+ messages in thread
From: Carl Patenaude Poulin @ 2015-12-28 16:30 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 215 bytes --]
Hi all,
We've got __HYPERVISOR_console_io working on our unikernel! The only
issue is that it prints to `xl dmesg`. Is there a way to get it to
print to `xl console`?
Best
Carl Patenaude Poulin
McGill University
[-- Attachment #1.2: Type: text/html, Size: 354 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Debugging console
2015-12-28 16:30 Debugging console Carl Patenaude Poulin
@ 2015-12-28 23:28 ` quizyjones
2015-12-29 13:00 ` Andrew Cooper
1 sibling, 0 replies; 3+ messages in thread
From: quizyjones @ 2015-12-28 23:28 UTC (permalink / raw)
To: Carl Patenaude Poulin, xen-devel@lists.xen.org
[-- Attachment #1.1: Type: text/plain, Size: 1395 bytes --]
If you run with Debian and Grub 2 (which should be the case if you are running Squeeze), then you should edit /etc/default/grub as below:GRUB_CMDLINE_XEN="loglvl=all guest_loglvl=all com1=115200,8n1,0x3e8,5 console=com1,vga"
GRUB_CMDLINE_LINUX="console=hvc0 earlyprintk=xen"The above setup of the serial device parameters are for a Supermicro X8STi-F motherboard, where IPMI SOL is configured for COM3 from the BIOS. Note that you need to use "com1=" option for Xen, even when the SOL is actually COM3. If you specify "com3=" for Xen the serial console won't work for some reason. When you are done with your grub config file, do:update-grub2to generate the /boot/grub/grub.cfg
You can go http://wiki.xenproject.org/wiki/Xen_Serial_Console for a complete reference.
In addition, if your guest is a HVM, then you should add serial="pty" into the config file to be able to use 'xl console'
From: carl.patenaudepoulin@mail.mcgill.ca
Date: Mon, 28 Dec 2015 11:30:43 -0500
To: xen-devel@lists.xen.org
Subject: [Xen-devel] Debugging console
Hi all,
We've got __HYPERVISOR_console_io working on our unikernel! The onlyissue is that it prints to `xl dmesg`. Is there a way to get it toprint to `xl console`?
Best
Carl Patenaude PoulinMcGill University
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
[-- Attachment #1.2: Type: text/html, Size: 2674 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Debugging console
2015-12-28 16:30 Debugging console Carl Patenaude Poulin
2015-12-28 23:28 ` quizyjones
@ 2015-12-29 13:00 ` Andrew Cooper
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Cooper @ 2015-12-29 13:00 UTC (permalink / raw)
To: Carl Patenaude Poulin, xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 836 bytes --]
On 28/12/2015 16:30, Carl Patenaude Poulin wrote:
> Hi all,
>
> We've got __HYPERVISOR_console_io working on our unikernel! The only
> issue is that it prints to `xl dmesg`. Is there a way to get it to
> print to `xl console`?
No. They are two very different consoles.
`xl dmesg` reads the hypervisor console, which is where
__HYPERVISOR_console_io hypercalls end up (in debug builds of Xen).
`xl console` however is the paravirtual console. Each domain has a page
of RAM (the PV console), which is mapped by the xenconsoled daemon in
dom0. xenconsoled performs duties such as logging and creation of a pty
master for two-way interaction. `xl console` connects to the pty master
for the appropriate domain.
To get messages appearing in `xl console`, you must implement the guest
side of the PV console interface.
~Andrew
[-- Attachment #1.2: Type: text/html, Size: 1528 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-29 13:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-28 16:30 Debugging console Carl Patenaude Poulin
2015-12-28 23:28 ` quizyjones
2015-12-29 13:00 ` Andrew Cooper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).