VMware Horizon Community
blexcom
Contributor
Contributor

How to unmark a machine as signed out for local mode?

Had some issues in my test view lab, after doing a bunch of fixes I am at the point where the guest is marked as signed out in vCenter and I cannot power it on/migrate it/delete snapshots. In View it doesn't see it as signed out and the same on the client that I signed it out on.

So at this point will I be able to salvage the VM somehow or am I stuck deleting it and building a new one?

Thanks

0 Kudos
6 Replies
npeter
Expert
Expert

Hi,

You can do this with the vdmadmin commandline.

Use the vdmadmin command with the -V option to unlock or lock virtual machines in the datacenter. Also it is possible to decrypt
the virtual machine so that you can recover data from it.

Refer http://www.vmware.com/pdf/view45_admin_guide.pdf  p311 and 312 for more info.

Thanks

Noble

-nObLe
0 Kudos
blexcom
Contributor
Contributor

Ran the command

vdmadmin -V -e -d "nameof my pool" -m "name of my machine" and the output I get back is

Machine Update Information

====================

"Name of machine" : Failed to unlock.

No error messages or reason why, is this the correect syntax for this operation?

0 Kudos
npeter
Expert
Expert

Did you try this one too?

vdmadmin -V [-b authentication_arguments] -e -vcdn vCenter_dn -vmpath inventory_path

Please check view broker logs for any additional error message if the command cannot unlock machines.

-nObLe
0 Kudos
blexcom
Contributor
Contributor

Looks like the error I'm getting is "No VC driver" but not finding much on it so far.

2011-01-13 08:49:10,255 INFO  <4828> [vdmadmin] Program 'vdmadmin - VDM LDAP Admin Utility' started, version=4.5.0 build-293049, pid=4864, buildtype=release, usethread=0, closeafterwrite=0

2011-01-13 08:49:10,257 DEBUG <4828> [vdmadmin] vdmadmin MessageQueueShared started with numThreads=10, queueTreshold=250

2011-01-13 08:49:10,258 DEBUG <4828> [vdmadmin] vdmadmin MessageQueue started with numThreads=10, queueTreshold=1000

2011-01-13 08:49:10,258 DEBUG <4828> [vdmadmin] MessageFrameWork Worker Added,, Description=The Builtin MessageFrameWork Administration Queue, Channel=0000000000000000

2011-01-13 08:49:10,259 DEBUG <4828> [vdmadmin] MessageFrameWork Worker Added,, Description=LDAP Admin Utility, Channel=0000000000000000

2011-01-13 08:49:13,114 DEBUG <PendingOperation-vm-83> [ServiceConnection] Waiting for: 15000ms.

2011-01-13 08:49:14,771 DEBUG <MessageFrameWorkDispatch> [vdmadmin] fetching information for S-1-5-21-1396050607-3719058452-3042150720-1234

2011-01-13 08:49:14,940 DEBUG <DesktopControlSessions> [DesktopTracker] start session reader broadcast

2011-01-13 08:49:15,374 DEBUG <MessageFrameWorkDispatch> [vdmadmin] Detected native mode

2011-01-13 08:49:15,393 DEBUG <MessageFrameWorkDispatch> [vdmadmin] Filter is (&(objectClass=pae-AdminRole)(|(member=cn=S-1-5-21-1396050607-3719058452-3042150720-1234,cn=ForeignSecurityPrincipals,dc=vdi,dc=vmware,dc=int)(member=cn=S-1-5-32-544,cn=ForeignSecurityPrincipals,dc=vdi,dc=vmware,dc=int)(member=cn=S-1-5-21-1396050607-3719058452-3042150720-572,cn=ForeignSecurityPrincipals,dc=vdi,dc=vmware,dc=int)(member=cn=S-1-5-21-1396050607-3719058452-3042150720-512,cn=ForeignSecurityPrincipals,dc=vdi,dc=vmware,dc=int)(member=cn=S-1-5-21-1396050607-3719058452-3042150720-513,cn=ForeignSecurityPrincipals,dc=vdi,dc=vmware,dc=int)(member=cn=S-1-5-32-555,cn=ForeignSecurityPrincipals,dc=vdi,dc=vmware,dc=int)(member=cn=S-1-5-32-545,cn=ForeignSecurityPrincipals,dc=vdi,dc=vmware,dc=int))(|(pae-AdminRolePermissions=Full=Allow)(pae-AdminRolePermissions=Full=Allow)))

2011-01-13 08:49:15,435 DEBUG <SharedMemAuthenticateThread> [MessageFrameWork] Incoming SharedMemory channel from machine VDI-Broker.CORP.LOCAL vdmadmin to wsnm connected as : CORP\svc_composer, Authenticated through SSPI, package = NTLM, encrypting = true, canImpersonate = true

2011-01-13 08:49:15,437 DEBUG <4828> [vdmadmin] Outgoing SharedMemory channel from vdmadmin to machine VDI-Broker.CORP.LOCAL wsnm connected as : corp\svc_composer, Authenticated through SSPI, package = NTLM, encrypting = true

2011-01-13 08:49:15,442 ERROR <Thread-15799> [PoolManager] No VC driver for Lab-vCenter.corp.local

2011-01-13 08:49:15,442 DEBUG <Thread-15799> [jadminservice] Fail to unlock VM:/Datacenter-Regina/Cluster-Production/Desktops/Windows7 Guest com.vmware.vdi.jadminservice.JAdmin.lockVm(SourceFile:448)

java.lang.Exception: No VC driver for Lab-vCenter.corp.local

                at com.vmware.vdi.desktopcontroller.PoolManager.lockVm(SourceFile:1692)

                at com.vmware.vdi.jadminservice.JAdmin.lockVm(SourceFile:434)

                at com.vmware.vdi.jadminservice.JAdmin.unlockVmInVc(SourceFile:280)

                at com.vmware.vdi.jadminservice.JAdmin.access$000(SourceFile:84)

                at com.vmware.vdi.jadminservice.a.MessageHandler(SourceFile:1703)

2011-01-13 08:49:15,443 DEBUG <4828> [vdmadmin] Closed outgoing SharedMemory channel to machine VDI-Broker.CORP.LOCAL, user corp\svc_composer

2011-01-13 08:49:15,464 DEBUG <4828> [vdmadmin] MessageFrameWork Worker Shutdown,, Channel=0000000000000000

0 Kudos
npeter
Expert
Expert

>>2011-01-13 08:49:15,442 ERROR <Thread-15799> [PoolManager] No VC driver for Lab-vCenter.corp.local

Have you modified VC entry in View before or after this problems started?

if this VC is still added to View please edit the entry, authenticate agian save it and retry the command.

-nObLe
0 Kudos
blexcom
Contributor
Contributor

Called VMWare and the tech said the only way to fix this was to delete that VM (leave the disks) and then create a new VM and attach the old disks to it. This worked out perfectly as a work around.

Outlined in a blog entry

http://www.weretalkingaboutit.ca/blog/2011/2/4/how-to-fix-a-locked-virtual-machine-after-re-installi...

0 Kudos