m VirtualBox

Key Points

Default Switch OS key =  R.CTRL + ALT + TAB


References

Reference_description_with_linked_URLs_______________________Notes______________________________________________________________
https://download.virtualbox.org/virtualbox/6.1.16/VirtualBox for ubuntu
https://download.virtualbox.org/virtualbox/6.1.16/VirtualBox for windows

https://www.virtualbox.org/wiki/Downloads

https://download.virtualbox.org/virtualbox/6.1.16/

VirtualBox for macos
https://download.virtualbox.org/virtualbox/6.1.16/Oracle_
VM_VirtualBox_Extension_Pack-6.1.16.vbox-extpack
VBox extensions for shared folders etc
https://linuxize.com/post/how-to-install-virtualbox-guest-
additions-in-ubuntu/
Installing Guest Additions on Ubuntu Guest


Clone a virtual box

can update storage under general settings to point to different drives

use GUI or VBoxManage CLI

https://forums.virtualbox.org/viewtopic.php?f=7&t=75228

Change location of a Virtual Box

https://ubuntu.com/tutorials/install-ubuntu-desktop#1-overviewInstalling Ubuntu as a Guest OS on a VM



Key Concepts



VirtualBox default Host Key Settings

Default Switch OS key =  R.CTRL + ALT + TAB



VirtualBox VM concepts

VirtualBox has host and guest OS support

Each VM runs a guest OS

VMs can be cloned to create new VMs or as backups to save state etc


VirtualBox is installed on a host OS

You install a guest OS in VirtualBox VM when needed

After installing a guest OS, install VirtualBox guest additions for that VM

This can provide additional features - networking redirects to the guest OS, common shared folders as drives between the guest and host OS and more


When to use a VM vs a container?


if you want to manage machines, you should use Vagrant. And if you want to build and run applications environments, you should use Docker. Vagrant is a tool for managing virtual machines. Docker is a tool for building and deploying applications by packaging them into lightweight containers


Do I need Vagrant to Manage VirtualBox VMs?


Maybe not. VirtualBox provides it's own UI as an admin console to manage VM instances created with VirtualBox



VirtualBox Network Route for External TCP access from a remote client

The Linux Network settings define how network connections are configured.

Here, I view the TCP connection to get the IP 4 address so I can remotely access the running CouchDB server in Fabric from a Windows HTTP client

http://localhost:5984/_utils/#database/mychannel_fabcar/CAR1

remotely is

http://10.0.0.207:5984/_utils/#database/mychannel_fabcar/CAR1





Guest OS Install - Ubuntu 20.x LTS

https://www.nakivo.com/blog/install-ubuntu-on-virtualbox-virtual-machine/

vbox-ubuntu-guest-install-nakivo-How to Install Ubuntu on VirtualBox as a VM Complete Walkthrough.pdf

  1. Create a new VM with dynamic disk space
  2. Download a Guest OS ISO image to a USB drive
  3. Install the Guest OS from the USB for the VM
  4. Open your VM settings and go to the Storage section. Select your virtual controller used for connecting a virtual DVD drive (by default a virtual DVD drive is empty). Click the Empty status and in the right pane near the IDE Secondary Master, click the disc icon. In the menu that appears, click Choose Virtual Optical Disk File and browse your Ubuntu installation ISO image file (ubuntu-18.04.2-desktop-amd64.iso)
  5. Boot Ubuntu from the USB stick
  6. Once the new VM is prepared for installing Ubuntu on VirtualBox, start the VM (Machine > Start). The VM boots from the ISO Ubuntu installation image. The first screen that you can see after booting is the Welcome screen.
  7. click Install Ubuntu
  8. select Normal installation. A web browser, utilities, office applications and media players are installed.
  9. Erase disk and install Ubuntu. This is the default option. All disk space will be automatically allocated to Ubuntu.
  10. Who are you? Enter your user name, computer’s name, and set the password. Select Require my password to log in for a higher level of security
  11. When install complete, restart your VM with Ubuntu on VirtualBox.


Install Guest additions inside Guest OS

As mentioned in chapter 1.2, Some Terminology, page 2, the Guest Additions are designed to be installed inside a virtual machine after the guest operating system has been installed. They consist of device drivers and system applications that optimize the guest operating system for better performance and usability. See chapter 3.1, Supported Guest Operating Systems, page 45 for details on what guest operating systems are fully supported with Guest Additions by Oracle VM VirtualBox.

The Oracle VM VirtualBox Guest Additions for all supported guest operating systems are provided as a single CD-ROM image file which is called VBoxGuestAdditions.iso. This image file is located in the installation directory of Oracle VM VirtualBox. To install the Guest Additions for a particular VM, you mount this ISO file in your VM as a virtual CD-ROM and install from there.

4.2.1.1 Installing the Windows Guest Additions

In the Devices menu in the virtual machine’s menu bar, Oracle VM VirtualBox has a menu item Insert Guest Additions CD Image, which mounts the Guest Additions ISO file inside your virtual machine. A Windows guest should then automatically start the Guest Additions installer, which installs the Guest Additions on your Windows guest.

For other guest operating systems, or if automatic start of software on a CD is disabled, you need to do a manual start of the installer.

Install Guest additions on Ubuntu 20.04.1 

installing Guest Additions for Ubuntu on VirtualBox.

  1. After the operating system reboot, install VirtualBox Guest Additions, which is a set of drivers and system utilities intended to improve usability and VM performance as well as tight integration with a host OS
  2. In the VM window, go to Devices and hit Insert Guest Additions CD image. The ISO disc image that is located in the VirtualBox installation directory will be inserted into a virtual CD/DVD drive of the VM. After that, you can see a CD shortcut on the Ubuntu Desktop. The ISO disk contains autorun, and the Guest Additions installer can be started automatically. Just hit the Run button to start installing VirtualBox Guest Additions.
  3. If you get the warning message “Please install the gcc make perl packages”, it means that you have to install these packages first and then install VirtualBox Guest Additions.
  4. execute the command:

    sudo apt-get install build-essential gcc make perl dkms

  5. reboot your Ubuntu VM
  6. Run the Linux installer of VirtualBox Guest Additions on your Ubuntu on VirtualBox manually:

    sudo ./VBoxLinuxAdditions.run

  7. You can check only version of VirtualBox Guest Additions:

    lsmod | grep -io vboxguest | xargs modinfo | grep -iw version


Added Guest Additions Notes

https://linuxize.com/post/how-to-install-virtualbox-guest-additions-in-ubuntu/

vbox-guest-additions-ubuntu-tutorial-2020-linuxize-How to Install VirtualBox Guest Additions on Ubuntu 1804.pdf

VirtualBox provides a set of drivers and applications (VirtualBox Guest Additions) which can be installed in the guest operating system. The Guest Additions offer several useful functionalities for guest machines such as shared folders, shared clipboard, mouse pointer integration, better video support, and more.

In this tutorial, we will show you how to install VirtualBox Guest Additions on Ubuntu 18.04 guests. The same instructions apply for Ubuntu 16.04 and any Ubuntu-based distribution, including Linux Mint and Elementary OS.



How to Use VirtualBox: Quick Overview

https://www.nakivo.com/blog/use-virtualbox-quick-overview/

How to Use VirtualBox: Quick Overview pdf


Vagrant a tool for managing multiple VMs


vagrant in 5 minutes in video

https://www.youtube.com/watch?v=cx79jOpZVE8

vagrant beginner tutorial

https://phoenixnap.com/kb/vagrant-beginner-tutorial

 file

what is vagrant

https://www.geeksforgeeks.org/what-is-vagrant/

 file


Potential Value Opportunities



Potential Challenges



Candidate Solutions



Vagrant - an OSS tool for managing VMs like VirtualBox

https://www.vagrantup.com/intro/index.html

supports multiple VM types with a common workflow, UI, CLI

can be used in Devops on cloud platforms etc







Step-by-step guide for Example



sample code block

sample code block
 



Recommended Next Steps