Install Guest VirtualBox Extension from Ubuntu Repositories
- Open the terminal in Ubuntu Operating system and update its repositories with following command:
sudo apt-get update
root@Oracle1:/home/sunny/Desktop# sudo apt-get update
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:2 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:5 http://security.ubuntu.com/ubuntu jammy-security/main amd64 DEP-11 Metadata [20.0 kB]
Get:6 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 DEP-11 Metadata [13.2 kB]
Fetched 144 kB in 2s (91.8 kB/s)
Reading package lists... Done
root@Oracle1:/home/sunny/Desktop#
2. Install the VirtualBox Guest Extension from Ubuntu.
sudo apt-get install virtualbox—ext–pack
3. It will start installing the dependencies package need for VirtualBox. You can yes as continue to install and after few minutes it will ask for license agreement YES

Press OK then press YES

It will finish the installation after that, and you can continue use of bidirectional or other copy paste features by enabling them.