
This is a multipart message in MIME format. ------=_NextPart_000_01A0_01D35009.7C58F9D0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit TIA for any guidance you can give me here, I'm in a bit of a pickle and have spent many hours reading many posts and blogs that don't seem to get me where I need to be, and despite my gut feeling that someone has had to have dealt with this somewhere else, my google-fu is failing me in finding anyone who has dealt with this particular problem. My issue: I've inherited a 4.1 hosted-engine setup. This is for a non-profit, so the previous consultant did what she could to save capital expense by using older gear and oVirt rather than VMware/Hyper-V and newer equipment. For the most part it has worked quite well as I understand it. This particular setup has gone from 3.5 with a standalone engine to 4.1 with a hosted engine, in case that matters. The VMs hosted on the 2 clusters associated with this engine are currently working fine, but I am trying to get into the hosted-engine VM, and either there was a problem with the root password during setup and the hosted-engine-setup script didn't catch it or I've been given a bad password. The previous admin didn't setup any alternative users, which is a major no-no in my book, and so I'm trying to do that - but I can't login to the VM. I can log into the portal and manage the hosts, storage, VMs, etc., just not the HEVM. As I understand it, even if I could set aside my need for alternate users, when it comes time to upgrade I will need access to the HEVM, so I have to solve this at some point. If this were a physical machine, I'd reboot in single user mode and work at things from there, but it's not, and I've not found a good guide to get to the engine console to put it into single user mode. I've found lots (and lots, and lots) of links on the oVirt docs site regarding hosted engine setups that simply don't exist as pages anymore and others that don't address this issue, as well as a couple of links on the RedHat site that made me think I could connect via ssh to the host running the VM, and do some sort of X forwarding, but I haven't come anywhere close to success with that, and since I can't log into the VM, I'm not sure how that would work anyway. I've always struggled with X forwarding, too, so that doesn't help, I'm sure. I read a few posts from what look like the early days of the hosted-engine OVA implying you could launch a console from the management portal and maybe try to reboot and set single user mode there, but they all dead-ended. Also, I may be confused on how the hosted engine works (I find this much more confusing than either VMware or Hyper-V), but if I'm connected to the console via the oVirt management portal and I reboot the VM to try and get into single user mode, wouldn't I lose my connection and still not be able to get into single user mode? I can connect via hosted-engine -console, but that asks me for the root password, which of course I don't have. Am I just doomed to have to rebuild this whole set of servers from scratch or is there some way I could either re-run hosted-engine -deploy so I can set the root password and not lose my current config; or alternatively is there a way to get the VM into single user mode and accessible so I can use normal Linux practices for a lost root password? Thanks for listening and for any help you can possibly give. I'm sure there's some simple thing that I've overlooked, but after hours and hours of trying to solve this one on my own, I have to admit the need for help. Thank you!!!! ------=_NextPart_000_01A0_01D35009.7C58F9D0 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-microsoft-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=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"><meta name=3DGenerator 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=3DEN-US = link=3D"#0563C1" vlink=3D"#954F72"><div class=3DWordSection1><p = class=3DMsoNormal>TIA for any guidance you can give me here, I’m = in a bit of a pickle and have spent many hours reading many posts and = blogs that don’t seem to get me where I need to be, and despite my = gut feeling that someone has had to have dealt with this somewhere else, = my google-fu is failing me in finding anyone who has dealt with this = particular problem.<o:p></o:p></p><p = class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>My = issue:<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p = class=3DMsoNormal>I’ve inherited a 4.1 hosted-engine setup. = This is for a non-profit, so the previous consultant did what she could = to save capital expense by using older gear and oVirt rather than = VMware/Hyper-V and newer equipment. For the most part it has = worked quite well as I understand it. This particular setup has = gone from 3.5 with a standalone engine to 4.1 with a hosted engine, in = case that matters.<o:p></o:p></p><p = class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>The VMs = hosted on the 2 clusters associated with this engine are currently = working fine, but I am trying to get into the hosted-engine VM, and = either there was a problem with the root password during setup and the = hosted-engine-setup script didn’t catch it or I’ve been = given a bad password. The previous admin didn’t setup any = alternative users, which is a major no-no in my book, and so I’m = trying to do that – but I can’t login to the VM. I can = log into the portal and manage the hosts, storage, VMs, etc., just not = the HEVM. As I understand it, even if I could set aside my need = for alternate users, when it comes time to upgrade I will need access to = the HEVM, so I have to solve this at some point.<o:p></o:p></p><p = class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>If this were = a physical machine, I’d reboot in single user mode and work at = things from there, but it’s not, and I’ve not found a good = guide to get to the engine console to put it into single user = mode. I’ve found lots (and lots, and lots) of links on the = oVirt docs site regarding hosted engine setups that simply don’t = exist as pages anymore and others that don’t address this issue, = as well as a couple of links on the RedHat site that made me think I = could connect via ssh to the host running the VM, and do some sort of X = forwarding, but I haven’t come anywhere close to success with = that, and since I can’t log into the VM, I’m not sure how = that would work anyway. I’ve always struggled with X = forwarding, too, so that doesn’t help, I’m = sure.<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p = class=3DMsoNormal>I read a few posts from what look like the early days = of the hosted-engine OVA implying you could launch a console from the = management portal and maybe try to reboot and set single user mode = there, but they all dead-ended. Also, I may be confused on how the = hosted engine works (I find this much more confusing than either VMware = or Hyper-V), but if I’m connected to the console via the oVirt = management portal and I reboot the VM to try and get into single user = mode, wouldn’t I lose my connection and still not be able to get = into single user mode?<o:p></o:p></p><p = class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>I can = connect via hosted-engine –console, but that asks me for the root = password, which of course I don’t have. <o:p></o:p></p><p = class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>Am I just = doomed to have to rebuild this whole set of servers from scratch or is = there some way I could either re-run hosted-engine –deploy so I = can set the root password and not lose my current config; or = alternatively is there a way to get the VM into single user mode and = accessible so I can use normal Linux practices for a lost root = password?<o:p></o:p></p><p class=3DMsoNormal><o:p> </o:p></p><p = class=3DMsoNormal>Thanks for listening and for any help you can possibly = give. I’m sure there’s some simple thing that = I’ve overlooked, but after hours and hours of trying to solve this = one on my own, I have to admit the need for help.<o:p></o:p></p><p = class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>Thank = you!!!!<o:p></o:p></p></div></body></html> ------=_NextPart_000_01A0_01D35009.7C58F9D0--

You might be better off rebuilding. It shouldnt be that hard albeit slightly time consuming. Is this a production environment or is it a lab/test area? Two possible ways for this, I think... 1.) Not sure if HE will use it but if you right click on the HostedEngine VM in the web UI and click edit, then "Initial Run" you may be able to use this and set a new root password there and then reboot it. oVirt HE should pick up the new settings, however, I have only used this on glance VM templates and had moderate success there so not sure if this will work for HE or 2.) And be very cautious, again could be a complete hack....shut down the hosted engine and navigate to its disk storage. Take a backup of the image with qemu-img or rsync --sparse. You can then mount the HE raw disk with a loopback device, activate the LVMs, and then remove the root password from there. Not sure if RHEL7, systemd, or SELinux will block this on reboot, but it'd be my last ditch resort but only after rebuilding the cluster is out of the question On Sat, Oct 28, 2017 at 5:25 PM, Chas Ecomm <chashock@speakfree.net> wrote:
TIA for any guidance you can give me here, I’m in a bit of a pickle and have spent many hours reading many posts and blogs that don’t seem to get me where I need to be, and despite my gut feeling that someone has had to have dealt with this somewhere else, my google-fu is failing me in finding anyone who has dealt with this particular problem.
My issue:
I’ve inherited a 4.1 hosted-engine setup. This is for a non-profit, so the previous consultant did what she could to save capital expense by using older gear and oVirt rather than VMware/Hyper-V and newer equipment. For the most part it has worked quite well as I understand it. This particular setup has gone from 3.5 with a standalone engine to 4.1 with a hosted engine, in case that matters.
The VMs hosted on the 2 clusters associated with this engine are currently working fine, but I am trying to get into the hosted-engine VM, and either there was a problem with the root password during setup and the hosted-engine-setup script didn’t catch it or I’ve been given a bad password. The previous admin didn’t setup any alternative users, which is a major no-no in my book, and so I’m trying to do that – but I can’t login to the VM. I can log into the portal and manage the hosts, storage, VMs, etc., just not the HEVM. As I understand it, even if I could set aside my need for alternate users, when it comes time to upgrade I will need access to the HEVM, so I have to solve this at some point.
If this were a physical machine, I’d reboot in single user mode and work at things from there, but it’s not, and I’ve not found a good guide to get to the engine console to put it into single user mode. I’ve found lots (and lots, and lots) of links on the oVirt docs site regarding hosted engine setups that simply don’t exist as pages anymore and others that don’t address this issue, as well as a couple of links on the RedHat site that made me think I could connect via ssh to the host running the VM, and do some sort of X forwarding, but I haven’t come anywhere close to success with that, and since I can’t log into the VM, I’m not sure how that would work anyway. I’ve always struggled with X forwarding, too, so that doesn’t help, I’m sure.
I read a few posts from what look like the early days of the hosted-engine OVA implying you could launch a console from the management portal and maybe try to reboot and set single user mode there, but they all dead-ended. Also, I may be confused on how the hosted engine works (I find this much more confusing than either VMware or Hyper-V), but if I’m connected to the console via the oVirt management portal and I reboot the VM to try and get into single user mode, wouldn’t I lose my connection and still not be able to get into single user mode?
I can connect via hosted-engine –console, but that asks me for the root password, which of course I don’t have.
Am I just doomed to have to rebuild this whole set of servers from scratch or is there some way I could either re-run hosted-engine –deploy so I can set the root password and not lose my current config; or alternatively is there a way to get the VM into single user mode and accessible so I can use normal Linux practices for a lost root password?
Thanks for listening and for any help you can possibly give. I’m sure there’s some simple thing that I’ve overlooked, but after hours and hours of trying to solve this one on my own, I have to admit the need for help.
Thank you!!!!
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

This is a multi-part message in MIME format. --------------070307060104020506080909 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit On 28-10-2017 23:25, Chas Ecomm wrote:
My issue:
Ive inherited a 4.1 hosted-engine setup. This is for a non-profit, so the previous consultant did what she could to save capital expense by using older gear and oVirt rather than VMware/Hyper-V and newer equipment. For the most part it has worked quite well as I understand it. This particular setup has gone from 3.5 with a standalone engine to 4.1 with a hosted engine, in case that matters.
The VMs hosted on the 2 clusters associated with this engine are currently working fine, but I am trying to get into the hosted-engine VM, and either there was a problem with the root password during setup and the hosted-engine-setup script didnt catch it or Ive been given a bad password. The previous admin didnt setup any alternative users, which is a major no-no in my book, and so Im trying to do that but I cant login to the VM. I can log into the portal and manage the hosts, storage, VMs, etc., just not the HEVM. As I understand it, even if I could set aside my need for alternate users, when it comes time to upgrade I will need access to the HEVM, so I have to solve this at some point.
I assume you checked whether you have sudo rights with the standard user? If not you could also try to add that user to the sudo admin group and that way gain root rights. Both ways you need to get to boot the HE from an alternative boot device. You could use qemu to boot the HE from a rescue CD and reset the password or add your user to the right sudo group. I just tried that on a copy of my HE and can boot my HE with the following command: qemu-system-x86_64.exe -m 1024.000 -name HE -hda t:\HE.qcow Making a copy made the image non-sparse but I didn't try too hard to fix this since I'm trying this out on a W10 PC :-) Regards, Joop --------------070307060104020506080909 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"> <div class="moz-cite-prefix">On 28-10-2017 23:25, Chas Ecomm wrote:<br> </div> <blockquote cite="mid:019f01d35033$652e6590$2f8b30b0$@speakfree.net" 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">My issue:<o:p></o:p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Ive inherited a 4.1 hosted-engine setup. This is for a non-profit, so the previous consultant did what she could to save capital expense by using older gear and oVirt rather than VMware/Hyper-V and newer equipment. For the most part it has worked quite well as I understand it. This particular setup has gone from 3.5 with a standalone engine to 4.1 with a hosted engine, in case that matters.<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">The VMs hosted on the 2 clusters associated with this engine are currently working fine, but I am trying to get into the hosted-engine VM, and either there was a problem with the root password during setup and the hosted-engine-setup script didnt catch it or Ive been given a bad password. The previous admin didnt setup any alternative users, which is a major no-no in my book, and so Im trying to do that but I cant login to the VM. I can log into the portal and manage the hosts, storage, VMs, etc., just not the HEVM. As I understand it, even if I could set aside my need for alternate users, when it comes time to upgrade I will need access to the HEVM, so I have to solve this at some point.<o:p></o:p></p> <br> </div> </blockquote> I assume you checked whether you have sudo rights with the standard user? If not you could also try to add that user to the sudo admin group and that way gain root rights. Both ways you need to get to boot the HE from an alternative boot device.<br> You could use qemu to boot the HE from a rescue CD and reset the password or add your user to the right sudo group.<br> I just tried that on a copy of my HE and can boot my HE with the following command:<br> qemu-system-x86_64.exe -m 1024.000 -name HE -hda t:\HE.qcow<br> Making a copy made the image non-sparse but I didn't try too hard to fix this since I'm trying this out on a W10 PC :-)<br> <br> Regards,<br> <br> Joop<br> <br> <br> </body> </html> --------------070307060104020506080909--

--_000_150938181718326707leedsbeckettacuk_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Some useful commands for the host running the hosted-engine /usr/sbin/hosted-engine --add-console-passw..d /usr/sbin/hosted-engine --console Put it in maintenance, then start an alternate configuration /usr/sbin/hosted-engine --vm-start --vm-conf=3D<file> Load an alternative vm.conf file as a recovery action Regards, Paul S. ________________________________ To view the terms under which this email is distributed, please go to:- http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html --_000_150938181718326707leedsbeckettacuk_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <style type=3D"text/css" style=3D"display:none"><!--P{margin-top:0;margin-b= ottom:0;} @font-face=0A= {font-family:"Cambria Math"}=0A= @font-face=0A= {font-family:Calibri}=0A= p.MsoNormal, li.MsoNormal, div.MsoNormal=0A= {margin:0in;=0A= margin-bottom:.0001pt;=0A= font-size:11.0pt;=0A= font-family:"Calibri",sans-serif}=0A= a:link, span.MsoHyperlink=0A= {color:#0563C1;=0A= text-decoration:underline}=0A= a:visited, span.MsoHyperlinkFollowed=0A= {color:#954F72;=0A= text-decoration:underline}=0A= span.EmailStyle17=0A= {font-family:"Calibri",sans-serif;=0A= color:windowtext}=0A= .MsoChpDefault=0A= {font-family:"Calibri",sans-serif}=0A= @page WordSection1=0A= {margin:1.0in 1.0in 1.0in 1.0in}=0A= div.WordSection1=0A= {}--></style> </head> <body dir=3D"ltr" style=3D"font-size:12pt;color:#000000;background-color:#F= FFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;"> <p>Some useful commands for the host running the hosted-engine</p> <p><br> </p> <p><br> </p> <p>/usr/sbin/hosted-engine --add-console-passw..d</p> <p>/usr/sbin/hosted-engine --console</p> <p><br> </p> <p>Put it in maintenance, then start an alternate configurat= ion</p> <p><br> </p> <p> </p> <p>/usr/sbin/hosted-engine --vm-start --vm-conf=3D<file></p> <p> Load an alternat= ive vm.conf file as a recovery action</p> <p><br> </p> <p>Regards, </p> Paul S. <p><br> </p> <div style=3D"color: rgb(33, 33, 33);"> <hr tabindex=3D"-1" style=3D"display:inline-block; width:98%"> </div> To view the terms under which this email is distributed, please go to:- <br=
<a href=3D"http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaimer.html"= target=3D"_blank">http://disclaimer.leedsbeckett.ac.uk/disclaimer/disclaim= er.html</a> <p></p> </body> </html> --_000_150938181718326707leedsbeckettacuk_--

Hi, the simplest approach is: hosted-engine --set-maintenance --mode=global hosted-engine --vm-shutdown # wait for it hosted-engine --vm-start-paused hosted-engine --add-console-password # open a vnc or spice console pointing to the VM # when ready virsh -c qemu://$(hostname)/system resume HostedEngine # quickly stop the boot process from the vnc or spice console # force root password as for a regular el7 system # shutdown the engine VM hosted-engine --set-maintenance --mode=none On Sat, Oct 28, 2017 at 11:25 PM, Chas Ecomm <chashock@speakfree.net> wrote:
TIA for any guidance you can give me here, I’m in a bit of a pickle and have spent many hours reading many posts and blogs that don’t seem to get me where I need to be, and despite my gut feeling that someone has had to have dealt with this somewhere else, my google-fu is failing me in finding anyone who has dealt with this particular problem.
My issue:
I’ve inherited a 4.1 hosted-engine setup. This is for a non-profit, so the previous consultant did what she could to save capital expense by using older gear and oVirt rather than VMware/Hyper-V and newer equipment. For the most part it has worked quite well as I understand it. This particular setup has gone from 3.5 with a standalone engine to 4.1 with a hosted engine, in case that matters.
The VMs hosted on the 2 clusters associated with this engine are currently working fine, but I am trying to get into the hosted-engine VM, and either there was a problem with the root password during setup and the hosted-engine-setup script didn’t catch it or I’ve been given a bad password. The previous admin didn’t setup any alternative users, which is a major no-no in my book, and so I’m trying to do that – but I can’t login to the VM. I can log into the portal and manage the hosts, storage, VMs, etc., just not the HEVM. As I understand it, even if I could set aside my need for alternate users, when it comes time to upgrade I will need access to the HEVM, so I have to solve this at some point.
If this were a physical machine, I’d reboot in single user mode and work at things from there, but it’s not, and I’ve not found a good guide to get to the engine console to put it into single user mode. I’ve found lots (and lots, and lots) of links on the oVirt docs site regarding hosted engine setups that simply don’t exist as pages anymore and others that don’t address this issue, as well as a couple of links on the RedHat site that made me think I could connect via ssh to the host running the VM, and do some sort of X forwarding, but I haven’t come anywhere close to success with that, and since I can’t log into the VM, I’m not sure how that would work anyway. I’ve always struggled with X forwarding, too, so that doesn’t help, I’m sure.
I read a few posts from what look like the early days of the hosted-engine OVA implying you could launch a console from the management portal and maybe try to reboot and set single user mode there, but they all dead-ended. Also, I may be confused on how the hosted engine works (I find this much more confusing than either VMware or Hyper-V), but if I’m connected to the console via the oVirt management portal and I reboot the VM to try and get into single user mode, wouldn’t I lose my connection and still not be able to get into single user mode?
I can connect via hosted-engine –console, but that asks me for the root password, which of course I don’t have.
Am I just doomed to have to rebuild this whole set of servers from scratch or is there some way I could either re-run hosted-engine –deploy so I can set the root password and not lose my current config; or alternatively is there a way to get the VM into single user mode and accessible so I can use normal Linux practices for a lost root password?
Thanks for listening and for any help you can possibly give. I’m sure there’s some simple thing that I’ve overlooked, but after hours and hours of trying to solve this one on my own, I have to admit the need for help.
Thank you!!!!
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi, you could also do this offline using libguestfs tools: - Find the path to the disk using virsh -r dumpxml HostedEngine - Stop the vm using hosted-engine --vm-shutdown - and then use guestfish tool to edit the filesystem: guestfish --rw -a disk.img Best regards Martin Sivak On Tue, Oct 31, 2017 at 9:00 AM, Simone Tiraboschi <stirabos@redhat.com> wrote:
Hi, the simplest approach is:
hosted-engine --set-maintenance --mode=global hosted-engine --vm-shutdown # wait for it hosted-engine --vm-start-paused hosted-engine --add-console-password # open a vnc or spice console pointing to the VM # when ready virsh -c qemu://$(hostname)/system resume HostedEngine # quickly stop the boot process from the vnc or spice console # force root password as for a regular el7 system # shutdown the engine VM hosted-engine --set-maintenance --mode=none
On Sat, Oct 28, 2017 at 11:25 PM, Chas Ecomm <chashock@speakfree.net> wrote:
TIA for any guidance you can give me here, I’m in a bit of a pickle and have spent many hours reading many posts and blogs that don’t seem to get me where I need to be, and despite my gut feeling that someone has had to have dealt with this somewhere else, my google-fu is failing me in finding anyone who has dealt with this particular problem.
My issue:
I’ve inherited a 4.1 hosted-engine setup. This is for a non-profit, so the previous consultant did what she could to save capital expense by using older gear and oVirt rather than VMware/Hyper-V and newer equipment. For the most part it has worked quite well as I understand it. This particular setup has gone from 3.5 with a standalone engine to 4.1 with a hosted engine, in case that matters.
The VMs hosted on the 2 clusters associated with this engine are currently working fine, but I am trying to get into the hosted-engine VM, and either there was a problem with the root password during setup and the hosted-engine-setup script didn’t catch it or I’ve been given a bad password. The previous admin didn’t setup any alternative users, which is a major no-no in my book, and so I’m trying to do that – but I can’t login to the VM. I can log into the portal and manage the hosts, storage, VMs, etc., just not the HEVM. As I understand it, even if I could set aside my need for alternate users, when it comes time to upgrade I will need access to the HEVM, so I have to solve this at some point.
If this were a physical machine, I’d reboot in single user mode and work at things from there, but it’s not, and I’ve not found a good guide to get to the engine console to put it into single user mode. I’ve found lots (and lots, and lots) of links on the oVirt docs site regarding hosted engine setups that simply don’t exist as pages anymore and others that don’t address this issue, as well as a couple of links on the RedHat site that made me think I could connect via ssh to the host running the VM, and do some sort of X forwarding, but I haven’t come anywhere close to success with that, and since I can’t log into the VM, I’m not sure how that would work anyway. I’ve always struggled with X forwarding, too, so that doesn’t help, I’m sure.
I read a few posts from what look like the early days of the hosted-engine OVA implying you could launch a console from the management portal and maybe try to reboot and set single user mode there, but they all dead-ended. Also, I may be confused on how the hosted engine works (I find this much more confusing than either VMware or Hyper-V), but if I’m connected to the console via the oVirt management portal and I reboot the VM to try and get into single user mode, wouldn’t I lose my connection and still not be able to get into single user mode?
I can connect via hosted-engine –console, but that asks me for the root password, which of course I don’t have.
Am I just doomed to have to rebuild this whole set of servers from scratch or is there some way I could either re-run hosted-engine –deploy so I can set the root password and not lose my current config; or alternatively is there a way to get the VM into single user mode and accessible so I can use normal Linux practices for a lost root password?
Thanks for listening and for any help you can possibly give. I’m sure there’s some simple thing that I’ve overlooked, but after hours and hours of trying to solve this one on my own, I have to admit the need for help.
Thank you!!!!
_______________________________________________ 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
participants (6)
-
Charles Kozler
-
Chas Ecomm
-
Joop
-
Martin Sivak
-
Simone Tiraboschi
-
Staniforth, Paul