Bash script for starting VirtualBox VMs

Table of Contents

Tạo Bash script để quản lý, bật, tắt máy ảo VirtualBox

Listing your VMs

VBoxManage list vms

image

Manage VMs

Start VMs headless

VBoxManage startvm "UbuntuSERVER Clone" --type headless

Stop VMs

VBoxManage controlvm "UbuntuSERVER Clone" poweroff --type headless

Pause VMs headless

VBoxManage controlvm "UbuntuSERVER Clone" pause --type headless

Resume VMs headless

VBoxManage controlvm "UbuntuSERVER Clone" resume --type headless

  1. https://www.techrepublic.com/article/how-to-create-a-bash-script-for-starting-virtualbox-vms/
  2. https://stackoverflow.com/questions/9546324/adding-a-directory-to-the-path-environment-variable-in-windows
  3. https://community.spiceworks.com/topic/2351076-scripts-to-start-and-shutdown-virtualbox-vm

Leave a Reply

Your email address will not be published. Required fields are marked *