Hide Forgot
Description of problem: During the installation with "hosted-engine --deploy" a VM is created where manual steps have to be started. The created VNC connection is possible but no login credentials work on the machine, but the VNC connection is possible. A connection to the console with "hosted-engine --console" gives the following error message, see "actual results" Version-Release number of selected component (if applicable): CentOS Linux release 7.2.1511 (Core) 3.10.0-327.36.1.el7.x86_64 ovirt-hosted-engine-setup-2.0.2.2-1.el7.centos.noarch Steps to Reproduce: 1. yum install http://resources.ovirt.org/pub/yum-repo/ovirt-release40.rpm 2. yum install ovirt-hosted-engine-setup ovirt-engine-appliance 3. hosted-engine --deploy 4. When the setup is read and print the connection information connect with "hosted-engine --console" Actual results: ----------------------- hosted-engine --console /usr/share/vdsm/vdsClient.py:33: DeprecationWarning: vdscli uses xmlrpc. since ovirt 3.6 xmlrpc is deprecated, please use vdsm.jsonrpcvdscli from vdsm import utils, vdscli, constants The engine VM is running on this host Connected to domain HostedEngine Escape character is ^] error: internal error: character device console0 is not using a PTY ----------------------- Expected results: A connection should be possible
Workaround to reset the root password: 1. Get the Engine name: "virsh list". Admin/Password_from_the_setup 2. Note the disk id from "virsh dumpxml HostedEngine" 2.1 eg: <target path='/rhev/data-center/mnt/192.168.0.1:_home_ovirt/1963437f-4592-4bd4-80d5-c3c5f336bc3f/images/7a2f6a4d-c18e-4095-a95a-9791134d8cb1/546621eb-4e3c-45e2-bc43-da3621fa50d2.lease'/> 3. Navigate to the disk "cd /home/ovirt/1963437f-4592-4bd4-80d5-c3c5f336bc3f/images/7a2f6a4d-c18e-4095-a95a-9791134d8cb1" 4. Get the partition starting point: "fdisk -l 546621eb-4e3c-45e2-bc43-da3621fa50d2" 4.1 Start 2048*512=1048576 5. Mount the disk "mount -o loop,offset=1048576 546621eb-4e3c-45e2-bc43-da3621fa50d2 /mnt/tmp" 6. chroot /mnt/tmp 7. passwd Now it's possible to login to the VM via VNC
UPDATE: After clearing the machine and restart the installation now with cloud-init it works like expected. Can be closed
Hi, Actually this bug is still present in RHVH 4.1, it is not possible to connect to the console while # hosted-engine --deploy is running. And if the deploy fails, it's not possible to connect to the console either. Thanks, ---- # hosted-engine --console The engine VM is running on this host Connected to domain HostedEngine Escape character is ^] error: internal error: character device console0 is not using a PTY
Plus in the deploy's output the ovirt link containing Serial_Console_Setup is broken.