Virtualbox, and upgrading

September 5th, 2010 1 Comment

So, today I ran the monthly update on Pogo, our trusty lil file/print server, especially since there has recently been a kernel update to get rid of a vulnerability when using X11.  In doing so I had to rebuild the VirtualBox drivers to work with my new kernel.  Since this is not a core package available in the Arch Linux repository, I have to use the Arch User Repository and realized that there was an update available.  I ran the update and all was well until I decided to give my virtual windows machine a spin for hohos. When I tried to run my virtual Win XP machine this is what I encountered.

Medium type of ‘/home/rob/.VirtualBox/HardDisks/{0cf3783a-83e4-4282-882d-304855c197da}.vmdk’ is differencing but it is not associated with any parent medium in the media registry

Yikes!  Not good at all, I almost wept in frustration as we had a couple printer problems with my wife.  As we always seem to have, I think the printer secretly hates her and by extension, me, since I am always called upon to remedy the situation.  Back to the problem at hand, it was an odd error which gave me no insight into what was going on or what was expected of me.  So I ran to google, my friend in all of these types of problems.   Fortunately, it found a trouble ticket on the VirtualBox site.  This ticket stated that:

  • The reason is that an older release of VirtualBox wrote a wrong information to your .vdi images. VBox 3.2.8 is more paranoid.
  • Only some base .vdi images are affected, the snapshots need no fixing. The fact that the base .vdi was declared inconsistent (having a non-zero parent UUID) makes the snapshots implicitly inaccessible too.

As with a lot of projects like this a fix was provided by the next day.  This can be downloaded here.  Make sure you download the file for your host system, in my case it was the VBoxFixHdd-Linux file.  Then I had to:

$ chmod u+x VBoxFixHdd-Linux

Then you just need to(in the words of the VirtualBox devs):

  1. Identify the affected images. You can either use the VirtualBox GUI and check which base images are inaccessible, but shouldn’t be. The same can be done with “VBoxManage list hdds”, in this case make sure you only look at images which say “Parent UUID: base”.
  2. Run the repair tool:

    $ VBoxFixHdd –filename /path/to/image.vdi –zeroparentuuid

  3. Repeat for all affected images. The tool can fix images in all formats supported by VirtualBox.
  4. After you’re done, double check the results either in the VirtualBox GUI (go to the Virtual Media Manager and click on the “Refresh” button), or with:

    $ VBoxManage list hdds

Once you do all that, you should have all the affected images fixed.  As was stated this was an import image from my laptop so that may have been what triggered it.  I only had one affected image but it worked just fine once I ran the fix utility and now my virtual machine is happy happy again. They did state that future versions of VirtualBox would have a utility which would do this automatically so this can be avoided in the future.  Hope this helps all you peeps out there.

Yeah I admit Im a bit of a nerd and a bit of a tinkerer.  I like to take things apart and know what makes them work.  I also like to be able to replace parts of existing things on my own, either to fix them or to try and get more performance out them.  Thus I will probably always be a PC man.  With that said my wife recently had her headphone jack on her iPod go out.  Since I am a sensible man and realize that she would go insane with this we went and got her a new iPod classic and she is once again happy with her music goodness. I went and dug up her original 5th gen iPod vid and thought about swapping parts between this one and her old one which is going bad.  As I said I like to tinker. Read the rest of this entry »

Seriously, I want to run an open source home and computer but I’ve found that I really can’t when it comes to school and well, the world. My Open Source Java solution was kicked to the curb by the abomination that is Blackboard, the wonderful online software that is used for most higher learning institutions. I hope you could feel the sarcasm in that because whoa, Blackboard is teh suck and it needs Sun Java to run properly. Read the rest of this entry »

My journey with tech has been a long and arduous one. This would include the Stompers I used to take apart and try to “improve” when I was a child. I say arduous, in that I’ve got an impressive array of electronic induced fires under my belt.  Luckly, my parents have always had a backyard and garage in which I was able to perform my work in. This coupled with my early learning that you should have some sort of fire fighting apparatus when dealing with electronics. Believe me I’ve had my share of pieces of charcoal which were a great idea when I started. Read the rest of this entry »

This is a part of my homework for my CIS 1680 class.  I wanted to learn how to do automated backups for my main desktop at home, but he upped the ante with a request for remote backups.  The main guide for this exercise I found is at http://www.linux.com/feature/113847.  There is also remote backup space at http://www.rsync.net

First we make sure that we can ssh into our remote machine:

ssh user@remotemachine

Read the rest of this entry »