Changes

Jump to: navigation, search

Package:VirtualBox

1,975 bytes added, 3 years ago
guide updating (guests)
VirtualBox Homepage: https://www.virtualbox.org
== Glossary of Terms ==
{{TableStart}}
{{TableEnd}}
== Host OS Installation ==
VirtualBox can be installed onto your Host OS - Funtoo Linux - using one of two packages: {{c|app-emulation/virtualbox}} or {{c|app-emulation/virtualbox-bin}}. The latter "-bin" package is a binary (precompiled) copy of VirtualBox. Installing this may be preferable on machines with low computing power.
}}
=== Assign VirtualBox Users ===
Normal non-root users will not be able to use VirtualBox immediately after it has been installed. The Users that are to use VirtualBox must first become a member of the group {{c|vboxusers}}. For example, a user ''alice'' is added to {{c|vboxusers}}
{{console|body=
###i## gpasswd -a ''alice'' vboxusers
}}
If currently logged in the User added to {{c|vboxusers}} must first log out before the changes will have an effect.
=== Load VirtualBox Kernel Modules ===
VirtualBox requires one or more Linux kernel modules to be loaded on the Host OS (Funtoo Linux) in order to function. As of VirtualBox version 5 these are provided by the package {{c|app-emulation/virtualbox-drivers}} which is installed automatically (as a dependency) when you install app-emulation/virtualbox.
}}
=== Starting VirtualBox ===
VirtualBox can be started from a terminal.
{{console|body=
In a Desktop Environment, VirtualBox may also be run from a menu entry. Look for the names "VirtualBox" or "Oracle xVM VirtualBox" under menu categories "System" and/or "Emulator".
=== Funtoo Linux (Host OS) kernel updates ===
The VirtualBox kernel modules are compiled for the kernel present on the Host, Funtoo Linux. Each time that the Host kernel is updated or changed, the VirtualBox kernel modules must also be rebuilt.
}}
== Guest OS Installation ==
{{warning|This section is currently under redevelopment.}}
=== Install Guest Additions ===
VirtualBox '''Guest Additions''' is a collection of applications, libraries and kernel modules/drivers that are installed in your Guest OS. These provide support for graphics, networking, and other features such as file transfer and Guest access to real physical devices such as a USB flash drive.
 
==== Funtoo or Gentoo Linux Guests ====
Following the successful installation of you Funtoo Linux ''Guest OS'' (that is within a Virtual Machine), install the package {{c|app-emulation/virtualbox-guest-additions}}.
{{console|body=
###i## emerge --ask app-emulation/virtualbox-guest-additions
}}
Next, add your Guest OS Users to the group {{c|vboxguest}}. For example, a user ''bob'' is added to {{c|vboxguests}}
 
{{console|body=
###i## gpasswd -a bob vboxguests
}}
Now add virtual-box-guest additions to the default runlevel of OpenRC.
= Guest OS Installation ={{warningconsole|This section is currently under redevelopment.body=###i## rc-update add virtualbox-guest-additions default}}== Guest Additions ==Make sure that user running X session belongs to <code>vboxguest</code> group. Create group when it does not exist. Add user to the group. That will enable :
*Shared clipboard;Without having to reboot you can now start virtualbox-guest-additions within the Funtoo Guest OS with the command*Display resizing;{{console|body=*Seamless mode;###i## rc*Drag & Drop.}}
<console>==== Other GNU/Linux Guests ====For other GNU/Linux, please refer to [https://www.virtualbox.org/manual/ch04.html###i## groupadd vboxguest###i## gpasswd -a ''user'' vboxguest</console>idp11274368 VirtualBox documentation].
== == Microsoft Windows Guests ====
{{important|This is new information.}}
VirtualBox versions '''less than 5Guest Additions are installed in a Windows Guest by mounting a virtual CD-ROM image (.iso) within the guest virtual machine.0'''
You must enable <code>additions<In your Host OS Funtoo Linux, confirm the version of VirtualBox installed:For {{c|app-emulation/code> USE flag when you intend to install Windows as a guest Ovirtualbox}}{{console|body=$##i## emerge --pretend --quiet app-emulation/Svirtualbox[##g##ebuild##!g## ##y##R##!y## ] ##g##app-emulation/virtualbox-5. That will also install the ISO image containing all necessary Windows guest drivers0.20##!g##}} '''For VirtualBox versions earlier than 5.0''' (versions 4.x)
Under the earlier chapter [[ Package:VirtualBox versions '''5#Host_OS_Installation|Host OS Installation ]], install {{c|app-emulation/virtualbox}} (or {{c|app-emulation/virtualbox-bin}}) with the USE flag {{c|additions}} enabled. This will provide the ISO necessary for installing Guest Additions within a Microsoft Windows guest.0 and above'''
'''As of version For VirtualBox versions 5.0 the USE flagand above''' {{c|additions}} '''has been removed from the package app-emulation/virtualbox'''. The guest additions ISO required for a Windows guest is now provided in a separate package, app-emulation/virtualbox-additions. Install this to access the guest additions ISO: {{f|/usr/share/virtualbox/VBoxGuestAdditions.iso}}.
From version 5.0 the USE flag {{c|additions}} has been removed from the package app-emulation/virtualbox. The Guest Additions ISO required for a Windows-based Guest OS is now provided in a separate package, {{c|app-emulation/virtualbox-additions}}. Install this manually{{console|body== Linux Guests ==###i## emerge --ask app-emulation/virtualbox-additions}}
If you want to run {{warning|The package app-emulation/'''virtualbox-additions''' installs the Guest Additions ISO on your Host OS (Funtoo GNU/Linux ). This is what you mount in a VM with Windows as a guest O/S, emerge <code>Guest OS. The package app-emulation/'''virtualbox-guest-additions</code> in ''' is different. This is the Guest Additions that you install ''inside of a VM'' that happens to be a Guest OS of Funtoo GNU/Linux guest O/S. For other GNU/or Gentoo Linux, please refer to [https://www.virtualbox.org/manual/ch04.html#idp11274368 VirtualBox documentation].
The two packages perform different tasks so be sure to install the correct package!}} Mount the Guest Additions ISO {{f|/usr/share/virtualbox/VBoxGuestAdditions.iso}} inside of your Microsoft Windows guest. Within Windows, browse to and install VirtualBox Guest Additions. == Tips and Tricks ===== Configure Video within Funtoo Linux Guests ==={{SectionNeedsUpdates}}  === Providing USB2, USB3, VRDP and/or PXE Boot ROM to Guest OS ===
{{SectionNeedsUpdates}}
Accept PUEL licence
emerge app-emulation/virtualbox-extpack-oracle
== Troubleshooting ===== EFI case ==={{SectionNeedsUpdates}}
latest releases of virtualbox have a volatile NVRAM and this makes an EFI guest boot troublesome. To workaround this following steps required:
* remove any CD images (like systemrescuecd) from the VM settings
wiki-staff
195
edits

Navigation menu