grahamperrin

VirtualBox from a TrueOS repo on outdated FreeBSD-CURRENT

Oct 15th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 KB | None | 0 0
  1. root@momh167-gjp4-hpelitebook8570p-freebsd:/usr/local/poudriere/ports/freebsd-ports-kde # pkg-static install -r trueos-packages virtualbox-ose virtualbox-ose-kmod
  2. Updating trueos-packages repository catalogue...
  3. trueos-packages repository is up to date.
  4. All repositories are up to date.
  5. The following 2 package(s) will be affected (of 0 checked):
  6.  
  7. New packages to be INSTALLED:
  8. virtualbox-ose: 5.1.26_1 [trueos-packages]
  9. virtualbox-ose-kmod: 5.1.26 [trueos-packages]
  10.  
  11. Number of packages to be installed: 2
  12.  
  13. The process will require 410 MiB more space.
  14. 96 MiB to be downloaded.
  15.  
  16. Proceed with this action? [y/N]: y
  17. [1/2] Fetching virtualbox-ose-5.1.26_1.txz: 100% 96 MiB 877.6kB/s 01:55
  18. [2/2] Fetching virtualbox-ose-kmod-5.1.26.txz: 100% 122 KiB 125.1kB/s 00:01
  19. Checking integrity... done (0 conflicting)
  20. [1/2] Installing virtualbox-ose-kmod-5.1.26...
  21. [1/2] Extracting virtualbox-ose-kmod-5.1.26: 100%
  22. kldload_vbox: vboxdrv -> vboxdrv
  23. vboxnet_enable: YES -> YES
  24. kldload: an error occurred while loading module vboxdrv. Please check dmesg(8) for more details.
  25. /usr/local/etc/rc.d/vboxnet: WARNING: Can't load vboxdrv module.
  26. /bin/sh: rc-update: not found
  27. [2/2] Installing virtualbox-ose-5.1.26_1...
  28. ===> Creating groups.
  29. Using existing group 'vboxusers'.
  30. ===> Creating users
  31. Using existing user 'vboxusers'.
  32. Extracting virtualbox-ose-5.1.26_1: 100%
  33. Message from virtualbox-ose-5.1.26_1:
  34. =============================================================================
  35.  
  36. VirtualBox was installed.
  37.  
  38. You need to load the vboxdrv kernel module via /boot/loader.conf:
  39.  
  40. vboxdrv_load="YES"
  41.  
  42. You also have to add all users to your vboxusers group in order to use vbox.
  43.  
  44. % pw groupmod vboxusers -m jerry
  45.  
  46. Reboot the machine to load the needed kernel modules.
  47.  
  48.  
  49. Bridging Support:
  50. =================
  51.  
  52. For bridged networking please add the following line to your /etc/rc.conf:
  53.  
  54. vboxnet_enable="YES"
  55.  
  56.  
  57. USB Support:
  58. ============
  59.  
  60. For USB support your user needs to be in the operator group and needs read
  61. and write permissions to the USB device.
  62.  
  63. % pw groupmod operator -m jerry
  64.  
  65. Add the following to /etc/devfs.rules (create if it doesn't exist):
  66.  
  67. [system=10]
  68. add path 'usb/*' mode 0660 group operator
  69.  
  70. To load these new rule add the following to /etc/rc.conf:
  71.  
  72. devfs_system_ruleset="system"
  73.  
  74. Then restart devfs to load the new rules:
  75.  
  76. % /etc/rc.d/devfs restart
  77.  
  78.  
  79. Troubleshooting:
  80. ================
  81.  
  82. Running VirtualBox as non-root user may fail with a fatal error
  83. NS_ERROR_FACTORY_NOT_REGISTERED. In this case delete /tmp/.vbox-*-ipc file.
  84.  
  85. If you experience "Network: write Failed: Cannot allocate memory" errors
  86. try to increase net.graph.maxdata in /boot/loader.conf
  87.  
  88. Check wiki page for known issues and troubleshooting:
  89. http://wiki.freebsd.org/VirtualBox
  90.  
  91. Please report any problems to emulation@. Thanks!
  92.  
  93. =============================================================================
  94. root@momh167-gjp4-hpelitebook8570p-freebsd:/usr/local/poudriere/ports/freebsd-ports-kde # git pull
  95. Already up-to-date.
  96. root@momh167-gjp4-hpelitebook8570p-freebsd:/usr/local/poudriere/ports/freebsd-ports-kde # cd
  97. root@momh167-gjp4-hpelitebook8570p-freebsd:~ # exit
  98. logout
  99. [grahamperrin@momh167-gjp4-hpelitebook8570p-freebsd] ~% date ; uname -v
  100. Sun 15 Oct 2017 12:49:29 BST
  101. FreeBSD 12.0-CURRENT #0 r320869: Mon Jul 10 13:57:55 UTC 2017 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC
  102. [grahamperrin@momh167-gjp4-hpelitebook8570p-freebsd] ~% pkg -vv | grep -A 100 Repositories\:
  103. Repositories:
  104. FreeBSD: {
  105. url : "pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/latest",
  106. enabled : yes,
  107. priority : 0,
  108. mirror_type : "SRV",
  109. signature_type : "FINGERPRINTS",
  110. fingerprints : "/usr/share/keys/pkg"
  111. }
  112. area51: {
  113. url : "http://meatwad.mouf.net/rubick/poudriere/packages/head-amd64-kde",
  114. enabled : yes,
  115. priority : 5
  116. }
  117. poudriere: {
  118. url : "file:///usr/local/poudriere/data/packages/current-freebsd-ports-kde",
  119. enabled : yes,
  120. priority : 7,
  121. mirror_type : "SRV"
  122. }
  123. trueos-base: {
  124. url : "http://pkg.cdn.trueos.org/unstable/amd64-base/",
  125. enabled : no,
  126. priority : 0
  127. }
  128. trueos-packages: {
  129. url : "http://pkg.cdn.trueos.org/packages/unstable/amd64/",
  130. enabled : yes,
  131. priority : 0
  132. }
  133. [grahamperrin@momh167-gjp4-hpelitebook8570p-freebsd] ~% kldstat | grep -i vb
  134. [grahamperrin@momh167-gjp4-hpelitebook8570p-freebsd] ~% virtualbox
  135. VirtualBox: Error -610 in supR3HardenedMainInitRuntime!
  136. VirtualBox: dlopen("/usr/local/lib/virtualbox/VBoxRT.so",) failed: Shared object "libssl.so.44" not found, required by "VBoxRT.so"
  137.  
  138. VirtualBox: Tip! It may help to reinstall VirtualBox.
  139. [grahamperrin@momh167-gjp4-hpelitebook8570p-freebsd] ~% su -
  140. Password:
  141. root@momh167-gjp4-hpelitebook8570p-freebsd:~ # pkg remove virtualbox-ose virtualbox-ose-kmod
  142. Checking integrity... done (0 conflicting)
  143. Deinstallation has been requested for the following 2 packages (of 0 packages in the universe):
  144.  
  145. Installed packages to be REMOVED:
  146. virtualbox-ose-5.1.26_1
  147. virtualbox-ose-kmod-5.1.26
  148.  
  149. Number of packages to be removed: 2
  150.  
  151. The operation will free 410 MiB.
  152.  
  153. Proceed with deinstalling packages? [y/N]: y
  154. [1/2] Deinstalling virtualbox-ose-5.1.26_1...
  155. [1/2] Deleting files for virtualbox-ose-5.1.26_1: 100%
  156. ==> You should manually remove the "vboxusers" user.
  157. ==> You should manually remove the "vboxusers" group
  158. [2/2] Deinstalling virtualbox-ose-kmod-5.1.26...
  159. [2/2] Deleting files for virtualbox-ose-kmod-5.1.26: 100%
  160. root@momh167-gjp4-hpelitebook8570p-freebsd:~ # nano /usr/local/etc/pkg/repos/trueos-packages.conf
Add Comment
Please, Sign In to add comment