# Cannot open VNC console

**URL:** https://forum.opennebula.io/t/cannot-open-vnc-console/2950
**Category:** Product Support
**Created:** [September 20, 2016, 4:53pm UTC](https://forum.opennebula.io/t/cannot-open-vnc-console/2950 "2016-09-20T16:53:30Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Sergi](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@Sergi](https://forum.opennebula.io/u/Sergi)
#### Post date: [September 20, 2016, 4:53pm UTC](https://forum.opennebula.io/t/cannot-open-vnc-console/2950/1 "2016-09-20T16:53:30Z")

</div>

Hi,

I have problems to open VNC console of virtual machines.

I activated gdb server on a esx server. After, before importing machines, I modified .vmx file of a test virtual machine.

I added this lines on a .vmx file.  
remoteDisplay.vnc.enabled = "TRUE"  
remoteDisplay.vnc.password = "password"  
remoteDisplay.vnc.port = “5907”

After, I imported a virtual machine. I can start, stop, restart virtual machine, but the vnc icon is grey…and i can not open vnc console.

Anyone can help me?

Thanks!

---

<div class="post-metadata">

### Author: ![anandharaj](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@anandharaj](https://forum.opennebula.io/u/anandharaj)
#### Post date: [September 21, 2016, 6:52am UTC](https://forum.opennebula.io/t/cannot-open-vnc-console/2950/2 "2016-09-21T06:52:09Z")

</div>

Can you show your VM template? Do you have section “GRAPHICS”& “INPUT” in your vm template?

---

<div class="post-metadata">

### Author: ![Sergi](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@Sergi](https://forum.opennebula.io/u/Sergi)
#### Post date: [September 21, 2016, 9:46am UTC](https://forum.opennebula.io/t/cannot-open-vnc-console/2950/3 "2016-09-21T09:46:16Z")

</div>

What you need see?

This is a production virtual machine. What is this sections? I have to do more changes?

Thans a lot.

---

<div class="post-metadata">

### Author: ![Sergi](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@Sergi](https://forum.opennebula.io/u/Sergi)
#### Post date: [September 21, 2016, 7:12pm UTC](https://forum.opennebula.io/t/cannot-open-vnc-console/2950/4 "2016-09-21T19:12:53Z")

</div>

I could set the graphic to the machine and now I get the vnc icon.

But I try to connect and have this error:

Failed to connect to server (code: 1006)

I installed the sunstone and continuous alike.

Any suggestions?

Besides, there is a way to configure the graphic part for all imported machines? Or the only way is to do machine by machine?

Thanks!

---

<div class="post-metadata">

### Author: ![anandharaj](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@anandharaj](https://forum.opennebula.io/u/anandharaj)
#### Post date: [September 23, 2016, 1:39am UTC](https://forum.opennebula.io/t/cannot-open-vnc-console/2950/5 "2016-09-23T01:39:08Z")

</div>

AFAIK, you need to do for each VM individually.

You verify the noVNC service is running and the port is accessible. After check the VNC port for that VM.

---

<div class="post-metadata">

### Author: ![Sergi](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@Sergi](https://forum.opennebula.io/u/Sergi)
#### Post date: [September 23, 2016, 9:10am UTC](https://forum.opennebula.io/t/cannot-open-vnc-console/2950/6 "2016-09-23T09:10:23Z")

</div>

If I chech opennebula-novnc service, the status is active. This is the service that you say?  
What is the port of noVNC for check if is accessible?

I see that after importing virtual machine, changes that I had in the .vmx file, dissapear. It’s normal?

It’s necessary install other service in opennebula appliance?

---

<div class="post-metadata">

### Author: ![Sergi](https://avatars.discourse-cdn.com/v4/letter/s/9fc29f/32.png) [@Sergi](https://forum.opennebula.io/u/Sergi)
#### Post date: [September 24, 2016, 12:06pm UTC](https://forum.opennebula.io/t/cannot-open-vnc-console/2950/7 "2016-09-24T12:06:22Z")

</div>

If i try to connect by vnc viewer to a virtual machine, I can!

I have this configuration in opennebula virtual machine conf:  
KEYMAP es  
LISTEN 0.0.0.0  
TYPE VNC

In opennebula I have this service running:  
[root@localhost bin]# sunstone-server start  
VNC proxy started  
[root@localhost bin]# novnc-server status  
VNC is running

---

<div class="post-metadata">

### Author: ![samirbazan](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/samirbazan/32/5235_2.png) [@samirbazan](https://forum.opennebula.io/u/samirbazan)
#### Post date: [July 26, 2017, 6:51am UTC](https://forum.opennebula.io/t/cannot-open-vnc-console/2950/8 "2017-07-26T06:51:29Z")

</div>

My Friend!

 ![](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/b/b5cee62ec332beefb1cf6792e43b62d9a2ac13bf.png)
