Centos7 install VirtualBox Virtual Machine
1. Install VirtualBox
sudo wget -P /etc/yum.repos.d http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.reposudo yum install VirtualBox
2. Add users to the vboxusers Group
Sudo groupadd-G vboxusers-a your Username
3. Install the NIC Module
sudo yum install dkms kernel-devel kernel-headerssudo /etc/init.d/vboxdrv setup
Appears:
Stopping VirtualBox kernel modules [OK] Uninstalling old VirtualBox DKMS kernel modules [OK] Trying to register the VirtualBox kernel modules using DKMS [OK] Starting VirtualBox kernel modules
Installed successfully!
If prompted
Starting VirtualBox kernel modules [FAILED] (Running VirtualBox in a Xen environment is not supported)
Because virtualbox cannot be installed in xen, you can use uname-ar to view the current kernel. Change the startup Kernel
vim /boot/grub/grub.conf
Change default to a common kernel without xen.
reboot
When the xen Virtual Machine reboot restarts, The xen process of the virtual machine is disabled. As a result, you cannot enter the virtual machine again. You need to restart the host machine.
sudo /etc/init.d/vboxdrv setup
Reference: http:// OS .51cto.com/art/201203/324177_1.htm