Difference between revisions of "VBoxManage"
From Hawk Wiki
(→VBoxManage) |
|||
Line 19: | Line 19: | ||
# setup auto start first | # setup auto start first | ||
https://askubuntu.com/questions/404665/how-to-start-virtual-box-machines-automatically-when-booting | https://askubuntu.com/questions/404665/how-to-start-virtual-box-machines-automatically-when-booting | ||
− | + | # if you see error VERR_ACCESS_DENIED, tun this | |
+ | # sudo touch /etc/vbox/${USER}.start | ||
VBoxManage modifyvm <uuid|vmname> --autostart-enabled on | VBoxManage modifyvm <uuid|vmname> --autostart-enabled on | ||
</pre> | </pre> |
Revision as of 21:16, 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 # setup auto start first https://askubuntu.com/questions/404665/how-to-start-virtual-box-machines-automatically-when-booting # if you see error VERR_ACCESS_DENIED, tun this # sudo touch /etc/vbox/${USER}.start 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