VM Tidbits
This post is for everyone who may have lost touch working with VMs or beginning working with multiple VMs at a time.
(This post will be added upon time to time)
1- Enable Copy-Paste Feature
There are times when we need to paste into the guest VM few commands which are too long and we feel not bothered much to write it on our own unless(unless you are in the zone).
So to achieve this ability, we may go about it in 2 ways-
a) Utilize SSH
When working with any guest VM in virtualbox, we can just use our host(windows, mostly) CMD, to SSH into the guest VM. We have to first check which network adapter is the VM using, if it is NAT, you may have to enable port forwarding in VBOX.
Just go into your VM Settings > Network > Adapter 1 > Advanced Port Forwarding
And guest IP and SSH port 22 in respective fields and forrward it to your private IP and a random port e.g. 2322.
b) Install Guest Addtions
We can also simply update and upgrade the VM then installing Guest Image 7.0.6 installation. It is available in Devices Menu option and selecting Insert Guest Additions CD Image. It will pop on the panel and you can click on “Run the software” to install it or right click on autorun.sh and click run as a program.
Make sure the to change to VM Video Memory to 100+ MB, as after guest addtions installation, your screen may blackout.
After a restart, simply choose to Device > Shared ClipBoard > Bidirectional. And you will be able to simply copy paste texts from your Host to inside the VM.