Giter VIP home page Giter VIP logo

vmware-autostart's Introduction

VMware Autostart

Introduction

This program is used to start VMware Workstation 16 Virtual Machines at boot time and suspend them automatically before system shutdown or restart.

How to Install

Install the necessary packages

sudo apt install jq

Navigate to the /opt directory and clone this GitHub repository as follows:

cd /opt
git clone https://github.com/shovon8/vmware-autostart.git
cd /opt/vmware-autostart

Make sure that the /opt/vmware-autostart/bin/autostart shell script is executable.

sudo chmod +x bin/autostart

Change the login User and Group to your own login User and Group name in the vmware-autostart.service file.

[Service]
...
User=<Your Login User name>
Group=<Your Primary Group name>

Install the vmware-autostart.service systemd service.

sudo ln -s /opt/vmware-autostart/vmware-autostart.service /etc/systemd/system/vmware-autostart.service

For the systemd changes to take effect, reload systemd daemons.

sudo systemctl daemon-reload

Add the vmware-autostart.service to the system startup.

sudo systemctl enable vmware-autostart.service

Configuring Virtual Machines

To automatically start VMware Workstation Pro 16 virtual machines on boot with this program, add the absolute path of the .vmx file of your desired virtual machines in the config.json file. The configuration file is self-explanatory.

{
  "vms": [
    {
      "name": "vm-1",
      "vmx_path": "/vmware/vm-1/vm-1.vmx",
      "vmx_password": "leave this blank if the vm isn't encrypted",
      "autostart": true
    },
    {
      "name": "vm 2",
      "vmx_path": "/vmware/vm 2/vm 2.vmx",
      "vmx_password": "",
      "autostart": true
    }
  ]
}

Known Issues

If you keep a virtual machine opened in the VMware Workstation Pro 16 app, the VMware Autostart program won’t be able to suspend the virtual machine when you shutdown or reboot your computer while keeping the VMware Workstation Pro 16 app opened. It might be rare for people to shutdown or reboot their computer while keeping programs open. But the program could be improved to make sure that the VMware Workstation Pro 16 app is closed before suspending virtual machines.

vmware-autostart's People

Contributors

bill-zhanxg avatar shovon8 avatar sr793 avatar dev-shovon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.