How to install virtual machine Guest Addition

The Virtual Machine Guest Addition is a very vital component to be installed on a VM in order to enable more advanced functionalities (capabilities) of a VM.

See one of the reasons to have Virtual Machine Guest Addition installed on a VM, see https://techdirectarchive.com/2020/03/21/how-to-copy-and-paste-between-a-host-machine-and-virtualbox/

First, insert the virtual machine guest addition. Since I am demonstrating this on macOS, perform the following steps.
– Click on Device
– Click on “Insert Virtual Machine Guest Addition CD”

After the Virtual machine Guest addition is mapped to the VM

Double click on the VBoxWindowsAddition as shown above
– This will launch the setup wizard to install the guest addition as shown below.

Decide a location to have the guest additions installed.

Click on next and continue through the installation

The components to install are already selected,
– Click on install

The installation process will continue and will prompt you to rebot after the installation is complete

Now reboot the VM, and this will have the VM guest additions applied to your VM.

Now, you will now be able to perform advanced functionalities such as copying between host and VM etc.

How to copy and paste between a host machine and VirtualBox VM

This is worth configuring as it makes life (labbing đŸ™‚ ) absolutely easy for IT System Administrator. This will help you a lot by not manually inputting text etc., or search for items by opening new web browsers inside of the virtual machine to copy and paste.

Prerequisites: Ensure the VirtualBox guest additions for a whole lot of capabilities. Without the Guest Additions installed, copy and paste will not work. On how to install virtual machine Guest Addition, see https://techdirectarchive.com/2020/03/21/how-to-install-virtual-machine-guest-addition/

Setup: To configure the bidirectional shared clipboard has to be configured on all individual VM running in VirtualBox.

– Launch VirtualBox and
– Select the guest VM

Next, click on the settings button. or right click on the VM and click on settings or press Ctrl + S on your keyboard

– Select Advanced
– Under the Shared Clipboard, select “Bidirectional”

– You can also enable the “Drag and Drop” feature and
– Finally click on ok.

This is all that needs to be done. When you log back into the virtual machine, you will now be able to copy and paste text between the host device and the VM. The Drag’n’Drop feature lets you select a whole data file from the host to the guest or vice versa.

How to restore a VM to its previous state (restoring a checkpoint)

Click on the VM you would like to revert to an old (previous) state.
– Under the Checkpoint pane,
– Select the checkpoint you would like to restore (revert)
– Right-click on it and select Apply

Next, the apply dialog box appears,
– Click on apply.

When this is applied, this will turn off (shutdown) the VM.
– Click o start to start the VM and
-Click on connect to open a session (connection) to the VM

The VM will reboot and revert to the desired state you want it (have selected).

HyperV – Unable to create a new VM

When prompted with this error “The Virtual Machine Management service encountered an error while configuring the hard disk on a virtual machine”

Solution: This is because the system failed to create a new hard disk file of the same name on the same path.
– Locate where the VHDX files are stored and deleted them.
– And then try to create a new Virtual Machine (VM).

How to setup a VM via PXE boot on a Generation 1 VM – Hyper-V

To boot a virtual machine (VM) using PXE boot, the VM has to support an emulated Legacy Network Adapter. Follow the steps below to perform this.

– Shut down or turn off the virtual machine.
– Edit the settings of the virtual machine.
– Browse to Add Hardware, select Legacy Network Adapter, and click Add.
– Click OK to save your changes.

Now the virtual machine is PXE capable, with the lower performing Legacy Network Adapter.

Follow up with other manual steps

Add the legacy network adapter
– Click on Add

Click Expand the legacy Network Adapter recently added
– Enter the Mac Address (Depending on your environment, you have to set a Static MAC address that will enable the VM search for the WDS server or else it will fail)

– Click on the Next, click on the legacy Network adapter and
– under the virtual switch, select the right network adapter

Lastly, ensure that the client boots first using the Legacy Network Adapter. Just select the Legacy Network Adapter and move it to the top using the buttons.

Start your Virtual Machine, and now PXE boot should function correctly 

Here is the result below of a successful deployment.