- 终端链接虚拟机centos后安装网络工具包解决无法使用ifconfig命令
# 查看root用户的环境变量是否有/sbin路径
echo $PATH
# 查看/sbin目录下有没有ifconfig命令
ls /sbin|grep ifconfig
# 查找可安装包
yum search ifconfig
# 安装
sudo yum install net-tools.x86_64
- Update your kernel to the latest stable version provided by the repository.
# Update the kernel
yum update kernel -y
# Install the kernel-headers, kernel-devel and other required packages
yum install kernel-headers kernel-devel gcc make -y
# Reboot the server to make sure it load to the new kernel
init 6
# The kernel version has been updated including the kernel-headers and kernel-devel
rpm -qa|grep -e kernel-devel -e kernel-headers
# find kernel version
uname -r
-
virtualbox6.1启用嵌套VT-x/AMD-V的方式
-
先关闭centos虚拟机
-
然后终端执行
vboxmanage modifyvm "<虚拟机名称>" --nested-hw-virt on
-