VMware Horizon Community
Chandra_G_P
Contributor
Contributor

The virtual machine you selected may be in use by another View environment

Hi

I have deployed few XP VMs from the template and when I adding to View administrator getting following warning. Can anyone tell me why & what need to do to get rid of this warning.

"The virtual machine you selected may be in use by another View environment. Deselect the virtual machine if you do not want to use it for this desktop"

Thanks

Chandra

CG
Tags (1)
0 Kudos
5 Replies
mittim12
Immortal
Immortal

Was the template you deployed from already part of a View environment?

If you found this or any other post helpful please consider the use of the Helpful/Correct buttons to award points

0 Kudos
Chandra_G_P
Contributor
Contributor

Hi Mittim,

Yes, you are absolutley right. How do we avoid this messege?

thanks

Chandra

CG
0 Kudos
mittim12
Immortal
Immortal

This may be the long way around but I would delete the XP machines, bring the template online, remove the view agent and all references of the template from the View infrastructure, reboot, install view agent, and shutdown convert to template.

If you found this or any other post helpful please consider the use of the Helpful/Correct buttons to award points

admin
Immortal
Immortal

I reproduced your issue and created a KB (should be public shortly).

Resolution:

This issue occurs because the template was created from a VM that was part of a View Pool (4.5,4.0) or View Individual Desktops (4.0).

To resolve this issue:

1. Convert the template to VM

Right click on the template > Convert to Virtual Machine (You can also clone it and work over a clone)

2. Power it on.

3. Add the VM to view as you were doing previously (the warning will appear again)

4. In View, go to Inventory > Desktops, select the VM and click "Remove". Select "Remove VMs from View Manager only".

This will unlink the View Agent in the VM from the View Connection Server.

5. Power off and convert the VM to template.

Power off the VM from the Guest OS or from the vSphere Client if the VMware Tools are installed.

Right click on the VM > Template > Convert to Template

New VMs deployed from this template won't experience the issue again.

0 Kudos
Gaurav_Baghla
VMware Employee
VMware Employee

I know this is a very old post and just wanted to add some information  so that can help someone else facing the same issue

"The following virtual machines may be in use by another View environment." is a warning rather than blocking error, you should be able to ignore it and continue. If you can't, you can clear the existing View configuration information from the VM by editing the .vmx file and removing the machine.id configuration line. The registry data you see in the VM is being automatically populated based on that field.

Regards Gaurav Baghla Opinions are my own and not the views of my employer. https://twitter.com/garry_14
0 Kudos