Windows开机启动VMWare虚拟机的系统

 Windows  2019-08-24  admin  3555  4799

1.创建vm_centos.bat文件

"D:\Program Files (x86)\VMware\VMware Workstation\vmware.exe" -x "E:\VMware\CentOS7\CentOS7.vmx"

"D:\Program Files (x86)\VMware\VMware Workstation\vmware.exe" 为VMWare虚拟机的安装路径。

"E:\VMware\CentOS7\CentOS7.vmx" 为虚拟机已安装系统的路径,注意是.vmx扩展名的文件。

2.设置开机启动项

找到启动文件夹,一般是C:\Users\用户名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

或者打开运行(win+R),输入shell:startup,回车,也可以快速打开启动文件夹。

把vm_centos.bat文件移动到启动文件夹即可。



vmware.exe 可用命令

Usage: vmware (OPTION ...] [—] [configuration file(s)]
where OPTIONS are:
-v Show program version
-x Power on when a virtual machine is
opened
-X Same as -x but also go into full screen
mode
-P  Start the virtual machine paused
-q  Close virtual machine at power off
-sNAME=VALUE    Set variable NAME to VALUE
-n  Open a new window
-f  Start in full screen mode

Console connection:
-H hostname Host
-U username User name
-P password Password for remote connection

如果文章对您有帮助,点击下方的广告,支持一下作者吧!

相关推荐


phpstorm 设置 外部命令

C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.20.11781.0_x64__8wekyb3d8bbwe\wt.exe-d $ContentRoot$$ProjectFileDir$

Systemd Web 管理系统:简化服务管理

# Systemd Web Systemd Web 是一个 Systemd 的 Web UI 管理系统,通过直观的界面和易用的操作,让用户能够轻松地管理 Linux 系统和服务。该项目旨在简化 Systemd 的使用,使得无论是专业的系统管理员还是普通的用户,都能够方便地对系统进行操作。 ## [github地址] (https://github.com/topascend/systemd

systemctl 使用

Systemd是Linux系统工具,用来启动守护进程,已成为大多数发行版的标准配置。而systemctl是Systemd的主命令,用于管理系统。其实我们大部分服务都有使用systemctl管理,比如MySQL、Nginx等等。常见配置如下:[Unit] #单元描述 Description=GFAPP #在什么服务启动之后再执行本程序 After=mysql.service [Serv

使用 govcl 开发桌面UI 在 Lazarus IDE 编译中报错

使用 govcl 开发桌面UI 在 Lazarus IDE 编译中报错go build -i -buildmode=exe -ldflags="-H windowsgui" -tags="tempdll" -o "project1.exe"flag provided but not defined: -iusage: go build [