Files
org-roam/20230504095005-virtualbox.org
2025-11-05 09:18:11 +01:00

48 lines
1.9 KiB
Org Mode

:PROPERTIES:
:ID: 53e90634-0ed4-4db5-8f6b-04755c805f55
:END:
#+title: virtualbox
#+filetags: :programme:linux:
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 [[id:0dea8c51-5e1e-460c-9d0a-28293d62013e][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:
#+begin_src
VBoxManage list vms
#+end_src
After you got the names of the installed VM, write the name of the VM you want to run into the command:
#+begin_src
VBoxHeadless -s <name-of-VM>
#+end_src
* Starting virtual machines with a service (autostart)
Find hereafter the implementation details of a [[id:fe909b51-3cc0-4693-afc7-148ab5795d17][systemd]] service that will be used to consider a virtual machine as a service.
#+begin_src
[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
#+end_src
Post the information in
/etc/systemd/system/vboxvmservice@.service
and start the service
* VirtualBox is installed on [[id:80a4104e-af18-4d90-a45e-2c92b51e8c0c][W10]] on this [[id:408e8348-778a-4fbd-a14d-9f3d9c595b4a][cluster]]
Note: virtualbox is installed to use the [[id:5c50958e-e38d-4f6c-b111-2a50a48cc1de][freepbx]] & [[id:a88d9210-6085-4def-982a-d4a6ff391a2e][linphone]]