|||
这里的KVM是指Kernel Virtual Machine http://www.linux-kvm.org/page/Main_Page
在VirtualBox->设置-> 系统->硬件加速,设置:
重启CentOS后,运行(参考https://pleiades.ucsc.edu/hyades/DKMS_on_CentOS_7 和https://fedoraproject.org/wiki/EPEL 和http://unixnme.blogspot.ca/2017/08/install-virtualbox-guest-addition-for.html ):
cat /proc/cpuinfo | egrep "vmx|svm" | uniq
只有cpu支持虚拟化才可以,否则下面的不用执行,我发现virtualbox怎么不行呀
yum install epel-release -y
yum -y install dkms
yum install -y kernel-headers kernel-devel kernel
yum upgrade gcc
gcc --version (gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16))
ls /usr/src/kernels
gedit /etc/profile
export KERN_VER=3.10.0-693.21.1.el7.x86_64
运行VirtualBox的Addons,运行完:
./VBoxLinuxAdditions.run
重启
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-23 00:18
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社