以无头模式启动vmware [英] Starting vmware in headless mode

查看:452
本文介绍了以无头模式启动vmware的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个centos虚拟机,我想知道是否有办法将该虚拟机转换为无头模式.

I have a centos vm and I was wondering if there is a way to turn that vm into headless mode.

我在其他网站上找到了此信息

I found this information on different site

If you want to run a headless VM under VMPlayer simply add the following to your vmware preferences file ($HOME/.vmware/preferences):

pref.vmplayer.exit.vmAction = "disconnect"

但是我找不到$ HOME/.vmware/preferences目录.

but I couldn't find the $HOME/.vmware/preferences directory.

推荐答案

假设您的VM主机是Windows

简短答案:

编辑此文件:%HOMEPATH%\AppData\Roaming\VMWare\preferences.ini

答案略长:

如果尚未将隐藏文件夹"设置为在Windows文件资源管理器中可见,则可能无法找到AppData文件夹.

If you haven't set Hidden Folders as visible in Windows File Explorer, you may have trouble finding the AppData folder.

要查看隐藏的文件夹,请执行以下操作:

  1. 打开Windows资源管理器(文件夹图标)
  2. 选择视图标签
  3. 选中隐藏项目"旁边的框

添加新设置:

  1. 关闭所有正在运行的VM,然后关闭VMWare Player
  2. 打开您的主文件夹:
    • WINKEY + R
    • 在框中输入%HOMEPATH%并点击[ENTER]
  1. Shut down any running VMs and close VMWare Player
  2. Open your home folder:
    • Press WINKEY + R
    • Type %HOMEPATH% in the box and hit [ENTER]

注意:这实际上并没有在VMWare Player 15.5.1-YMMV下对我产生预期的效果

note: This didn't actually cause the intended effect for me under VMWare Player 15.5.1 - YMMV

这篇关于以无头模式启动vmware的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆