Difference between revisions of "VBoxManage"

From Hawk Wiki
Jump to: navigation, search
(VBoxManage)
(VBoxManage)
Line 1: Line 1:
 
==VBoxManage==
 
==VBoxManage==
 +
first need to install extension pack
 +
https://www.virtualbox.org/wiki/Download_Old_Builds_6_1
 +
 
<pre>
 
<pre>
 
VBoxManage controlvm
 
VBoxManage controlvm

Revision as of 21:09, 5 May 2023

VBoxManage

first need to install extension pack https://www.virtualbox.org/wiki/Download_Old_Builds_6_1

VBoxManage controlvm
# list vms 
VBoxManage list vms
# show detail
vboxmanage showvminfo "my-ubuntu" 

# power off
VBoxManage controlvm my-ubuntu poweroff

# start headless
VBoxManage startvm my-ubuntu --type headless

# set auto restart 
VBoxManage modifyvm <uuid|vmname> --autostart-enabled on

To make vboxautostart-service.service work, you need to disable SELinux

sudo setenforce 0
vim /etc/selinux/config
# change to SELINUX=permissive