Virtualbox: Difference between revisions

From Halfface
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Rebuild kernel modules==
service vboxdrv setup
=list all vmws=
=list all vmws=
for USER in $(awk -F: '/bash/ {print $1}' /etc/passwd) ; do echo $USER ; su $USER -c "VBoxManage list vms" ; done
for USER in $(awk -F: '/bash/ {print $1}' /etc/passwd) ; do echo $USER ; su $USER -c "VBoxManage list vms" ; done
  root
  root
  vbox
  vbox
Line 8: Line 6:
  "ip400-gitlab-server" {6c6adea4-0d3e-473e-ad95-0539c5ecf984}
  "ip400-gitlab-server" {6c6adea4-0d3e-473e-ad95-0539c5ecf984}
  "ip400-redmine-server" {cec3eef8-6513-497c-85f1-9e920b5be265}
  "ip400-redmine-server" {cec3eef8-6513-497c-85f1-9e920b5be265}
  "ip400-artifactory-server" {969efe87-47af-430f-9bc5-bbddffa1e331}abjorklund
  "ip400-artifactory-server" {969efe87-47af-430f-9bc5-bbddffa1e331}
  abjorklund
  abjorklund
Look at process to see who own vms running.
=Look at process to see who own vms running.=
  $ ps uxawww| grep vbox
  $ 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      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      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
  vbox      1634  2.5  0.3 1754960 92084 ?      Ssl  Nov19  82:33 /usr/lib/virtualbox/VBoxHeadless -s ip400-redmine-server
 
=list running machines=
==fix mount usb==
  VBoxManage list runningvms
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
[[Category:Applications]]
[[Category:Applications]]
[[Category:Virtualization]]
[[Category:Virtualization]]

Latest revision as of 13:54, 19 December 2018

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

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

list running machines

VBoxManage list runningvms