Friday, February 20, 2009

iTunes Migrating To VirtualBox Guest Windows

OK I got iTunes running in my Guest Windows( VirtualBox term for the OS running through VirtualBox). Next my challenge was to migrate my iTunes Library from to my Guest Windows, so that my iPod will work exactly the same as before without affecting the existing synchronisation between iPod and existing iTunes Collection.

I moved all my Music to an external Hard Disk and I need to make iTunes library to point to their new physical location. The iTunes folder which has all the library data and other configuration files is "My Documents/My Music/iTunes" . I copied this folder to the same location in my Guest Windows.

There is a file in iTunes folder called iTunes Music Library.xml. I edited it to change the file location. It was just search and replace. But the thing is iTunes won't read the file. It has a binary representation of the file. Now we need to corrupt that file so that iTunes will build the binary again with updated folder location. Just open the file "iTunes Library.itl" and delete everything and save.

Next time iTunes start it will give a warning saying that "iTunes Library.itl" has been corrupted and it is going to rebuild it. After that is done iTunes will work like a charm , the same way as in your old Windows. Just connect your iPod and see it syncing what ever you have configured.

If you have configured to syn your photos, you will have to configure that again . Copy your photos folder to your Guest Windows and configure iPod to sync with that directory.

No comments: