Archive for category IT

Event ID 1041 after uninstalling Internet Explorer 8

Having removed Internet Explorer 8 from a Citrix Presentation Server farm, the following errors started appearing in the Application Log:

IE8 uninstall errors in App. Log (1)

IE8 uninstall errors in App. Log (1)

It shows up with 2 different messages, but with the same event ID:

IE8 uninstall errors in App. Log (2)

IE8 uninstall errors in App. Log (2)

.. and

IE8 uninstall errors in App. Log (3)

IE8 uninstall errors in App. Log (3)

This happens because IE8 doesn’t remove all traces when it uninstalls. There’s 2 leftover (empty) keys in the registry, and the errors then appear everytime a user is accessing IE7.

The keys to delete are:

7B849a69-220F-451E-B3FE-2CB811AF94AE

CF7639F3-ABA2-41DB-97F2-81E2C5DBFC5D

And they are both found in:

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GPExtensions\

Apparently this error has been present since IE8 beta, and it still hasn’t been fixed by Microsoft. Shame on you.

No restart needed.

1 Comment

Adding iSCSI storage repositories to XenServer

When adding an iSCSI Storage Repository  (SR) to Citrix Xenserver, remember the following checkpoints:

  • Use a dedicated interface for storage traffic.
    This is done by right-clicking on a host in the XenCenter GUI, and selecting “Mangement Interfaces…”.
    Create a new interface, giving it a good name such as “iSCSI LAN 10.x.x.x”.
    Set the IP address of the new interface.
    Do this for all XenServer hosts that require access to the iSCSI shared storage.
    Remember that all hosts should have access to the same iSCSI LAN(s).
  • Give each XenServer host a meaningfull iSCSI IQN (name).
    This is done on the General tab on each XenServer host.
    Click Properties, and  then change the iSCSI IQN.
    This will help you in identifying each host when allowing their access on the SAN.
  • Map volumes to all XenServer hosts.
    On your preferred iSCSI SAN, create a volume and map it to all XenServer Hosts.
    Remember to map to the same LUN # for each XenServer Host. So if using LUN # 10 for Volume_1, use this for all of your hosts, as identified by their iSCSI IQN’s.
    Remember to map all XenServer hosts to every volume you intend to use for “agile” VM’s at pool level.
  • Create the new SR on a pool level.
    Right click your pool in the XenCenter GIU, and select  New Storage Repository…
    Select iSCSI. Enter a good descriptive name. Enter the IP address of the SAN controller that has ownership of the vdisk in question.
    Click Discover IQNs. Make sure that the correct controller (which has ownership of the vdisk) is selected.
    Click Discover LUNs, and select your desired LUN.
    Click Finish.

Once you start populating your SR with Virtual Disks, make sure you give them all a name, and a description. This is very helpfull if you have to re-build your XenServer farm.

No Comments

Re-arrange Network Interface Cards in XenServer

While adding multiple Network Interface Cards (NICs) to a XenServer host, I needed to re-arrange them so their logical naming (eth0, eth1, eth2 etc…) matched that of their physical order.

Here’s a quick guide how to do that.

  1. Before adding your NICs to your XenServer host, note the MAC addresses of each port. You might also want to put this on a label, and affix it to the bracket itself, so you can determine the MAC of the NIC by looking at the rear of the server.
  2. Add your NICs to your XenServer host. Note where you position each card, so you know which MAC goes where.
  3. Boot XenServer.
  4. From the shell (Hit Alt+F3 after boot has finished), type in:
    xe pif-scan host-uuid=<tab-complete your hosts UUID>
  5. This will scan for new NICs, and enumerate them as Physical Interfaces (PIFs).
  6. Determine the order and UUIDs of the new PIFs, by running:
    xe pif-list
  7. This will return the uuid, device (which is actually device-name) and other info about each PIF. Check whether the device (-name) fits what you had planned. Eg. if it says eth2, and that’s what you wanted, just leave it. If you wanted it to be eth1, continue.
  8. Remove the PIF from XenServer, by running:
    xe pif-forget uuid=<UUID of PIF you want to remove>
  9. Add the PIF again, by running:
    xe pif-introduce host-uuid=<UUID of your host> mac=<the MAC you noted earlier, seperate octets with :> device=eth<x>
  10. For example:
    xe pif-introduce host-uuid=8c5bcb04-184b-4523-b870-5d3a5804ca67 mac=00:19:5b:5a:2d:a6 device=eth3
  11. After this, your new PIF might show up with unknown device and vendor. While merely cosmetic, a reboot of your XenServer host should fix this.

I was able to use D-Link DGE-528T cards, using the above, even though they aren’t officially supported on XenServer. Well… 2 out of 3 cards worked when placed in a single XenServer host. All 3 cards were detected, and named using the above method. 1 of the cards was unable to recieve an IP for the management interface, using DHCP.

This was tested on XenServer 5.0 update 3.

Thanks to tiris blog for pointing me in the right direction on this.

No Comments

Installing and running XenServer on a USB device

Applies to:
Citrix XenServer 4.1, 5.0, 5.5 beta, possibly newer builds as well

Problem:
Installing and running Citrix XenServer directly from a USB- or flash-drive.

This article was posted by Chris Wolf on VirtualizationReview.com.

I thought I’d keep a copy here, and supplement it with my own discoveries. The article was written for XenServer 4.1, but I find it works just as well on 5.0 and even 5.5 beta.

Remember that the USB device must be 16GB or more. 16GB flash drives work fine, just don’t try and run VM’s from them (performance).

By Chris Wolf - 05/09/2008
With a few tweaks, you can run XenServer from an external USB drive.

I often get asked about running hypervisors from portable storage devices and in this column, I’d like to talk about a method for installing and running XenServer 4.1 from a portable USB hard drive. This is useful if you are testing multiple hypervisor solutions and do not want to multi-boot the hypervisors on local server storage. Since XenServer Express Edition is free, you can evaluate the product for as long as you like and eventually upgrade the license if you want to unlock the product’s enterprise-class features.

Of course, the physical host server is going to need to meet XenServer 4.1′s system requirements. Servers with support for hardware-assisted virtualization (one of XenServer’s hardware requirements) should also support USB device boot. Many USB flash drives offer enough storage space for a XenServer installation (16GB is required per the official requirements). Note that the actual software installation will only consume about 2GB. However, keep in mind that USB flash drives perform considerably slower than traditional hard disks. So if performance is a consideration, I highly recommend using a 2.5″ external USB drive. In preparation for this article, I used a Seagate external USB 2.0 40 GB hard disk.

While not required, I disabled all internal hard disks in the test server’s BIOS so that the XenServer installation would only see the external USB drive. This prevents accidentally installing XenServer on an internal server hard disk. Read the rest of this entry »

4 Comments

Making a tape drive available to a guest via iSCSI

Applies to:
Citrix XenServer 4.1, 5.0, 5.5 (beta)

Problem:
Making a tape-device located in the XenServer host available to a guest Virtual Machine.

This article has been taken from WLUG.org.nz/XenNotes, I just want to keep a copy here for my own convenience. :) A BIG thanks to the guys at WLUG for figuring this out and making it easy to understand for mere mortals like me.

This is specifically for Citrix XenServer, although the principles will of course work in other Xen implementations.

I recently had a scenario where I was replacing two Windows servers with XenServer guests. This was fine, but we needed a way to backup to the existing SCSI DDS4 DAT drive. After failing to make PCI passthrough work, I settled on the much nicer method of providing the tape drive via an iSCSI target on the XenServer Host (Dom0). Here is how I achieved this.

Note 1: This is totally unsupported by Citrix.
Note 2: I’ve used the XenServer terminology “host” instead of Dom0, as this applies to the Citrix commercial implementation of Xen. It will probably work fine on OSS Xen, but you can just install the normal kernel dev packages and ignore the DDK stuff.
Note 3: This is for XenServer 4.1.0, but the principles are the same for previous versions. Just ensure you understand each step rather than following blindly.
Note 4: You’ll need to enable yum repositories. Do this by editing /etc/yum.repos.d/CentOS-Base.repo, and set “enabled=1” for the Base, Updates and Addons repositories. You should also do this on the DDK VM.

  • Download the Xen 4.1 DDK (Driver Development Kit) from citrix.com
  • The DDK is an ISO containing a VM with a development environment. Import it to your Xen host, and start it. Read the rest of this entry »

1 Comment

Outlook: Automatic signatures w. multiple accounts

Applies to:
Microsoft Outlook, verified on Outlook 2003.

Problem:
A user has multiple mail-accounts, with different addresses configured. Each of these accounts have their own email-signature. The user wants Outlook to use the correct signature when switching between accounts.

Solution:
Very simple actually… Just set Outlook to send emails in HTML format by default.

Took me quite some time to find this ‘feature’.

No Comments

Outlook 2003: Danish holidays until 2012

Applies to:
Microsoft Outlook 2003

Problem:
Outlook 2003 is only shipped with Danish holidays until the end of 2007.

Solution:
Download and run this file on the target machine; Outlook2012dk.

Link to Microsoft KB: 924423

No Comments

OWA with simple url

Applies to:
Exchange Server 2003

Problem:
Users wanting to connect to the OWA (Outlook Web Access) Website have to enter https://mail.domain.com/exchange exactly! Quite annoying if you ask me.
Wouldn’t it be better if users could simply type in mail.domain.com ? (The browser will insert http:// on it’s own accord)

Solution:
Go to the wwwroot of the default website (usually C:\inetpub\wwwroot\) and create a new text-file called “OwaHTTPS.asp”. Put in the following:
<%
If Request.ServerVariables("HTTPS")  = "off" Then
Response.Redirect "https://" & Request.ServerVariables("HTTP_HOST") & "/Exchange"
End If
%>

Then, give the local IIS user (Default name= IUSR_) Read + Execute permissions on the file.

Now start Internet Information Services Manager and locate the Default Website. Right-Click, Properties. Go to the Documents tab. Click Add, and type in: OwaHTTPS.asp
Move this new document to the top of the list.
Click OK untill you’re out of the menus. When you get a prompt for the sub-sites, click “Select all” and OK.

Link to Microsoft KB: 839357

No Comments

Increase database size limit with Exch 2003 & SP2

Applies to:
ONLY Exchange Server 2003 with SP 2.

Problem:
With MS Exchange Server 2003, and NO service pack, the maximum database size is 18 GB. With the release of Service Pack 2 for Exch 2003, this value is now DEFAULT 18 GB, but can be increased up to 75 GB for Standard versions.

Solution:
Modify the registry settings:
1) Open REGEDIT.
2) Navigate to the following key:
“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\
\Private-013e2e46-2cd7-4a8e-bfec-0e4652b94b00″
3) Create a new DWORD, with the name (remember caps! – no quotes):
“Database Size Limit in GB”
4) Give your new DWORD the value of the desired size, in GB. So for a 25 GB database, simply enter 25.
5) Restart the Microsoft Information Store from Services.

Thats it. :)

No Comments

Restore deleted Public Folders

Applies to:
Microsoft Exchange Server 2003 (verified on 2003, might work on older Exchange servers)

Problem:
A user has deleted one or more public folders by accident, and they cannot seem to undelete them from their email-client, such as Outlook.

Note:
This also works for Contacts stored in Public Folders.

There are two possible solutions to this;

Solution 1: Outlook Web Access.
Go to the OWA website for your Exchange Server, such as:
“https://mailserver/Public/?cmd=showdeleted&btnClose=1″
Then select the folder(s) you want to restore in the main window, and then click the Restore button on the top. Sometimes this method will fail, in that case, move on to the second solution below…

Solution 2: PFDAVAdmin.
PFDAVAdmin is a free tool from Microsoft, get it from Microsoft, or here: PFDAVadmin.exe.
The tool is a self-extracting archive. Once you have it started, right-click Public Folders, select Show Deleted Subfolders. From here, you just select the folder(s) you want to recover, right-click and hit Recover Folder. Presto! Done!

No Comments