Convert Xen xva to vhd

Sometimes I need to convert a xen xva image to a vhd image for VirtualBox. So here is a quick howto:

qemu-img convert -O raw input_file.xva output.raw
VBoxManage convertfromraw input_file.raw output_file.vhd --format VHD