From my experience Guest Additions that are bundled with VirtualBox work better. Here are steps to install them. All commands have to be executed as root.
Install kernel headers, build tools and DKMS:
# apt update
# apt install build-essential dkms
DKMS isn't required, but it will keep Guest Additions working after kernel updates. Otherwise you'd have to reinstall them.
Insert the virtual CD using appropriate menu item in VirtualBox menu:
Please note that this is a host menu. It's not inside the Debian VM. In fullscreen you may have to move your mouse to the top of the screen to reveal it. If it's hidden in windowed mode, see this question.
Mount the CD:
# mount /dev/cdrom /media/cdrom
cd
into the mounted directory:
# cd /media/cdrom
Run the installer:
# ./VBoxLinuxAdditions.run
Or alternatively, if you really want to install from repository:
# apt install virtualbox-guest-utils