How to get the text console for vm?
For the vm base on the RHEL kvm host, I can get the text console from the pts device. For example: I could get the test console from '/dev/pts/1' when console tty=/dev/pts/1. But looks like this does not work for rhev-h, how could I get the text console from rhev-h?
By the way, what's the correct password to connect to the vnc server to display a vm? I tried the password of amdin and root for the rhev-h, but neither works.
And what's the user:password to run the command in virsh for rhev-h?
Responses
In order to connect to a guest text console, you would need to implement a vdsm hook that changes the VM XML to include the console, edit the guest's grub.conf and implement a way to enter the console directly
See http://wiki.ovirt.org/wiki/Features/Serial_Console_in_CLI#Currently_operational_workaround
As for the VNC password, it gets randomly generated for every session and changes 1 minute after you connect, so it cannot be reused.
The API has a "ticket" action for VMs - this is for setting this password manually, so if you need to connect manually, you would need to
1. Start the VM
2. find out on which host it is running and what VNC ports are in use (vdsClient -s 0 list)
3. issue a new ticket for the VM using the API
4. connect to the host:VNC_port with the preset ticket as the password
Kindly refer this: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization_Administration_Guide/sect-Virtualization-Troubleshooting_-Troubleshooting_with_serial_consoles.html
You can also use virt-manager to display the virtual text console. In the guest console window, select Serial 1 in Text Consoles from the View menu.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
