Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
wiki:projects:vbox [2015/07/12 23:54] – jeff | wiki:projects:vbox [2021/10/01 23:16] – jeff | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Virtual Box ====== | ||
+ | * based on debian minimal install | ||
+ | < | ||
+ | nano / | ||
+ | |||
+ | add: | ||
+ | deb http:// | ||
+ | |||
+ | wget -q https:// | ||
+ | apt update | ||
+ | apt install virtualbox-6.0 (until they upgrade to 1.28) | ||
+ | </ | ||
+ | * create the [[http:// | ||
+ | < | ||
+ | nano / | ||
+ | |||
+ | LOAD_VBOXDRV_MODULE=1 | ||
+ | VBOXWEB_USER=vbox | ||
+ | VBOXWEB_HOST=< | ||
+ | VBOXWEB_PORT=18083 | ||
+ | </ | ||
+ | * create a vbox user and add | ||
+ | < | ||
+ | adduser vbox | ||
+ | usermod -a -G vboxusers vbox | ||
+ | chgrp vboxusers /etc/vbox | ||
+ | chmod g+w /etc/vbox | ||
+ | chmod +t /etc/vbox | ||
+ | VBoxManage setproperty autostartdbpath /etc/vbox/ | ||
+ | </ | ||
+ | * do passwd on vbox | ||
+ | * Follow [[https:// | ||
+ | < | ||
+ | VBoxManage extpack install < | ||
+ | </ | ||
+ | * Install [[https:// | ||
+ | < | ||
+ | apt install php7.0-xml | ||
+ | apt install php7.0-soap | ||
+ | |||
+ | </ | ||
+ | * use [[https:// | ||
+ | < | ||
+ | nano / | ||
+ | /bin/su -c "/ | ||
+ | |||
+ | apt install unzip | ||
+ | unzip phpVirtualbox -d /var/www/ | ||
+ | </ | ||
+ | * mv config.php-example config.php | ||
+ | * change 127.0.0.1 to localhost | ||
+ | * uncomment # the noAuth line | ||
+ | * add password to the user/pass line | ||
+ | * edit / | ||
+ | ** i.e. add a link to phpVirtualBox on the home page. Also, put the box's name in the H1 tag. | ||
+ | * Run the service | ||
+ | < | ||
+ | ** No longer needed with the creation of the vbox home folder ** | ||
+ | / | ||
+ | |||
+ | nano / | ||
+ | --- | ||
+ | #!/bin/sh -e | ||
+ | # | ||
+ | # rc.local | ||
+ | # | ||
+ | # This script is executed at the end of each multiuser runlevel. | ||
+ | # Make sure that the script will "exit 0" on success or any other | ||
+ | # value on error. | ||
+ | # | ||
+ | # In order to enable or disable this script just change the execution | ||
+ | # bits. | ||
+ | # | ||
+ | # By default this script does nothing. | ||
+ | |||
+ | /bin/su -c "/ | ||
+ | service vboxdrv start | ||
+ | service vboxweb-service start | ||
+ | |||
+ | exit 0 | ||
+ | --- | ||
+ | chmod +x / | ||
+ | </ | ||
+ | ---- | ||
+ | * autostart [[http:// | ||
+ | * using the keyboard scan codes to send to the vm | ||
+ | * [[http:// | ||
+ | |||
+ | ===== Upgrading ===== | ||
+ | * updated Squeezy to Wheezy | ||
+ | * HP drivers: tg3: tigon/ | ||
+ | * remove vbox | ||
+ | * download latest from [[virtualbox.org]] | ||
+ | * install package | ||
+ | * service vboxdrv restart | ||
+ | |||
+ | ===== Commands ===== | ||
+ | |||
+ | < | ||
+ | VBoxManage list vms | ||
+ | VBoxManage startvm crypto_1 --type headless | ||
+ | VBoxManage guestproperty get crypto_1 "/ | ||
+ | </ | ||
+ | |||
+ | ===== Adding GPU ===== | ||
+ | | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | < | ||
+ | apt install xdm xorg | ||
+ | rm / | ||
+ | |||
+ | nano / | ||
+ | -- | ||
+ | export DISPLAY=:0 | ||
+ | export GPU_MAX_ALLOC_PERCENT=100 | ||
+ | export GPU_USE_SYNC_OBJECTS=1 | ||
+ | export XAUTHORITY=/ | ||
+ | -- | ||
+ | </ |