After upgrading to Ubuntu 11.04 from 10.10, you might encounter errors while using Virtual Box. Trying to compile Virtual Box throws the following error: Error! Your kernel headers for kernel 2.6.38-10-generic-pae cannot be found at /lib/modules/2.6.38-10-generic-pae/build or /lib/modules/2.6.38-10-generic-pae/source. You have to run the following command: sudo apt-get install linux-headers-$(uname -r) followed by: sudo /etc/init.d/vboxdrv setup This will rebuild Virtual Box from its sources.
a seconds that's worth to remember ...