“ mac电脑m1 arm架构安装虚拟机教程 ”

发布时间:2023-12-20
今日阅读:0
来源:CSDN
作者:HainesFreeman
...

1、准备一台虚拟机,安装CentOS7

  • VirtualBox
  • VMware 这里我们使用VirtualBox来安装虚拟机,下载地址Downloads Oracle VM VirtualBox img 001 点击安装 img 002 报错he installer has detected an unsupported architecture. VirtualBox only runs on the amd64 architecture. img a. 点击这个文件 img b. 在设置–安全与隐私–通用—仍要打开 img img 004 这时候,回来点击step1,发现还是报错,之前的操作都白费了 005 找了相关文档,发现还不支持m1,m2,arm架构 a.文档查找 Best Virtual Machine For Mac of 2023 (inc. M1, M2 & M3 Macs) b.去官网下载test版本img 链接Testbuilds Oracle VM VirtualBox img 安装成功截图 img

    2、下载vagrant

    2.1 下载

    Install | Vagrant | HashiCorp Developer img

    2.2 安装vagrant

    a. 点击下一步,下一步,知道安装成功img b.测试是否安装成功 vagrant安装成功以后,并没有gui客户端,需要通过打开终端,测试是否安装成功,运行命令

    vagrant
    

    img

    3.1 只需要一个命令,即可初始化centOS7系统

    Vagrant int cenos/7
    

    3.2 运行vagrant up,即可启动虚拟机

    vagrant up
    

    系统root用户的密码是vagrant

    3.3 vagrant官方镜像仓库(了解)

    vagrant镜像仓库地址Discover Vagrant Boxes - Vagrant Cloud vagrant中有很多做好的镜像仓库,然后使用cmd命令行使用命令进行下载。 img a. 运行 vagrant init centos/7

    vagrant init centos/7
    

    img b.运行vagrant up 启动虚拟机

    vagrant up
    

    c.运行 vagrant ssh即可登录上虚拟机VM

    vagrant ssh
    

    报错及解决

    问题macOS M1芯片,运行vagrant up后,报错如下 The guest machine entered an invalid state while waiting for it to boot. Valid states are ‘starting, running’. The machine is in the ‘aborted’ state. Please verify everything is configured properly and try again. If the provider you’re using has a GUI that comes with it, it is often helpful to open that and watch the machine, since the GUI often has more helpful error messages than Vagrant can retrieve. For example, if you’re using VirtualBox, run vagrant up while the VirtualBox GUI is open. The primary issue for this error is that the provider you’re using is not properly configured. This is very rarely a Vagrant issue. 解决

    —-暂时没找到解决方案—-

    —–直接进行步骤4——–

    4、使用vmware

    下载链接Download VMware Fusion | VMware img

    4.1 新建

    img

    4.2 点击继续

    img 拖动文件,点击继续 坑!!!注意选择arm架构的iso镜像包,否则在m1芯片上面无法安装!!!不能选x86_64的镜像文件!!!忽略我下面这个图是x86的,我实际用的是arm架构的 img img img img img img img

    4.4 设置40gb20gb,30gb都可以

    4.5 设置网络

    img img

    4.6 启动

    img

    4.7 选择中文

    img img img

    4.13 重启系统

    img img img img 设置登录mac的用户名和密码

    4.14 成功

    img

    4.15 远程登录

  • 使用终端ssh登录 格式ssh username@ip 001 输入ip address来查看ip img img 002 登录使用以下命令,回车

    ssh root@192.168.39.128
    
  • 使用finalshell登录 img

标签:
java macos

每日一言

""你复杂的五官,掩饰不了,你朴素的智商。""

...

站点统计

本周更新文章: 0 篇
文章总数: 59110 篇
今日访问量: 20397 次
访问总量: 151600 次