Difference between revisions of "VBoxManage"
From Hawk Wiki
(→VBoxManage) |
(→VBoxManage) |
||
Line 13: | Line 13: | ||
VBoxManage startvm my-ubuntu --type headless | VBoxManage startvm my-ubuntu --type headless | ||
+ | # set auto restart | ||
+ | VBoxManage modifyvm <uuid|vmname> --autostart-enabled on | ||
</pre> | </pre> | ||
Revision as of 17:25, 21 January 2023
VBoxManage
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