<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Is a serial console possible for an HVM VM?]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I'd like to confirm whether a serial console (text console) is possible for HVM virtual machines?</p>
<p dir="auto">I am completely blind, and often use a serial console for OS installation and troubleshooting, including boot loaders and kernel output before an OS is booted. The XOA-provided web console is not accessible to screen-reading software.</p>
<p dir="auto">I've attempted to connect to a text console of an Ubuntu Linux VM using the <code>xe console vm=ubuntu</code> command, which reports: No text console available.</p>
<p dir="auto">Some googling suggests that a serial console is not possible with HVM virtual machines, but I'd like to confirm this before moving away from xc-png.</p>
<p dir="auto">Thank you for your help!</p>
]]></description><link>https://xcp-ng.org/forum/topic/7227/is-a-serial-console-possible-for-an-hvm-vm</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 12:08:47 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/7227.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Apr 2023 20:37:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Is a serial console possible for an HVM VM? on Sun, 23 Apr 2023 18:22:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/andrew" aria-label="Profile: Andrew">@<bdi>Andrew</bdi></a> Thank you very much for your reply. This helped a lot, and I was able to get serial access to VMs configured to use the serial port.</p>
]]></description><link>https://xcp-ng.org/forum/post/61346</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61346</guid><dc:creator><![CDATA[ivanfetch]]></dc:creator><pubDate>Sun, 23 Apr 2023 18:22:07 GMT</pubDate></item><item><title><![CDATA[Reply to Is a serial console possible for an HVM VM? on Sat, 22 Apr 2023 22:14:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/ivanfetch" aria-label="Profile: ivanfetch">@<bdi>ivanfetch</bdi></a> Yes, but it may not be exactly what you want because it's not a true text console.</p>
<p dir="auto">From XCP Dom0 try <code>xl console -t serial VMname</code> (or ID number). This will connect you to <em>/dev/ttyS0</em> serial port on the VM.  You can also use <code>xl console -t pv VMname</code> to connect to <em>/dev/hvc0</em> (that is not a serial port).</p>
<p dir="auto">Your VM needs to have a <em>getty</em> process or Console setup on that port.</p>
<p dir="auto">Use <code>xl vm-list</code> for a VM list.</p>
<p dir="auto">Control-] to exit the console (like telnet).</p>
<p dir="auto">I don't think this is 100% the solution you are looking for, but it's a place to start. You would need to boot a new VM and tell it to use the serial port as a console rather than the VGA that Xen provides. I was able to tell Debian 11 installer to use <code>console=ttyS0</code> and then see/install it from the text console but I still had to use the VGA console to tell Debian to do that.</p>
<p dir="auto">Without providing instructions I would say there is a way to do everything from a command line but you would still need a boot ISO that ignores the VGA and uses the serial port. The best trick would be to create a VM without VGA support so the OS in the VM is forced to use the serial port (if supported). <code>QEMU</code> does have text-only serial console support as I have used it directly outside of Xen/XCP but I don't know if XCP will allow you to do that.</p>
]]></description><link>https://xcp-ng.org/forum/post/61326</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/61326</guid><dc:creator><![CDATA[Andrew]]></dc:creator><pubDate>Sat, 22 Apr 2023 22:14:03 GMT</pubDate></item></channel></rss>