Remove orphaned hosts and desktop pools from the VMware View desktop
In the process of using the VMware View desktop, you can use the following methods if you want to remove these orphaned virtual machines and desktop pools in view administrator because of a variety of reasons (such as reinstalling Vcenter Server) that cause the view desktop pool to be lost.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/86/D5/wKiom1fMru-QcpcmAADHVycGPqA096.png "/>
Figure 1-1 Staying in "deleting"
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/86/D5/wKiom1fMru_RaH0mAADzHXK3_-0964.png "/>
Figure 1-2 Stop in the "deleting"
1 Login View composer Delete orphaned virtual machines
Enter the view composer server, open the View composer installation location, copy the path, as shown in 1-3. By default, this path is C:\Promram Files (x86) \VMware\VMware View Composer.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/86/D5/wKioL1fMru_ywuHlAAHNdIPWyhA697.png "/>
Figure 1-3 Copy Path
Open "System properties → environment variables → system variables" and add the path to path path at the end, as shown in 1-4. Note, add an English semicolon (;) after the original path, and then paste the path.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/86/D5/wKiom1fMrvDyEboTAADbpsZ2pxs316.png "/>
Figure 1-4 Adding to System variables
After entering the prompt, use the sviconfig command to delete the orphaned virtual machine in view administrator, where the virtual machine name that needs to be removed is win7x-001, win7x-002, and other virtual machines (labeled in 1-2), and each command deletes a virtual machine. The command is as follows.
sviconfig-operation=removesviclone-vmname=win7x-001
Enter View Composer Admin password:*************
Get clone ID.
Remove linked clone.
Removesviclone operation completed successfully.
When deleting a virtual machine, you need to enter the administrator password for the view composer.
As shown in 1-5.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/86/D5/wKioL1fMrvCTbElbAAB6QWLByoI442.png "/>
Figure 1-5 Deleting an orphaned virtual machine
Then use the commands in turn to remove these orphaned virtual machines. As shown in 1-6.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/86/D5/wKioL1fMrvHhteKxAAJLH6LUuT8560.png "/>
Figure 1-6 Deleting other virtual machines
2 Log on view connection server Delete database
After you log in to the View connection server, use Adsiedit.msc to delete the virtual machine pool.
(1) Log on to the Horizon View connection server as an administrator, open the Run dialog box, enter Adsiedit.msc, and return to 1-14.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/86/D6/wKiom1fMrvHTyIyxAAF62n9uQTs378.png "/>
Figure 1-14 Running Adsiedit.msc
(2) After you open ADSI Edit, right-click the Adsk Editor and select "Connect to" in the popup dialog box, 1-15.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/86/D5/wKioL1fMrvHz3AOdAAFCEavGgME408.png "/>
Figure 1-15 Connecting to
(3) in the "Connection Settings" dialog box that pops up, click "Select or type a distinguished name or naming context" at connection point and enter DC=VDI,DC search =vmware,dc=int in the column (in English, this name is not related to your Active Directory domain name) , click Select or type a domain or server at the computer, enter localhost:389 (1-16), or enter your computer name and port number, for example, vcs.heuet.com:389 (1-17) In this example, and then click the OK button.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/86/D6/wKiom1fMrvLDgasXAALZ6cVZffU650.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/86/D6/wKiom1fMrvOA4UJAAALrWx-ZZas654.png "/>
Figure 1-16 Connection settings Figure 1-17 Connection settings
(4) Return to ADSI Edit, expand Ou=server Groups, and then delete the orphaned virtual machine desktop pool (shown in 1-1), as shown in cn=win7x,1-18.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/86/D5/wKioL1fMrvPieay3AADfkppNILY586.png "/>
Figure 1-18 Removing the orphaned virtual machine desktop pool
(5) After you expand Ou=applications, delete cn=win7x,1-19 as shown.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/86/D6/wKiom1fMrvSDL2yZAAFUEOVrNqU596.png "/>
Figure 1-19 Deleting an orphaned desktop pool
Log in to view Administrator again, and you can see that the orphaned virtual machine desktop pool has been removed, as shown in 1-20.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/86/D5/wKioL1fMrvTTmBTfAACpWQx7n1Y997.png "/>
Figure 1-20 Desktop pool has been deleted
You can see in "Resources → computers" that orphaned virtual machines have been deleted
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/86/D5/wKioL1fMrvTjaEr0AACvWt02BRA642.png "/>
Figure 1-21 Orphaned virtual machine has been deleted
This article from "Wang Chunhai blog" blog, declined reprint!
Remove orphaned hosts and desktop pools from the VMware View desktop