Fedora 17上安装virtualbox
sudo rpm -ivh http://dl.fedoraproject.org/pub/fedora/linux/releases/17/Everything/x86_64/os/Packages/k/kernel-3.3.4-5.fc17.x86_64.rpm
sudo rpm -ivh http://dl.fedoraproject.org/pub/fedora/linux/releases/17/Everything/x86_64/os/Packages/k/kernel-devel-3.3.4-5.fc17.x86_64.rpm
sudo rpm -ivh http://dl.fedoraproject.org/pub/fedora/linux/releases/17/Everything/x86_64/os/Packages/k/kernel-headers-3.3.4-5.fc17.x86_64.rpm
[hua@laptop fedora]$ ll /lib/modules/3.3.4-5.fc17.x86_64/build
lrwxrwxrwx. 1 root root 36 May 23 2012 /lib/modules/3.3.4-5.fc17.x86_64/build -> /usr/src/kernels/3.3.4-5.fc17.x86_64
sudo yum install gcc-c++
sudo yum install VirtualBox-4.2-4.2.12_84980_fedora17-1
compile kernel, sudo /etc/init.d/vboxdrv setup
but now it throws another error "virtualbox a media driver your computer needs is missing" when installing windows 2012 on it.