DevOps Buzz
Search…
Bash / Shell
Bitbucket
Distros
Elasticsearch
General
Guidelines / Standards
microk8s
Prometheus
RabbitMQ
VirtualBox
Cheat Sheet
Useful VirtualBox tricks

Fix clipboard

Check your VirtualBox version.
Open your Virtualbox version.
Download Oracle_VM_VirtualBox_Extension_Pack.vbox-extpack.
Open Virtualbox VM Manager, go to File -> Preferences, Select Extension.
Now add extension by browsing to download location.

SSH to NAT guest

Open the VM Settings, go to Network.
In your adapter tab, click on Advanced. Then click on Port Forwarding.
Add a rule as follows:
Name
Protocol
Host IP
Host Port
Guest IP
Guest Port
SSH
TCP
<leave empty>
2222
<leave empty>
22
Now from you host run:
1
ssh 127.0.0.1 -p 2222
Copied!

References

Shared Folder

Install Guest Additions.
Install Extension Pack.
In your guest, create a folder to be used to mount the shared folder.
1
sudo mkdir /windows
2
sudo chown $USER:$USER /windows
Copied!
Power off the VM.
Open your VM settings and add a shared folder.
Turn on your VM.
Test mounting your folder.
1
sudo mount -t vboxsf -o uid=$UID,gid=$UID windows /windows
Copied!
Setup fstab.
1
echo "windows /windows vboxsf uid=$UID,gid=$UID 0 0" >> /etc/fstab
Copied!