VNC don't loaded into Opennebula

I configured, enabled VNC for more that 50 VM’s ( vCenter ) like this :
(added to .vmx file configuration)
remotedisplay.vnc.enabled = "TRUE"
remotedisplay.vnc.ip = "0.0.0.0"
remotedisplay.vnc.port = “5997”

I restarted all VM’s and imported to Opennebula, only 5% of them have VNC enabled.

I don’t find the issue.

How can i fix this ?

Thanks
Cristian

Hi Cristian,

Can you share the information of a imported VM in which VNC does not work?

onevm show -x

where is the ID of the VM.

Hi Tino,

  Yes, for this VM vnc is working.

VIRTUAL MACHINE 103 INFORMATION
ID : 103
NAME : VPS048
USER : cloudadmin
GROUP : oneadmin
STATE : ACTIVE
LCM_STATE : RUNNING
RESCHED : No
HOST : EMEA
CLUSTER ID : 100
CLUSTER : EMEA
START TIME : 04/21 17:16:47
END TIME : -
DEPLOY ID : 420ac34b-bfbe-507e-09fd-668bde37019b

VIRTUAL MACHINE MONITORING
USED CPU : 40
USED MEMORY : 6G
NET_RX : 0K
NET_TX : 0K

PERMISSIONS
OWNER : um-
GROUP : —
OTHER : —

VIRTUAL MACHINE HISTORY
SEQ HOST ACTION DS START TIME PROLOG
0 EMEA none -1 04/21 17:16:59 7d 17h46m 0h00m00s

USER TEMPLATE
DESCRIPTION="vCenter Virtual Machine imported by OpenNebula from Cluster EMEA"
HYPERVISOR="vcenter"
PUBLIC_CLOUD=[
TYPE=“vcenter”,
VM_TEMPLATE=“420ac34b-bfbe-507e-09fd-668bde37019b” ]
SCHED_REQUIREMENTS=“NAME=“EMEA””

VIRTUAL MACHINE TEMPLATE
AUTOMATIC_REQUIREMENTS="!(PUBLIC_CLOUD = YES) | (PUBLIC_CLOUD = YES & (HYPERVISOR = vcenter))"
CPU="3"
ESX_HOST="1xx.xxx.xx.xx"
GRAPHICS=[
LISTEN=“0.0.0.0”,
PORT=“5997”,
TYPE=“vnc” ]
GUEST_IP="15x.xx.xxx.xxx"
GUEST_STATE="running"
IMPORTED="YES"
MEMORY="6144"
VCPU="3"
VMID="103"
VMWARETOOLS_RUNNING_STATUS="guestToolsRunning"
VMWARETOOLS_VERSION="9355"
VMWARETOOLS_VERSION_STATUS=“guestToolsCurrent”

An this is the configuration from vmx

.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "8"
vmci0.present = "TRUE"
displayName = "VPSSquareP048"
extendedConfigFile = "VPS048.vmxf"
svga.vramSize = "67108864"
numvcpus = "3"
memSize = "6144"
sched.cpu.units = "mhz"
tools.upgrade.policy = "manual"
scsi0.virtualDev = "lsisas1068"
scsi0.present = "TRUE"
ide1:0.startConnected = "FALSE"
ide1:0.deviceType = "cdrom-image"
ide1:0.fileName = "/vmfs/volumes/54dfa560-5bde135e-4c02-002590a2482e/OS/Win81AIO-20in1-x64-en-US-Nov2013.iso"
ide1:0.present = "TRUE"
scsi0:0.deviceType = "scsi-hardDisk"
scsi0:0.fileName = "VPSSquareP048.vmdk"
sched.scsi0:0.shares = "normal"
scsi0:0.present = "TRUE"
floppy0.startConnected = "FALSE"
floppy0.clientDevice = "TRUE"
floppy0.fileName = "vmware-null-remote-floppy"
ethernet0.virtualDev = "vmxnet3"
ethernet0.dvs.switchId = "cb 95 0a 50 75 19 db 78-a0 08 f7 2e be 17 20 57"
ethernet0.addressType = "static"
ethernet0.address = "00:50:56:05:00:62"
ethernet0.present = "TRUE"
guestOS = "windows8-64"
toolScripts.afterPowerOn = "TRUE"
toolScripts.afterResume = "TRUE"
toolScripts.beforeSuspend = "TRUE"
toolScripts.beforePowerOff = "TRUE"
tools.syncTime = "FALSE"
uuid.bios = "42 0a c3 4b bf be 50 7e-09 fd 66 8b de 37 01 9b"
vc.uuid = "50 0a 48 cd ea 4f e1 16-92 fb 9d eb 66 e6 ab fb"
sched.cpu.latencySensitivity = "normal"
vmci.filter.enable = "true"
sched.scsi0:0.throughputCap = "off"
tools.guest.desktop.autolock = "false"
nvram = "VPSSquareP048.nvram"
pciBridge0.present = "TRUE"
svga.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
hpet0.present = "TRUE"
virtualHW.productCompatibility = "hosted"
cpuid.coresPerSocket = "3"
ethernet0.pciSlotNumber = "192"
evcCompatibilityMode = "FALSE"
guestCPUID.0 = "0000000d756e65476c65746e49656e69"
guestCPUID.1 = "000206d700040800969822031fabfbff"
guestCPUID.80000001 = "00000000000000000000000128100800"
hostCPUID.0 = "0000000d756e65476c65746e49656e69"
hostCPUID.1 = "000206d70020080017bee3ffbfebfbff"
hostCPUID.80000001 = "0000000000000000000000012c100800"
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
replay.supported = "FALSE"
scsi0.pciSlotNumber = "160"
scsi0.sasWWID = "50 05 05 6b bf be 50 70"
softPowerOff = "FALSE"
tools.remindInstall = "FALSE"
toolsInstallManager.lastInstallError = "0"
toolsInstallManager.updateCounter = "1"
userCPUID.0 = "0000000d756e65476c65746e49656e69"
userCPUID.1 = "000206d700200800169822031fabfbff"
userCPUID.80000001 = "00000000000000000000000128100800"
vm.genidX = "4423646909319350133"
vmci0.pciSlotNumber = "32"
vmotion.checkpointFBSize = "67108864"
mks.enable3d = "TRUE"
sched.cpu.min = "0"
sched.cpu.shares = "normal"
sched.mem.min = "0"
sched.mem.minSize = "0"
sched.mem.shares = "normal"
ethernet0.dvs.portId = "25"
ethernet0.dvs.portgroupId = "dvportgroup-35"
ethernet0.dvs.connectionId = "1418606423"
sched.swap.derivedName = "/vmfs/volumes/55263992-c5e03c8e-ef1f-002590a74428/VPS048/VPS048-2e51530a.vswp"
uuid.location = "56 4d 79 92 b1 ab aa 28-be ac 94 be 53 d5 06 c2"
replay.filename = ""
scsi0:0.redo = ""
vmci0.id = "-566820453"
vm.genid = "8598852579579696378"
cleanShutdown = "FALSE"
remotedisplay.vnc.enabled = "TRUE"
remotedisplay.vnc.ip = "0.0.0.0"
remotedisplay.vnc.port = “5997”


And for this one, not working

VIRTUAL MACHINE 129 INFORMATION
ID : 129
NAME : VPS040
USER : cloudadmin
GROUP : oneadmin
STATE : ACTIVE
LCM_STATE : RUNNING
RESCHED : No
HOST : EMEA
CLUSTER ID : 100
CLUSTER : EMEA
START TIME : 04/21 17:16:48
END TIME : -
DEPLOY ID : 420a0434-31c6-dbc8-e07b-d5e21df8d162

VIRTUAL MACHINE MONITORING
USED CPU : 0
NET_RX : 0K
NET_TX : 0K
USED MEMORY : 1.8G

PERMISSIONS
OWNER : um-
GROUP : —
OTHER : —

VIRTUAL MACHINE HISTORY
SEQ HOST ACTION DS START TIME PROLOG
0 EMEA none -1 04/21 17:17:01 7d 18h05m 0h00m00s

USER TEMPLATE
DESCRIPTION="vCenter Virtual Machine imported by OpenNebula from Cluster EMEA"
HYPERVISOR="vcenter"
PUBLIC_CLOUD=[
TYPE=“vcenter”,
VM_TEMPLATE=“420a0434-31c6-dbc8-e07b-d5e21df8d162” ]
SCHED_REQUIREMENTS=“NAME=“EMEA””

VIRTUAL MACHINE TEMPLATE
AUTOMATIC_REQUIREMENTS="!(PUBLIC_CLOUD = YES) | (PUBLIC_CLOUD = YES & (HYPERVISOR = vcenter))"
CPU="1"
ESX_HOST="xxx.xxx.xxx.xxx"
GUEST_IP="xxx.xxx.xxx.xxx"
GUEST_STATE="running"
IMPORTED="YES"
MEMORY="2048"
VCPU="1"
VMID="129"
VMWARETOOLS_RUNNING_STATUS="guestToolsRunning"
VMWARETOOLS_VERSION="9355"
VMWARETOOLS_VERSION_STATUS=“guestToolsCurrent”
[oneadmin@opennebula ~]$

And this is the configuration from vmx


.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "8"
vmci0.present = "TRUE"
displayName = "VPS040"
extendedConfigFile = "VPS040.vmxf"
svga.vramSize = "8388608"
memSize = "2048"
sched.cpu.units = "mhz"
tools.upgrade.policy = "manual"
scsi0.virtualDev = "lsisas1068"
scsi0.present = "TRUE"
ide1:0.startConnected = "FALSE"
ide1:0.deviceType = "cdrom-image"
ide1:0.fileName = "/vmfs/volumes/54dbc2d9-64add083-5be4-0cc47a0c897e/OS/Win.2008.R2.SP1.en-US.Oct2013.iso"
ide1:0.present = "TRUE"
scsi0:0.deviceType = "scsi-hardDisk"
scsi0:0.fileName = "VPS040.vmdk"
sched.scsi0:0.shares = "normal"
scsi0:0.present = "TRUE"
floppy0.startConnected = "FALSE"
floppy0.clientDevice = "TRUE"
floppy0.fileName = "vmware-null-remote-floppy"
ethernet0.virtualDev = "e1000"
ethernet0.addressType = "static"
ethernet0.address = "00:50:56:0a:55:08"
ethernet0.present = "TRUE"
guestOS = "windows7srv-64"
toolScripts.afterPowerOn = "TRUE"
toolScripts.afterResume = "TRUE"
toolScripts.beforeSuspend = "TRUE"
toolScripts.beforePowerOff = "TRUE"
tools.syncTime = "FALSE"
uuid.bios = "42 0a 04 34 31 c6 db c8-e0 7b d5 e2 1d f8 d1 62"
vc.uuid = "50 0a 0a 13 82 04 4f 2e-a1 c5 9f 84 eb 33 4b d8"
sched.cpu.latencySensitivity = "low"
vmci.filter.enable = "true"
sched.scsi0:0.throughputCap = "off"
tools.guest.desktop.autolock = "FALSE"
nvram = "VPSTriangle040.nvram"
pciBridge0.present = "TRUE"
svga.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
hpet0.present = "TRUE"
virtualHW.productCompatibility = "hosted"
disk.EnableUUID = "true"
ethernet0.pciSlotNumber = "32"
evcCompatibilityMode = "FALSE"
guestCPUID.0 = "0000000d756e65476c65746e49656e69"
guestCPUID.1 = "000206d700010800969822030fabfbff"
guestCPUID.80000001 = "00000000000000000000000128100800"
hostCPUID.0 = "0000000d756e65476c65746e49656e69"
hostCPUID.1 = "000206d70020080017bee3ffbfebfbff"
hostCPUID.80000001 = "0000000000000000000000012c100800"
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
replay.supported = "FALSE"
scsi0.pciSlotNumber = "160"
scsi0.sasWWID = "50 05 05 64 31 c6 db c0"
softPowerOff = "FALSE"
tools.remindInstall = "FALSE"
toolsInstallManager.lastInstallError = "0"
toolsInstallManager.updateCounter = "1"
userCPUID.0 = "0000000d756e65476c65746e49656e69"
userCPUID.1 = "000206d700200800169822030fabfbff"
userCPUID.80000001 = "00000000000000000000000128100800"
vmci0.pciSlotNumber = "33"
vmotion.checkpointFBSize = "8388608"
vcpu.hotadd = "true"
mem.hotadd = "true"
sched.cpu.min = "0"
sched.cpu.shares = "normal"
sched.mem.min = "0"
sched.mem.minSize = "0"
sched.mem.shares = "normal"
ethernet0.dvs.switchId = "cb 95 0a 50 75 19 db 78-a0 08 f7 2e be 17 20 57"
ethernet0.dvs.portId = "22"
ethernet0.dvs.portgroupId = "dvportgroup-35"
ethernet0.dvs.connectionId = "1635801800"
sched.swap.derivedName = "/vmfs/volumes/55263992-c5e03c8e-ef1f-002590a74428/VPSTriangle040/VPS040-dee6b9b7.vswp"
uuid.location = "56 4d a9 bd d0 db d6 67-3f 74 81 8b c4 78 69 a5"
replay.filename = ""
scsi0:0.redo = ""
vmci0.id = "502845794"
cleanShutdown = "FALSE"
remotedisplay.vnc.enabled = "TRUE"
remotedisplay.vnc.ip = "0.0.0.0"
remotedisplay.vnc.port = “5997”

Regards,
Cristian