[ovirt-users] Re: Console to HostedEngine

2018-08-24 Thread Daniel Menzel

Hi Simone,
it worked - I can access the server via SSH again to solve the original 
problem (which is an httpd problem). Concerning the add-console-password 
problem: It sounds weird to me, too.


For others: In my case the console device was there, it just did not 
have any ID or address:


devices={device:console,type:console}

Regards
Daniel


something adding like this should be enough:
devices={device:console,type:console,deviceId:816e131e-5718-45e7-b1e3-81a6dfd51e19,address:None}

and please remove xmlBase64= line if there since it contains the XML for 
libvirt as generated by the engine and that one, if there, wins over the 
dictionary for vdsm.



 > As an alternative, VNC console should work as well; you can set VNC
 > password with
 > hosted-engine --add-console-password

I have tried this, too. The result was the following:

Command VM.updateDevice with args {'params': {'existingConnAction':
'keep', 'graphicsType': 'vnc', 'params': {}, 'ttl': '120',
'deviceType':
'graphics', 'password': ''}, 'vmID': ''} failed:


(code=56, message=Failed to update device)


This sounds really weird.

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/5OULWWI6VIXY3F342RQIJDSMP65ZR5N6/


[ovirt-users] Re: Console to HostedEngine

2018-08-24 Thread Simone Tiraboschi
On Fri, Aug 24, 2018 at 3:00 PM Daniel Menzel <
daniel.men...@hhi.fraunhofer.de> wrote:

> Hello Simone,
> thanks for your reply.
>
> > hosted-engine --vm-shutdown --vm-conf=/root/my_vm.conf
>
> I came across that before but the syntax of this file is nebulous to me
> as it looks like some kind of JSON?! How do I add the serial console
> there? What's the syntax?
>

something adding like this should be enough:
devices={device:console,type:console,deviceId:816e131e-5718-45e7-b1e3-81a6dfd51e19,address:None}

and please remove xmlBase64= line if there since it contains the XML for
libvirt as generated by the engine and that one, if there, wins over the
dictionary for vdsm.


>
> > As an alternative, VNC console should work as well; you can set VNC
> > password with
> > hosted-engine --add-console-password
>
> I have tried this, too. The result was the following:
>
> Command VM.updateDevice with args {'params': {'existingConnAction':
> 'keep', 'graphicsType': 'vnc', 'params': {}, 'ttl': '120', 'deviceType':
> 'graphics', 'password': ''}, 'vmID': ''} failed:
>
>
> (code=56, message=Failed to update device)
>

This sounds really weird.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/YISYGSKT4Q3OPVCNUHHSDHRYTIKKT2OS/


[ovirt-users] Re: Console to HostedEngine

2018-08-24 Thread Daniel Menzel

Hello Simone,
thanks for your reply.


hosted-engine --vm-shutdown --vm-conf=/root/my_vm.conf


I came across that before but the syntax of this file is nebulous to me 
as it looks like some kind of JSON?! How do I add the serial console 
there? What's the syntax?


As an alternative, VNC console should work as well; you can set VNC 
password with

hosted-engine --add-console-password


I have tried this, too. The result was the following:

Command VM.updateDevice with args {'params': {'existingConnAction': 
'keep', 'graphicsType': 'vnc', 'params': {}, 'ttl': '120', 'deviceType': 
'graphics', 'password': ''}, 'vmID': ''} failed: 



(code=56, message=Failed to update device)
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/SLV4GDTQRWSWH4JRW7I23HRXVP6AK5B5/


[ovirt-users] Re: Console to HostedEngine

2018-08-24 Thread Simone Tiraboschi
On Fri, Aug 24, 2018 at 2:04 PM Daniel Menzel <
daniel.men...@hhi.fraunhofer.de> wrote:

> We then tried to access it via its host and a "hosted-engine --console"
> but ran into an
>
> internal error: cannot find character device 
>
> which I know from KVM. With other VMs I could follow the RedHat's advice
> to add a console
> (
> https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_host_configuration_and_guest_installation_guide/app_domain_console)
>
> but although I edited the hosted engine's profile those changes weren't
> applied - and after an engine restart even deleted again. That kind of
> makes sense to me, but limits my options.
>
>
Please see this: https://bugzilla.redhat.com/show_bug.cgi?id=1590943
with engine 4.2.5-1 you can definitively enable the serial console device
editing the engine VM from the engine itself.

If you are not able to reach the engine VM for the upgrade, you can
copy /var/run/ovirt-hosted-engine-ha/vm.conf somewhere, edit it to add the
console device and restart the hosted-engine VM with a custom vm.conf with
something like:

hosted-engine --vm-shutdown --vm-conf=/root/my_vm.conf

As an alternative, VNC console should work as well; you can set VNC
password with
hosted-engine --add-console-password
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/FBU3RVWCOGP4Q5USNQ4Z45JOG2BCPOP4/