Modern Computer Architecture and Organization Second Edition, by Jim Ledin. Published by Packt Publishing.
Download and install the current version of VirtualBox. Download, install, and bring up Ubuntu Linux as a virtual machine within VirtualBox. Connect the guest OS to the Internet using a bridged network adapter. Configure and enable clipboard sharing and file sharing between the Ubuntu guest and your host operating system.
-
Download the VirtualBox 6.1 (or later version) installer from https://www.virtualbox.org/wiki/Downloads. Be sure to select the version appropriate for your host operating system.
-
Run the VirtualBox installer and accept the default prompts.
-
Download a VirtualBox image of 64-bit Ubuntu Linux. One source for such an image is https://www.osboxes.org/ubuntu/. If the image is in a compressed format, uncompress it. Use 7-zip (https://www.7-zip.org/) if the filename ends with .7z. After unzipping, the VirtualBox disk image filename will have the extension .vdi.
-
Start VirtualBox Manager and click the New icon. Give the new machine a name, such as Ubuntu, select Linux as the type, and select Ubuntu (64-bit) as the version. Click Next.
-
In the Memory size dialog, accept the default memory size (or increase it if you prefer).
-
In the Hard disk dialog, select Use an existing virtual hard disk file. Click the Browse button (it looks like a folder), then click the Add button in the Hard disk selector dialog. Navigate to the .vdi file you downloaded and select Open. Click Create to finish creating the virtual machine.
-
Click the Settings icon in VirtualBox. In the General section, Advanced tab, select Bidirectional for Shared Clipboard.
-
Click Network. In the Adapter 1 tab, select Bridged Adapter next to Attached to:.
-
Create a folder on the Windows disk named share in your Documents folder. Click Shared Folders in the VirtualBox Manager Settings dialog for your Ubuntu VM. Click the icon to add a shared folder (it looks like a folder with a plus on it). Select the share folder you just created on the host computer, set the Folder Name to share_folder and click OK.
-
Click OK in the Settings dialog to close it.
-
Click the Start icon to start the virtual machine. When the Ubuntu system finishes booting, login with password osboxes.org.
-
After login has finished, open a terminal window by pressing Ctrl+Alt+T.
-
In the VM terminal, install software packages with the following commands. Respond to the prompts to complete the installation.
sudo apt-get update
sudo apt-get install gcc make perl
sudo apt-get install build-essential linux-headers-`uname -r` dkms
-
In the Devices menu of the Ubuntu VM window, select Insert Guest Additions CD Image.... Respond to the prompts to complete the installation. Reboot the VM after installation completes.
-
Log in to the VM and open a terminal window. In the VM terminal, create a directory named share with the following command:
mkdir share
- Enter the following command in the VM terminal to mount the shared folder:
sudo mount -t vboxsf -o rw,uid=1000,gid=1000 share_folder ~/share
- Create a file in the shared folder on the Ubuntu system:
cd ~/share
touch file1.txt
- On the Windows host, verify that file1.txt is now present in your Documents\share directory.