Virtualbox: Difference between revisions

From Halfface
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==Rebuild kernel modules==
==Rebuild kernel modules==
  service vboxdrv setup
  service vboxdrv setup
=list all vmws=
for USER in $(awk -F: '/bash/ {print $1}' /etc/passwd) ; do echo $USER ; su $USER -c "VBoxManage list vms" ; done
root
vbox
"ip400-server-template" {917d0887-b512-4f63-9786-33f663b4d5aa}
"ip400-gitlab-server" {6c6adea4-0d3e-473e-ad95-0539c5ecf984}
"ip400-redmine-server" {cec3eef8-6513-497c-85f1-9e920b5be265}
"ip400-artifactory-server" {969efe87-47af-430f-9bc5-bbddffa1e331}abjorklund
abjorklund
Look at process to see who own vms running.
$ ps uxawww| grep vbox
vbox      1514 56.9  1.0 5149168 260412 ?      Ssl  Nov19 1852:55 /usr/lib/virtualbox/VBoxHeadless -s ip400-gitlab-server
vbox      1597  2.4  0.5 3620484 125116 ?      Ssl  Nov19  79:55 /usr/lib/virtualbox/VBoxHeadless -s ip400-artifactory-server
vbox      1634  2.5  0.3 1754960 92084 ?      Ssl  Nov19  82:33 /usr/lib/virtualbox/VBoxHeadless -s ip400-redmine-server


==fix mount usb==
==fix mount usb==

Revision as of 13:50, 21 November 2018

Rebuild kernel modules

service vboxdrv setup

list all vmws

for USER in $(awk -F: '/bash/ {print $1}' /etc/passwd) ; do echo $USER ; su $USER -c "VBoxManage list vms" ; done

root
vbox
"ip400-server-template" {917d0887-b512-4f63-9786-33f663b4d5aa}
"ip400-gitlab-server" {6c6adea4-0d3e-473e-ad95-0539c5ecf984}
"ip400-redmine-server" {cec3eef8-6513-497c-85f1-9e920b5be265}
"ip400-artifactory-server" {969efe87-47af-430f-9bc5-bbddffa1e331}abjorklund
abjorklund

Look at process to see who own vms running.

$ ps uxawww| grep vbox
vbox      1514 56.9  1.0 5149168 260412 ?      Ssl  Nov19 1852:55 /usr/lib/virtualbox/VBoxHeadless -s ip400-gitlab-server
vbox      1597  2.4  0.5 3620484 125116 ?      Ssl  Nov19  79:55 /usr/lib/virtualbox/VBoxHeadless -s ip400-artifactory-server
vbox      1634  2.5  0.3 1754960 92084 ?       Ssl  Nov19  82:33 /usr/lib/virtualbox/VBoxHeadless -s ip400-redmine-server

fix mount usb

On Fedora 7 usbfs is mounted in /etc/rc.d/rc.sysinit as

mount -n -t usbfs /proc/bus/usb /proc/bus/usb

vboxusers can thus not use usb; all usb devices will be shown greyed out. The following command gives vboxusers access access to use usb in clients.

mount -t usbfs -o remount,devgid=$(awk -F: '/^vboxusers:/{print $3}' /etc/group),devmode=664  /proc/bus/usb /proc/bus/usb