Windows DHCP server problem on Xen VM hosts

Posted by Christian Ashby on May 6, 2010

If your XenServer hosted Windows DHCP server(s) are running on the same physical host as linux DHCP clients, then they will not receive a DHCP address.

To work around this problem, turn off checksum offloading on the network adapter. To do this, follow these steps:

  • Click Start, click Run, type regedit, and then click OK.
  • Locate and then click the following registry key:
  • In the right pane, make sure that the DisableTaskOffload registry entry exists. If this entry does not exist, follow these steps to add the entry:
    • On the Edit menu, point to New, and then click DWORD value.
    • Type DisableTaskOffload, and then press ENTER.
    • Click DisableTaskOffload.
    • On the Edit menu, click Modify.
    • Type 1 in the Value data box, and then press ENTER.
    • Exit Registry Editor.

Note that this doesn’t effect Open-Source Xen as it is specifically related to the XenServer-supplied PV drivers.


Remote desktop ‘Exceeded the number of connections’

Posted by Christian Ashby on May 4, 2010

You can optionally connect to the ‘console’ which is a screen 0 (by default screens 1 and 2 are the screens you connect to with a remote desktop client). This option is not in the Windows UI, you need to use the following command from Start->Run:

mstsc -v:{machine address} /f -console

Windows Vista / Windows 7 use the syntax /admin rather than -console.

If you use a mac, you can put /console at the end of the machine name in the machine box.

If you use linux and rdesktop then add -0 to the rdesktop command line.


Blocking Internet Explorer updates

Posted by Christian Ashby on April 2, 2010

If you are developing websites, or simply don’t want to change browsers, you can stop Microsoft automatic update from installing IE 7 or IE 8 by installing the following updates from Microsoft:

Once run, they will extract files to the location of your choice, then you have to use an elevated command prompt and run the command with a /B switch (block) as follows:

IE70Blocker.cmd /B

You can revert to the normal state (allowing Microsoft / Windows Update to replace your browser) as follows:

IE70Blocker.cmd /U

Note that in order to keep IE6 you need to run both 7 and 8 blockers.

Then, you can keep your system completely up to date whilst maintaining the old-school browsers!


Windows: Linking files and folders

Posted by Christian Ashby on March 13, 2010

At first glance it may not be obviously useful, but if you need to link one folder to another, or store a file somewhere else but refer to it within a different folder, you can do so by the very useful mklink command, available in Windows 7 and Vista. There is an alternative for Windows 2000 and XP called ‘junction‘.

To create links, simply open a command prompt (Start->Run->cmd), and type:

  • For files: mklink {destination} {target}
  • For folders: mklink /d {destination} {target}

Note that it may be necessary to become admin to link some files / folders.


Windows XP – how long is there left?

Posted by Christian Ashby on March 3, 2010

It seems to be a common misunderstanding that Microsoft are dropping Windows XP in July this year. This is not the case! They are in fact dropping support for Windows XP Service Pack 2 only – not the entire operating system, so you need to upgrade to Service Pack 3 as soon as possible.

Microsoft in fact withdrew mainstream support for the XP operating system in April 2009, but they continue to support service packs until 24 months after they are released, which means Service Pack 3 will be retired from general support in April 2011 (it was released in 2008). However, Microsoft will continue to release security patches until April 2014, so you have plenty of time to upgrade. For more information see the Microsoft Site.

If you have problems with installing the service packs, or any other questions, please contact us – we’ll happily give you advice over the phone, and if necessary we can fix your machine for you – at a time and price that suits you.


Windows: Becoming admin

Posted by Christian Ashby on March 2, 2010

Windows Vista and 7 introduced a feature called ‘User Account Control’ which restricts users to running user-level commands without somehow confirming that they want to use administrator privileges. Usually applications (such as installation programs) automatically ask the user whether they want to use those additional privileges.

For the command prompt and other programs you can do one of three things to run them as ‘Administrator’:

  1. Use the icon: Right-click on the shortcut to the program and select Run As...
  2. Permanently select run as administrator: Right-click on the shortcut to the program and select Properties then select Run as Administrator in the Compatibility tab.
  3. Use the search box and a shortcut key: Click Start, then type the program name in the search box. Instead of hitting enter when the program is highlighted above, use CTRL+SHIFT+ENTER.

This feature mimics the ‘sudo’ feature in modern Linux operating systems which allows you to run commands ‘as root’.