PowerVC

PowerVC

Connect, learn, share, and engage with IBM Power.

 View Only

Using the virtual console

By Archive User posted Mon December 05, 2016 12:00 AM

  


By: Himabindu P J

IBM PowerVC Software Engineer



 



PowerVC 1.3.2 introduces a new feature called virtual machine console. This feature allows you to open a remote console to virtual machines managed by PowerVM NovaLink. You can view the terminal session of one or more virtual machines with or without network connectivity to the outside world. This feature is available for all the supported guest operating systems, which includes AIX, RHEL, SUSE Linux, Ubuntu Linux and IBMi. 





Accessing this feature requires the following:




  • The pvm-novalink/pypowervm packages on the NovaLink system must be at 1.0.0.4 or later. Follow the instructions here for verifying the NovaLink version.

  • You must be using NovaLink to manage the virtual machine, not HMC.

  • The user must have one of these roles: admin, vm_manager, vm_user, deployer, or self_service.



Accessing the virtual console




  1. In the PowerVC user interface, click the virtual machine’s name to open its Details pane: 

  2. From the details pane, click the Console tab to view the console of the virtual machine.  

  3. The console opens within the PowerVC user interface: 



Use the Reconnect button if you are unable to view the console:  



If you want a full view of the virtual machine console or if you need to work on multiple virtual machines simultaneously, click “Launch console in a new window” to open the virtual console in a new browser tab. Note that you might need to remove the PowerVC browser address from your pop-up blocker list in order for the console to open.  



Troubleshooting virtual machine console issues:





  • When viewing the virtual console in Internet Explorer, you might encounter certificate errors. This is because the console uses self-signed certificates and you can safely ignore those errors.





 





  • If the virtual machine terminal session is opened outside of PowerVC, you may encounter the error as shown below while opening a virtual console. To get rid of this issue, kill the mkvterm process using the command “rmvterm –id <LPAR ID>” on a NovaLink host. 




  • If you get the error “Unable to establish a console connection,” check the virtual machine’s status. You cannot launch the console for virtual machines in “Building” or “Failed” state. If you receive this error, wait for the virtual machine to be in “Active” state. 




  • If you encounter this error, “Failed to connect to server (code:1006)”, the port might be blocked by a firewall. 

    Execute the below two commands on the NovaLink host to enable the virtual console.

    firewall-cmd --zone=public --add-port=5901-5999/tcp

    firewall-cmd --zone=public --add-port=5901-5999/tcp –permanent 








  • If the console page hangs, ensure that the two services “openstack-nova-consoleauth” and “openstack-nova-novncproxy“ are running on the management server. You can click “Verify Environment” on the PowerVC home page to confirm that these services are up and running.



Now you can easily work on virtual machine consoles.  If you have comments or questions, post them below.  We’d love to hear from you! And don’t forget to follow us on LinkedIn, Twitter, and Facebook!




6 comments
4 views

Permalink

Comments

Fri October 20, 2017 02:23 PM

Patience provided a good result. Thank you

Fri October 20, 2017 01:14 PM

It will disconnect from the console if its been inactive for atleast 5 min.

Fri October 20, 2017 12:53 PM

Seems there is not a way to remove the console tab. I did try a few other things, like making it a separate window and then closing the window. Then also getting out of the VM details tab all together. But in all cases it is leaving the console in a connected state. Only way I have been able to remove is by using rmvterm from the novalink lpar. Maybe disconnect is not designed into the GUI?

Fri October 20, 2017 10:52 AM

Hi,
If you want to disconnect from the PowerVC Console, we need to close the console tab.
It will automatically close the mkvterm session of the virtual machine.
We can reconnect back again to the same console by using PowerVC console tab .

Thu October 19, 2017 11:03 PM

Once you have a console working from the PowerVC console tab, can you disconnect from it in similar fashion to what is used in vtterm with "~."
Is there a key sequence to do that?

Tue December 20, 2016 08:41 PM

This message was posted by a user wishing to remain anonymous
[…] Learn more in the Virtual console blog. […]