1.9 KiB
virtualbox
- Headless operation
- Starting virtual machines with a service (autostart)
- VirtualBox is installed on W10 on this cluster
VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. Not only is VirtualBox an extremely feature rich, high performance product for enterprise customers, it is also the only professional solution that is freely available as Open Source Software under the terms of the GNU General Public License (GPL) version 3. See "About VirtualBox" for an introduction.
Virtuialbox is a VM Manager designed by oracle. It is used to host software and linux distributions in Madrigal Inc.
Headless operation
Write the following line in your terminal:
VBoxManage list vms
After you got the names of the installed VM, write the name of the VM you want to run into the command:
VBoxHeadless -s <name-of-VM>
Starting virtual machines with a service (autostart)
Find hereafter the implementation details of a systemd service that will be used to consider a virtual machine as a service.
[Unit]
Description=VBox Virtual Machine %i Service
Requires=systemd-modules-load.service
After=systemd-modules-load.service
[Service]
User=username
Group=vboxusers
ExecStart=/usr/bin/VBoxManage startvm %i --type startmode
ExecStop=/usr/bin/VBoxManage controlvm %i stopmode
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Post the information in
/etc/systemd/system/vboxvmservice@.service
and start the service