HOWTO: XenServer configure an ISO repository on Local Storage

When building my homelab with XenServer 5.6 FP1, I needed an ISO repository on local storage. Although I found some guides on the internet none of them actually worked/suited my needs. However after some research I found this way working. In my case I wanted to use the free space of volume SDA3.

Only use this procedure in your LAB environment as it is not supported.

Before you start you have to delete existing SR’s/LVM’s/VG’s on SDA3 [search]

Now create the File System the filesystem on empty sda3.

  • mkfs.ext3 -m 0 /dev/sda3 <where sda3, is the volume I want to use on local disk>

Create a mount point for your new created File System.

  • mkdir /mnt/iso_import

Add the following line to /etc/rc.local to mount the filesystem on boot.

  • mount /dev/sda3 /mnt/iso_import

To prevent a reboot, let’s mount it manually.

  • mount /dev/sda3 /mnt/iso_import

Now add the repository to XenServer

  • xe sr-create name-label=<desired name> type=iso \device-config:location=/mnt/iso_import \device-config:legacy_mode=true content-type=iso

Now the repository should be available within XenCenter. Copy your ISO’s to the repository location with your favorite SSH client.

HOW TO: Add Cities to HTC Weather Widget (Android)

Lately I was pretty annoyed that the HTC Weather App only contains a list of major cities and no option to add you own little village. In my case i’m interested in adding the skiresort Saalbach (Austria) to the database. This is how it’s done:

1. Download SQLite Database Browser 2.0 beta1. [link]

2. Make sure you have root access, connect your phone via USB (USB debugging must be enabled).

3. Pull the following file off your phone: adb pull /data/data/

4. Open the WP_0409WWE.db file in SQLite Browser.

5. Click on the “Browse Data” tab.

5. Click the “Table:” dropdown box and choose “locationlist”.

6. Click on “New Record” on the top right, it creates a new (blank) record at the end of the list.

7. Find your location on:, Click “Get My Weather”.

8. Enter your location of choice in the “Choose Location:” input box, Click Search.

9. Select your location and click next 2 times, Agree to the Terms and Conditions.

10. In the “Webpage Code” box search for you location. copy the code (EUR|AT|AU005|SAALBACH|).

11. Return to SQLite Database Browser and select the new record.

12 Double-click on the empty box under “code” and enter the code you you copied in step 10. In my case EUR|AT|AU005|SAALBACH|.

8. Under “name”, Enter the desired city name, such as “Saalbach”.

9. Under “state”, enter the name of the state(not mandatory)

10. Under “timezone”, enter your timezone, the time zone is in minutes. -60 for Saalbach. you can lookup the time zone by searching the database for a major city near the one you want to add.

11. Under “timezoneId”, enter your timezone. Search it in the Database. for saalbach it was: Europe/Sarajevo
12. Save the Database and quit SQLite Database Browser.

13. Push the file back to your phone with ADB enter following command:
adb push WP_0409WWE.db /data/data/

14. Reboot your phone, after the reboot you can add your desired location to the HTC Weather application.