Difference between revisions of "Guide to install VirtualBox on GhostBSD"

From GhostBSD Wiki
Jump to: navigation, search
(Created page with "{{welcome}} ==Introduction== On this page we will collect some information, tips and tricks around installing VirtualBox on GhostBSD. ==Steps== ===Installing following Pa...")
 
(Installing following Packages)
Line 11: Line 11:
  
  
<code>virtualbox-ose-5.2.34</code>
+
<code>virtualbox-ose-5.2.34</code><br/>
<code>virtualbox-ose-additions-5.2.34</code>
+
<code>virtualbox-ose-additions-5.2.34</code><br/>
 
<code>virtualbox-ose-kmod-5.2.3</code>
 
<code>virtualbox-ose-kmod-5.2.3</code>
  

Revision as of 10:17, 21 February 2020

Welcome to Icon Disti GhostBSD.png Guide to install VirtualBox on GhostBSD.

Introduction

On this page we will collect some information, tips and tricks around installing VirtualBox on GhostBSD.


Steps

Installing following Packages

virtualbox-ose-5.2.34
virtualbox-ose-additions-5.2.34
virtualbox-ose-kmod-5.2.3

Loaded Kernel Module

#<nowiki> kldload vboxdrv</code> ===Entry in /boot/loader.conf === <code>vboxdrv_load="YES"</code> ===Entry in /etc/rc.conf=== <code>vboxnet_enable="YES"</code> <code>vboxguest_enable="YES"</code> <code>vboxservice_enable="YES"</code> ===User Permissions need to be manually added=== <code>pw groupadd vboxusers</code> <code>pw groupmod vboxusers -m yourusername</code> ===Add these lines to /etc/devfs.conf=== <code>own vboxnetctl root:vboxusers</code> <code>perm vboxnetctl 0660</code> ===Fore using USB Device=== <code><nowiki># pw groupmod operator -m yourusername

VirtualBox™ Host DVD/CD Access

Access to the host DVD/CD drives from guests is achieved through the sharing of the physical drives. Within VirtualBox™, this is set up from the Storage window in the Settings of the virtual machine. If needed, create an empty IDE CD/DVD device first. Then choose the Host Drive from the popup menu for the virtual CD/DVD drive selection. A checkbox labeled Passthrough will appear. This allows the virtual machine to use the hardware directly. For example, audio CDs or the burner will only function if this option is selected.

HAL needs to run for VirtualBox™ DVD/CD functions to work, so enable it in /etc/rc.conf and start it if it is not already running:

hald_enable="YES"

  1. service hald start

In order for users to be able to use VirtualBox™ DVD/CD functions, they need access to /dev/xpt0, /dev/cdN, and /dev/passN. This is usually achieved by making the user a member of operator. Permissions to these devices have to be corrected by adding these lines to /etc/devfs.conf:

perm cd* 0660 perm xpt0 0660 perm pass* 0660

Finish

Restart your Machine

Note:It is possible that the virtual machine crashes after connecting it to the host DVD device. It seems there is a bug in a older version of VirtualBox.

Further Information

VirtualBox Configuration

21.6. FreeBSD as a Host with VirtualBox™