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/13 00:54] – external edit 127.0.0.1 | wiki:projects:vbox [2021/10/01 23:16] – jeff | ||
---|---|---|---|
Line 8: | Line 8: | ||
deb http:// | deb http:// | ||
- | wget -q http://download.virtualbox.org/ | + | wget -q https://www.virtualbox.org/ |
- | apt-get update | + | apt update |
- | apt-get install virtualbox | + | apt install virtualbox-6.0 (until they upgrade to 1.28) |
</ | </ | ||
* create the [[http:// | * create the [[http:// | ||
Line 23: | Line 23: | ||
* create a vbox user and add | * create a vbox user and add | ||
< | < | ||
- | useradd | + | adduser |
usermod -a -G vboxusers vbox | usermod -a -G vboxusers vbox | ||
- | mkhomedir_helper | + | chgrp vboxusers /etc/vbox |
- | group add | + | chmod g+w /etc/vbox |
+ | chmod +t /etc/vbox | ||
+ | VBoxManage setproperty autostartdbpath /etc/vbox/ | ||
</ | </ | ||
* do passwd on vbox | * do passwd on vbox | ||
Line 33: | Line 35: | ||
VBoxManage extpack install < | VBoxManage extpack install < | ||
</ | </ | ||
- | * Install [[http:// | + | * Install [[https:// |
- | * use [[http://sourceforge.net/ | + | < |
+ | apt install php7.0-xml | ||
+ | apt install php7.0-soap | ||
+ | |||
+ | </ | ||
+ | * use [[https://github.com/ | ||
< | < | ||
nano / | nano / | ||
/bin/su -c "/ | /bin/su -c "/ | ||
- | apt-get install unzip | + | apt install unzip |
unzip phpVirtualbox -d /var/www/ | unzip phpVirtualbox -d /var/www/ | ||
</ | </ | ||
Line 52: | Line 59: | ||
** No longer needed with the creation of the vbox home folder ** | ** 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 / | ||
</ | </ | ||
---- | ---- | ||
Line 66: | Line 96: | ||
* service vboxdrv restart | * 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=/ | ||
+ | -- | ||
+ | </ |