Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
wiki:projects:vbox [2015/07/12 23:54] jeffwiki:projects:vbox [2021/10/01 20:34] jeff
Line 1: Line 1:
 +====== Virtual Box ======
  
 +  * based on debian minimal install
 +<code>
 +nano /etc/apt/sources.list
 +
 +add:
 +deb http://download.virtualbox.org/virtualbox/debian wheezy contrib non-free
 +
 +wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add -
 +apt-get update
 +apt-get install virtualbox-6.0 (until they upgrade to 1.28)
 +</code>
 +  * create the [[http://code.google.com/p/phpvirtualbox/wiki/vboxwebServiceConfigLinux|config]] file
 +<code>
 +nano /etc/default/virtualbox
 +
 +LOAD_VBOXDRV_MODULE=1
 +VBOXWEB_USER=vbox
 +VBOXWEB_HOST=<box ip>
 +VBOXWEB_PORT=18083
 +</code>
 +  * create a vbox user and add
 +<code>
 +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/
 +</code>
 +  * do passwd on vbox
 +  * Follow [[https://www.virtualbox.org/manual/ch08.html#vboxmanage-extpack|VBoxManage extpack]] to install the [[https://www.virtualbox.org/wiki/Downloads|Extend Pack]] : [[http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html|alt download]]
 +<code>
 +VBoxManage extpack install <tarball>
 +</code>
 +  * Install [[https://www.howtoforge.com/tutorial/install-apache-with-php-and-mysql-lamp-on-debian-stretch/|LAMP Stack]] on debian
 +<code>
 +apt install php7.0-xml
 +apt install php7.0-soap
 +
 +</code>
 +  * use [[https://github.com/phpvirtualbox/phpvirtualbox|phpVirtualBox]] for management
 +<code>
 +nano /etc/rc.local
 +/bin/su -c "/usr/bin/vboxwebsrv -b" vbox
 +
 +apt-get install unzip
 +unzip phpVirtualbox -d /var/www/
 +</code>
 +  * 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 /var/www/index.html to point to the phpVirtualBox dir
 +  ** i.e. add a link to phpVirtualBox on the home page.  Also, put the box's name in the H1 tag.
 +  * Run the service
 +<code>
 +** No longer needed with the creation of the vbox home folder **
 +/usr/lib/virtualbox/vboxwebsrv --background -H 127.0.0.1 -p 18083
 +
 +nano /etc/rc.local
 +---
 +#!/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 "/usr/bin/vboxwebsrv --background -H 127.0.0.1 -p 18083" vbox
 +service vboxdrv start
 +service vboxweb-service start
 +
 +exit 0
 +---
 +chmod +x /etc/rc.local
 +</code>
 +----
 +  * autostart [[http://lifeofageekadmin.com/how-to-set-your-virtualbox-vm-to-automatically-startup/]]
 +  * using the keyboard scan codes to send to the vm
 +  * [[http://www.quadibloc.com/comp/scan.htm|codes]]
 +
 +===== Upgrading =====
 +  * updated Squeezy to Wheezy
 +    * HP drivers: tg3: tigon/tg3_tso5.bin, tigon/tg3_tso.bin, tigon/tg3.bin
 +  * remove vbox
 +  * download latest from [[virtualbox.org]]
 +  * install package
 +  * service vboxdrv restart
 +
 +===== Commands =====
 +
 +<code>
 +VBoxManage list vms
 +VBoxManage startvm crypto_1 --type headless
 +VBoxManage guestproperty get crypto_1 "/VirtualBox/GuestInfo/Net/0/V4/IP"
 +</code>
 +
 +===== Adding GPU =====
 +  
 +  * [[https://wiki.debian.org/ATIProprietary|Debian install ATI]]
 +
 +
 +<code>
 +apt-get install xdm xorg
 +rm /etc/X11/xorg.conf && aticonfig --adapter=all --initial
 +
 +nano /etc/profile
 + --
 +export DISPLAY=:0
 +export GPU_MAX_ALLOC_PERCENT=100
 +export GPU_USE_SYNC_OBJECTS=1
 +export XAUTHORITY=/.Xauthority
 + --
 +</code>
wiki/projects/vbox.txt · Last modified: 2021/12/10 22:13 by jeff
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0