vmware安装ubuntu,运行docker-machine

1、VBoxManage: error: Code E_ACCESSDENIED (0x80070005)

运行: docker-machine create --driver virtualbox --engine-registry-mirror https://1rqn7spi.mirror.aliyuncs.com docker2  报错

root@ubuntu:~# dockerm start docker2
Starting "docker2"...
(docker2) Check network to re-create if needed...
(docker2) Found a new host-only adapter: "vboxnet6"
Error setting up host only network on machine start: /usr/bin/VBoxManage hostonlyif ipconfig vboxnet6 --ip 192.168.99.1 --netmask 255.255.255.0 failed:
VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)
VBoxManage: error: Context: "EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())" at line 242 of file VBoxManageHostonly.cpp

解决:

mkdir -p /etc/vbox
vim networks.conf

写入:
* 0.0.0.0/0 ::/0
保存退出, 然后再执行

 

2、VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)

经过1步骤,又出现这个报错:

root@ubuntu:/etc/vbox# dockerm start docker2
Starting "docker2"...
(docker2) Check network to re-create if needed...
Unable to start the VM: /usr/bin/VBoxManage startvm docker2 --type headless failed:
VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

Details: 00:00:00.359038 VBoxHeadless: exiting

 

无解,无法在虚拟机里安装虚拟机

apt-get install cpu-checker
然后检查KVM是否打开:sudo kvm-ok
得到的消息是:
INFO: Your CPU does not support KVM extensions
KVM acceleration can NOT be used

参考: https://blog.csdn.net/w375073907/article/details/121901943

 

posted @ 2023-07-21 10:47  我的天啊~  阅读(153)  评论(0编辑  收藏  举报