This page say :

请选择一篇博客进行编辑

Ubuntu in VMware的问题

@

安装

下载iso文件后
安装向导中兼容性选14x 版本的VMware 后面不会出现vcpu问题
cpu 4x4
装完后启动会出现vcpu问题
重启虚拟机Ubuntu 此问题消失

单用户模式(安全模式)

启动时按住shift
选择safe ...recovery mode 等字眼的条目,然后 Enter
prompt 命令行用于输入命令

扩容硬盘

  • 先在虚拟机设置里expand disk 和 CD-DVD connect at power on
  • 然后启动时进入bios -> boot 选择CD-ROM Drive -> shift++ move to top -> f10 save and exit
  • try ubuntu enter
  • win+s search GPart 磁盘管理工具 把当前磁盘拉到最大 提交修改 发现 unlocate 空间只有1 MB就对了

复制粘贴

  • 使用 VMware Tools
  • tar -zxvf Tools包 解压到你的虚拟机
  • 在终端里提高权限运行里面的 .pl文件
  • 大部分按Enter默认, feature 不要确认
  • 重启Ubuntu 即可

必装

共享文件夹在虚拟机中不显示

挂载共享目录
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other

clash和主机clash端口冲突

  • clash for windows in linux : https://archive.org/download/clash_for_windows_pkg
  • 终端中输入 ./cfw 启动 clash 图形界面 (in Ubuntu)
  • 复制源URL 到 linux clash 面板 Profile -> paste into 输入框内 -> Download
  • 因为是虚拟机, 不能重用主机 clash 正在使用的默认的 7890 端口
    Ubuntu设置网络代理->手动, 配置http 和https 条目 设置为127.0.0.1 端口7899
    linux clash 面板上端口也设置为 7899 (取消随机混合端口)
  • 这时虚拟机 Ubuntu 已经可以访问 google.com
posted @ 2024-02-05 21:35  Computer_Tech  阅读(14)  评论(0编辑  收藏  举报