Enabling VNC on Existing KVM Instances
This article outlines the steps needed to enable VNC on existing virtual machines.
Step 1 - Shutdown the Instance
SSH into the host where the virtual machine of interest resides. To shut down the virtual machine gracefully, invoke the following command on the terminal:
where test-vm is the name of the virtual machine.
Check to see if the instance is in the shut off state by invoking the following:
You may also SSH into the instance and power off the instance from the terminal.
If all else fails, you may want to shutdown the instance ungracefully
Step 2 - Edit the Virtual Machine's XML Configuration
After verifying that the instance is shut off, open the instance's XML configuration:
Add the following inside the
It should look similar to this:
Step 3 - Start the Instance
Start the instance after saving the configuration:
To verify whether the configuration succeeded, run the following on the terminal:
You should see something similar to this:
Thank you for your feedback! What did you like about this article?
Thank you for your feedback! How could this article be improved?
Thank you for your feedback!