Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
Robin Thoni 4fb84d36b6 moved to 5.2-1 5 år sedan
phpvirtualbox moved to 5.2-1 5 år sedan
.gitignore init 6 år sedan
README moved to 5.2-1 5 år sedan
docker-compose.yml init 6 år sedan
env init 6 år sedan
update_vars.sh init 6 år sedan

README

Install and configure virtualbox on host (as root):
```
apt-get install -y virtualbox
useradd -m vbox -G vboxusers
passwd vbox # put the provided password in env file
echo 'VBOXWEB_USER=vbox' >> /etc/default/virtualbox
echo 'VBOXWEB_HOST=0.0.0.0' >> /etc/default/virtualbox
systemctl enable vboxweb-service
systemctl start vboxweb-service
```
Then reboot

Allow autostart VMs (as root):
```
echo 'VBOXAUTOSTART_DB=/etc/vbox' >> /etc/default/virtualbox
echo 'VBOXAUTOSTART_CONFIG=/etc/vbox/vbox.cfg' >> /etc/default/virtualbox
echo 'default_policy = allow' > /etc/vbox/vbox.cfg
chgrp vboxusers /etc/vbox
chmod 1775 /etc/vbox
# in vbox shell (su vbox, not sudo): VBoxManage setproperty autostartdbpath /etc/vbox
# for each VM, when not running, in vbox shell (su vbox, not sudo): VBoxManage modifyvm VM_NAME --autostart-enabled on

```

Install extension pack (as root):
get version in https://download.virtualbox.org/virtualbox/
```
wget ...
vboxmanage extpack install Oracle...vbox-extpack
```