sudo dnf install "kernel-devel-uname-r == $(uname -r)"
sudo dnf groupinstall "Development Tools"
sudo dnf update
sudo /usr/lib/virtualbox/vboxdrv.sh setup
如果执行sudo /usr/lib/virtualbox/vboxdrv.sh setup
报错的话,我查看错误原因:
我这里是少了elfutils-libelf
sudo dnf install elfutils-libelf.x86_64
sudo dnf install elfutils-libelf-devel.x86_64
sudo dnf install elfutils-libelf-devel-static.x86_64
//然后在执行
sudo /usr/lib/virtualbox/vboxdrv.sh setup
不报错的化基本上可以正常启动homestead
了
参考
https://stackoverflow.com/questions/33200717/vagrant-up-and-vm-doesnt-work-fedora-22
网友评论