Virtualbox USB 3.0 Support

USB 3.0 (introduced around 2008) unfortunately is not the highest priority for the great Virtualbox VM software. If you need to move quite a truck load of data around in a VM you may use a clever workaround to get USB3.0 speeds in your VM. The credit for this workaround goes to MayanJedi who posted this approach in the USB 3.0 devices are unsupported Virtualbox.org ticket tracker. Steps for OS X: 1 $ sudo diskutil list$ sudo diskutil list choose your disk you want to use (e.g. /dev/disk3) 1 $ sudo diskutil unmountdisk /dev/disk3$ sudo diskutil unmountdisk /dev/disk3 1 $ sudo VBoxManage internalcommands createrawvmdk -filename ~/Desktop/3.0.vmdk -rawdisk /dev/disk3$ sudo VBoxManage internalcommands createrawvmdk -filename ~/Desktop/3.0.vmdk -rawdisk /dev/disk3 1 $ diskutil unmountdisk disk3$ diskutil unmountdisk disk3 1 $ sudo chmod 777 ~/Desktop/3.0.vmdk$ sudo chmod 777 ~/Desktop/3.0.vmdk 1 $ sudo chmod 777 /dev/disk3$ sudo chmod 777 /dev/disk3 1 $ diskutil unmountdisk disk3$ diskutil unmountdisk disk3 Edit your vm and add the 3.0.vmdk as a hard drive If you get any error try to unmount again (OS X tends to automount this sometimes) 1 $ diskutil unmountdisk disk3$ diskutil unmountdisk disk3 (make this undone after the party is over with: 1 $ sudo chmod 640 /dev/disk3$ sudo chmod 640...

PayPal Currency Conversion Madness – Solution

Be aware that PayPal calculates 2.5% on top of a bad (in your favour) currency exchange rate. Example: You want to pay an British Merchant 420 GBP. By default you PayPal does the currency conversion for you. This boils down to a bad exchange rate of: At the same time a simple google conversion yields:   ~18,76 EUR difference! To remedy this just go to:  https://www.paypal.com/de/cgi-bin/webscr?cmd=_profile-merchant-pull-funding And choose to NOT use the PayPal conversion method. (Only for Credit Cards) Leave a comment if it works for you....

tabblo – Brings tado°® To Your Wrist.

Recently the pebble steel was announced and finally shipped. I received mine late february and missed a functionality to control my tado° the heating app. So after asking tado°’s for a public API I thought to myself, they must already have some sort of API and so I started to have a look into their (undocumented) but fine web-services. After one night coding, coding, coding I’ve finally finished my first pebble watchapp: “tabblo” a composite word of tado and pebble, well sort of. Finally it got really easy to change the temperature in my apartment without tinkering with my phone. So grab tabblo right away if you own the tado° The Heating App® and the glamours pebble steel or the nerdy pebble....

Ruby Header Files OS-X Lion

If you try to install a ruby gem you are likely to receive the following error: ERROR: Error installing caldecott: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb mkmf.rb can’t find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h It clearly mocks about the missing ruby.h file. To overcome this issue you need to have XCode installed and there goto “Preferences/Downloads” Download the “Command Line Tools”. Afterwards the gem installation should succeed with a...

qemu-img error and version madness

The Ubuntu Precise 12.04 qemu version is fairly “outdated” stopping at around 1.0. The current qemu release candiate is 1.3.0.rc2 . So if you are running into a qemu-img: error while reading sector 131072: Invalid argument error while converting images using qemu-img, just try to update your qemu binaries, by the provided source files of qemu.org. #Dependencies apt-get install libglib2.0-dev dh-autoreconf #untar tar xvfj qemu-1.3.0-rc1.tar.bz2 cd qemu-1.3.0-rc1 #configure ./configure ./make ./make install The binaries will be under /usr/local/bin/qemu-img So just for the sake of converting a full path to the qemu-img will do the trick: /usr/local/bin/qemu-img convert disk1.vmdk -O qcow2...

Import Turnkey Linux VMDK to OpenNebula

TurnKey Linux provides 100+ free ready-to-use appliances. They provide an appliance in different formats (vmdk,ISO,OVF,OpenStack,OpenVZ,XEN,EC2), however yet not out of the box usable for OpenNebula + KVM. To bring a TurnKey Linux appliance live on OpenNebula the image has to be converted first: qemu-img convert turnkey-wordpress-12.0-squeeze-x86.vmdk -O qcow2 turnkey-wordpress-12.0-squeeze-x86.qemu I choose the QCow2 format as it provides some advantages (compression, snapshots) over raw. After converting the vmdk to a QCow2 type move the image preferably to /tmp as OpenNebula is going to copy the file to the data-store anyway and by leaving it inside a home directory with SELinux enabled the import is likely to fail. As a last step the image needs to be imported into OpenNebula. This may be done by using the oneimage command or conveniently using the Sunstone web frontend. Just provide the /tmp/<imageName>.qemu in the “Provide a path” field use “vd” for the device prefix, “qcow2” for the driver, “vda” for the target. After all just generate a new template naming the new image as a disk, choose x86_64 for the architecture and you’re ready to turn on you key linux appliance. Don’t forget to enable the VNC access as to configure your appliance using the first run script provided by TurnKey...