1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00
dockerfiles/phpvirtualbox
2017-05-08 07:05:07 +08:00
..
arm swith to new domain: easypi.pro 2017-05-08 07:05:07 +08:00
config.php add phpvirtualbox 2016-06-14 16:33:12 +08:00
docker-compose.yml add phpvirtualbox 2016-06-14 16:33:12 +08:00
Dockerfile swith to new domain: easypi.pro 2017-05-08 07:05:07 +08:00
nginx.conf add phpvirtualbox 2016-06-14 16:33:12 +08:00
README.md update phpvirtualbox 2016-07-21 14:52:02 +08:00
servers-from-env.php add phpvirtualbox 2016-06-14 16:33:12 +08:00
vboxweb.service add phpvirtualbox 2016-06-07 02:00:47 +08:00

phpVirtualBox

This is a fork of jazzdd86/phpvirtualbox.

phpVirtualBox is a web-based front-end to VirtualBox written in PHP.

docker-compose.yml

phpvirtualbox:
  image: vimagick/phpvirtualbox
  ports:
    - "8888:80"
  environment:
    - ID_PORT_18083_TCP=remote-server:18083
    - ID_NAME=Vbox
    - ID_USER=username
    - ID_PW=password
    - CONF_browserRestrictFolders=/data,
  restart: always
  • Make sure you can login remote-server with username:password.
  • ISO images can be placed at /data directory on remote-server.
  • During the OS installation, you can connect to it with RDP viewer.

vboxweb.service

# /etc/systemd/system/vboxweb.service
[Unit]
Description=VirtualBox Web Service
After=network.target

[Service]
ExecStart=/usr/bin/vboxwebsrv -H 0.0.0.0 -p 18083
Restart=on-failure

[Install]
WantedBy=multi-user.target

server setup

# install virtualbox
echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" > /etc/apt/sources.list.d/virtualbox.list
wget -O- http://download.virtualbox.org/virtualbox/debian/oracle_vbox_2016.asc | apt-key add -
apt-get update
apt-get install -y virtualbox-5.1 dkms
systemctl status vboxdrv

# install extpack
wget http://download.virtualbox.org/virtualbox/5.1.0/Oracle_VM_VirtualBox_Extension_Pack-5.1.0-108711.vbox-extpack
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.1.0-108711.vbox-extpack
VBoxManage list extpacks

# install vagrant
wget https://releases.hashicorp.com/vagrant/1.8.5/vagrant_1.8.5_x86_64.deb
dpkg -i vagrant_1.8.5_x86_64.deb
vagrant version

# start vm
vagrant box add debian/jessie64
vagrant init debian/jessie64
vagrant up

# disable vboxweb-service
systemctl stop vboxweb-service
systemctl disable vboxweb-service

# enable vboxweb
systemctl daemon-reload
systemctl start vboxweb
systemctl enable vboxweb