missing hvc0 device on hosted engine

--_000_DM5PR05MB3161434BD7A421FDC8D5FBCAD5400DM5PR05MB3161namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I've been running oVirt 4.0.x for a while now and upgraded the engine and h= osts to 4.1. Sometimes, on both 4.0 and 4.1, trying to run the "hosted-engi= ne -console" command gives the following results: The engine VM is running on this host Connected to domain HostedEngine Escape character is ^] error: internal error: cannot find character device <null> Once this starts occurring, it never works again. When this happens I note that the hvc0 device does not exist in /dev and th= erefore there is no getty process running for that device. I notice that th= e "Enable VirtIO serial console" box is not checked on the hosted engine VM= but when I check it and click OK it's unchecked again when I open up the e= dit window again. How do I get console control back from my oVirt hosts? Thank you, Sandy Berger Follow Us: Facebook<http://www.qg.com/social1> | Twitter<http://www.qg.com/= social2> | LinkedIn<http://www.qg.com/social3> | YouTube<http://www.qg.com/= social4> --_000_DM5PR05MB3161434BD7A421FDC8D5FBCAD5400DM5PR05MB3161namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:#0563C1; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:#954F72; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri",sans-serif;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3D"EN-US" link=3D"#0563C1" vlink=3D"#954F72"> <div class=3D"WordSection1"> <p class=3D"MsoNormal">I’ve been running oVirt 4.0.x for a while now = and upgraded the engine and hosts to 4.1. Sometimes, on both 4.0 and 4.1, t= rying to run the “hosted-engine –console” command gives t= he following results:<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New"">= The engine VM is running on this host<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New"">= Connected to domain HostedEngine<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New"">= Escape character is ^]<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-family:"Courier New"">= error: internal error: cannot find character device <null><o:p></o:p>= </span></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">Once this starts occurring, it never works again.<o:= p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">When this happens I note that the hvc0 device does n= ot exist in /dev and therefore there is no getty process running for that d= evice. I notice that the “Enable VirtIO serial console” box is = not checked on the hosted engine VM but when I check it and click OK it’s unchecked again when I open up the edit w= indow again.<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">How do I get console control back from my oVirt host= s?<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal">Thank you,<o:p></o:p></p> <p class=3D"MsoNormal"><o:p> </o:p></p> <p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"= ;Arial",sans-serif;color:#1E47A4">Sandy Berger</span></b><span style= =3D"font-size:10.5pt;font-family:"Arial",sans-serif;color:#444444= "><o:p></o:p></span></p> <p class=3D"MsoNormal"><o:p> </o:p></p> </div> Follow Us: <a href=3D"http://www.qg.com/social1">Facebook</a> | <a href=3D"= http://www.qg.com/social2"> Twitter</a> | <a href=3D"http://www.qg.com/social3">LinkedIn</a> | <a href= =3D"http://www.qg.com/social4"> YouTube</a> </body> </html> --_000_DM5PR05MB3161434BD7A421FDC8D5FBCAD5400DM5PR05MB3161namp_--

Hi, we know about this and we already pushed patches that should resolve this issue in 4.1.1 (one was merged today in fact). We track the issue here: https://bugzilla.redhat.com/show_bug.cgi?id=1364132 and the patch that should resolve it is here: https://gerrit.ovirt.org/#/c/71472/ Applying the change manually or waiting for a new snapshot package in http://resources.ovirt.org/pub/ovirt-4.1-snapshot/rpm/<distro>/noarch/ might help you in the meantime. Best regards -- Martin Sivak SLA / oVirt On Mon, Feb 6, 2017 at 8:14 PM, Berger, Sandy <SBERGER@qg.com> wrote:
I’ve been running oVirt 4.0.x for a while now and upgraded the engine and hosts to 4.1. Sometimes, on both 4.0 and 4.1, trying to run the “hosted-engine –console” command gives the following results:
The engine VM is running on this host
Connected to domain HostedEngine
Escape character is ^]
error: internal error: cannot find character device <null>
Once this starts occurring, it never works again.
When this happens I note that the hvc0 device does not exist in /dev and therefore there is no getty process running for that device. I notice that the “Enable VirtIO serial console” box is not checked on the hosted engine VM but when I check it and click OK it’s unchecked again when I open up the edit window again.
How do I get console control back from my oVirt hosts?
Thank you,
Sandy Berger
Follow Us: Facebook | Twitter | LinkedIn | YouTube
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Thank you for your response. I installed the ovirt-hosted-engine-ha and ovirt-hosted-engine-setup RPMs from the snapshot link you sent me onto the two hosts that can host the engine. I re-ran engine-setup on the engine just in case and rebooted the two hosts capable of hosting the engine and the engine itself. I am now able to run the "hosted-engine --console" command successfully but since the 4.1 upgrade the console button in the toolbar for the hosted engine is dimmed in the GUI. That is still the case. Is that expected behavior with 4.1 or is there some other issue going on? Also, when I use the command "ssh -t -p 2222 ovirt-vmconsole@engine," I get a menu of VMs that I can choose from and get a serial console to them. That option has never worked for the hosted engine. The engine shows up as a menu item but selecting it yields a socket error. This works successfully on the other VMs. Thanks! --Sandy -----Original Message----- From: users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] On Behalf Of Martin Sivak Sent: Monday, February 06, 2017 4:21 PM To: users@ovirt.org Subject: Re: [ovirt-users] missing hvc0 device on hosted engine Hi, we know about this and we already pushed patches that should resolve this issue in 4.1.1 (one was merged today in fact). We track the issue here: https://bugzilla.redhat.com/show_bug.cgi?id=1364132 and the patch that should resolve it is here: https://gerrit.ovirt.org/#/c/71472/ Applying the change manually or waiting for a new snapshot package in http://resources.ovirt.org/pub/ovirt-4.1-snapshot/rpm/<distro>/noarch/ might help you in the meantime. Best regards -- Martin Sivak SLA / oVirt On Mon, Feb 6, 2017 at 8:14 PM, Berger, Sandy <SBERGER@qg.com> wrote:
I’ve been running oVirt 4.0.x for a while now and upgraded the engine and hosts to 4.1. Sometimes, on both 4.0 and 4.1, trying to run the “hosted-engine –console” command gives the following results:
The engine VM is running on this host
Connected to domain HostedEngine
Escape character is ^]
error: internal error: cannot find character device <null>
Once this starts occurring, it never works again.
When this happens I note that the hvc0 device does not exist in /dev and therefore there is no getty process running for that device. I notice that the “Enable VirtIO serial console” box is not checked on the hosted engine VM but when I check it and click OK it’s unchecked again when I open up the edit window again.
How do I get console control back from my oVirt hosts?
Thank you,
Sandy Berger
Follow Us: Facebook | Twitter | LinkedIn | YouTube
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users Follow Us: Facebook<http://www.qg.com/social1> | Twitter<http://www.qg.com/social2> | LinkedIn<http://www.qg.com/social3> | YouTube<http://www.qg.com/social4>

since the 4.1 upgrade the console button in the toolbar for the hosted engine is dimmed in the GUI. That is still the case. Is that expected behavior with 4.1 or is there some other issue going on?
Also, when I use the command "ssh -t -p 2222 ovirt-vmconsole@engine," I get a menu of VMs that I can choose from and get a serial console to them. That option has never worked for the hosted engine. The engine shows up as a menu item but selecting it yields a socket error. This works successfully on the other VMs.
Honestly, I have no idea here. I do not think we ever supported those for hosted engine and the ssh console I hear the first time about. I opened a bug so we can properly investigated it: https://bugzilla.redhat.com/show_bug.cgi?id=1420115 Best regards Martin On Tue, Feb 7, 2017 at 8:17 PM, Berger, Sandy <SBERGER@qg.com> wrote:
Thank you for your response. I installed the ovirt-hosted-engine-ha and ovirt-hosted-engine-setup RPMs from the snapshot link you sent me onto the two hosts that can host the engine. I re-ran engine-setup on the engine just in case and rebooted the two hosts capable of hosting the engine and the engine itself. I am now able to run the "hosted-engine --console" command successfully but since the 4.1 upgrade the console button in the toolbar for the hosted engine is dimmed in the GUI. That is still the case. Is that expected behavior with 4.1 or is there some other issue going on?
Also, when I use the command "ssh -t -p 2222 ovirt-vmconsole@engine," I get a menu of VMs that I can choose from and get a serial console to them. That option has never worked for the hosted engine. The engine shows up as a menu item but selecting it yields a socket error. This works successfully on the other VMs.
Thanks! --Sandy
-----Original Message----- From: users-bounces@ovirt.org [mailto:users-bounces@ovirt.org] On Behalf Of Martin Sivak Sent: Monday, February 06, 2017 4:21 PM To: users@ovirt.org Subject: Re: [ovirt-users] missing hvc0 device on hosted engine
Hi,
we know about this and we already pushed patches that should resolve this issue in 4.1.1 (one was merged today in fact).
We track the issue here: https://bugzilla.redhat.com/show_bug.cgi?id=1364132 and the patch that should resolve it is here: https://gerrit.ovirt.org/#/c/71472/
Applying the change manually or waiting for a new snapshot package in http://resources.ovirt.org/pub/ovirt-4.1-snapshot/rpm/<distro>/noarch/ might help you in the meantime.
Best regards
-- Martin Sivak SLA / oVirt
On Mon, Feb 6, 2017 at 8:14 PM, Berger, Sandy <SBERGER@qg.com> wrote:
I’ve been running oVirt 4.0.x for a while now and upgraded the engine and hosts to 4.1. Sometimes, on both 4.0 and 4.1, trying to run the “hosted-engine –console” command gives the following results:
The engine VM is running on this host
Connected to domain HostedEngine
Escape character is ^]
error: internal error: cannot find character device <null>
Once this starts occurring, it never works again.
When this happens I note that the hvc0 device does not exist in /dev and therefore there is no getty process running for that device. I notice that the “Enable VirtIO serial console” box is not checked on the hosted engine VM but when I check it and click OK it’s unchecked again when I open up the edit window again.
How do I get console control back from my oVirt hosts?
Thank you,
Sandy Berger
Follow Us: Facebook | Twitter | LinkedIn | YouTube
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users Follow Us: Facebook<http://www.qg.com/social1> | Twitter<http://www.qg.com/social2> | LinkedIn<http://www.qg.com/social3> | YouTube<http://www.qg.com/social4>

This is a multi-part message in MIME format. --------------97603545FA3E5AEFEB71090E Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit On 02/06/2017 08:14 PM, Berger, Sandy wrote:
Ive been running oVirt 4.0.x for a while now and upgraded the engine and hosts to 4.1. Sometimes, on both 4.0 and 4.1, trying to run the hosted-engine console command gives the following results:
The engine VM is running on this host
Connected to domain HostedEngine
Escape character is ^]
error: internal error: cannot find character device <null>
Once this starts occurring, it never works again.
When this happens I note that the hvc0 device does not exist in /dev and therefore there is no getty process running for that device. I notice that the Enable VirtIO serial console box is not checked on the hosted engine VM but when I check it and click OK its unchecked again when I open up the edit window again.
How do I get console control back from my oVirt hosts?
Hi, it is strongly recommended to use ttyS0 (legacy serial driver emulation) and not hvc0 (newer virtio serial driver) because we had reports of kernel panics (!!!!) using the new driver. We are going to re-evaluate this setting for 4.2.0, and, perhaps, later 4.1.z, but for 4.1.0 this is still valid. In terms of Vm configuration, the console device should have the "consoleType" = "serial" setting. This is the default Engine sends. Not sure what HE is doing here, not if you fix it manually. -- Francesco Romani Red Hat Engineering Virtualization R & D IRC: fromani --------------97603545FA3E5AEFEB71090E Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit <html> <head> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <br> <div class="moz-cite-prefix">On 02/06/2017 08:14 PM, Berger, Sandy wrote:<br> </div> <blockquote cite="mid:DM5PR05MB3161434BD7A421FDC8D5FBCAD5400@DM5PR05MB3161.namprd05.prod.outlook.com" type="cite"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="Generator" content="Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:11.0pt; font-family:"Calibri",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:#0563C1; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:#954F72; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:"Calibri",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-family:"Calibri",sans-serif;} @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--> <div class="WordSection1"> <p class="MsoNormal">Ive been running oVirt 4.0.x for a while now and upgraded the engine and hosts to 4.1. Sometimes, on both 4.0 and 4.1, trying to run the hosted-engine console command gives the following results:<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><span style="font-family:"Courier New"">The engine VM is running on this host<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family:"Courier New"">Connected to domain HostedEngine<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family:"Courier New"">Escape character is ^]<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family:"Courier New"">error: internal error: cannot find character device <null><o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Once this starts occurring, it never works again.<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">When this happens I note that the hvc0 device does not exist in /dev and therefore there is no getty process running for that device. I notice that the Enable VirtIO serial console box is not checked on the hosted engine VM but when I check it and click OK its unchecked again when I open up the edit window again.<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">How do I get console control back from my oVirt hosts?<o:p></o:p></p> </div> </blockquote> <br> Hi, <br> <br> it is strongly recommended to use ttyS0 (legacy serial driver emulation) and not hvc0 (newer virtio serial driver) because we had reports<br> of kernel panics (!!!!) using the new driver.<br> We are going to re-evaluate this setting for 4.2.0, and, perhaps, later 4.1.z, but for 4.1.0 this is still valid.<br> <br> In terms of Vm configuration, the console device should have the "consoleType" = "serial" setting.<br> <br> This is the default Engine sends.<br> <br> Not sure what HE is doing here, not if you fix it manually.<br> <br> <pre class="moz-signature" cols="72">-- Francesco Romani Red Hat Engineering Virtualization R & D IRC: fromani</pre> </body> </html> --------------97603545FA3E5AEFEB71090E--
participants (3)
-
Berger, Sandy
-
Francesco Romani
-
Martin Sivak