Tag Archive: virtualization


While building my XenServer farm I had a couple servers die on me, requiring XenServer to be re-installed. This left the local storage, DVD & removable storage from each dead server dangling in the pool. They show up in XenCenter as greyed out repositories.

To get the GUID of the dangling SR’s run this command from any host in the pool:

xe sr-list –minimal params=uuid host=”<not in database>”

Then run this command using the GUID’s from the above command to remove them:

xe sr-forget uuid=%dangling-SR-GUID%

Repeat the command to remove each of your dangling storage repositories.

I needed to quickly add a second disk to a VM during our recent facility move and didn’t have time to create a new Storage Repository (SR). Now with some time to clean things up in my XenServer farm I wanted to move the disk to its own SR. I ended up being stumped when using the XenCenter console and needed to use the xe CLI. This page had the commands that I required to make the copy to the new SR. Just remember to use the vdi-uuid of the vdisk you want to move.

Best practices for deploying Citrix XenServer on HP StorageWorks P4000 SAN

This guide would have been good to find about a week ago. I’ll have to readjust my storage repositories to have 1 iSCSI LUN for each VM instead of 1 large storage repository for my resource pool. I wonder if I’ll be able to copy directly from the old LUN to each of the new LUNs?

Remove Hidden Devices

When you work with virtual machines, either converting physical or working with new builds, you often have issues with hidden devices. Most often the hidden device that gives the most grief is old physical network cards. Thankfully the issues easily resolved.

To work around this behavior and display devices when you click Show hidden devices (source):

  • Click Start, point to All Programs, point to Accessories, and then click Command Prompt.
  • At a command prompt, type the following command , and then press ENTER:
    • set devmgr_show_nonpresent_devices=1
  • Type the following command a command prompt, and then press ENTER:
    • start devmgmt.msc
  • Troubleshoot the devices and drivers in Device Manager.
  • NOTE: Click Show hidden devices on the View menu in Device Managers before you can see devices that are not connected to the computer.

  • When you finish troubleshooting, close Device Manager.
  • Type exit at the command prompt.

Note that when you close the command prompt window, Window clears the devmgr_show_nonpresent_devices=1 variable that you set in step 2 and prevents ghosted devices from being displayed when you click Show hidden devices.

Remove a Windows Service

Last night I moved my PRTG virtual machine to my newly installed ESXi server. The move went well, but when I went to boot up the PRTG VM the service wouldn’t start. PRTG was nice enough to tell me that I had another copy of the service running on the network and even gave me the command to find the PC it was running on.

Turns out it was running on an old monitoring PC I had used years before that was still powered on. Since I still use it for a couple of other monitoring apps I couldn’t just turn it off. As a temp fix I stopped the service and set it to disabled. Now the PRTG VM started up and began collecting data once again.

As the PRTG uninstaller did not remove the PRTG service from the old monitoring PC I still needed a way to pitch it even though I had disabled it. A quick search turned up a couple of options, the easy way and the slightly more difficult way.

The Easy Way:

sc delete “service_name

In my case the command was:
sc delete PRTGService

The Slightly More Difficult Way:

**Dislaimer: This process involves working in the Windows Registry. Before deleting any file please make a backup in case of borking your system.

  • Run Regedit
  • Find the registry entry “HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services”
  • Look for the service there and delete it.
  • Powered by WordPress | Theme: Motion by 85ideas | © 2006–2012 Dave Hildebrand | 59 queries in 2.391 seconds.