VirtualBox VM에 Ubuntu를 설치한 후, Guest Additions을 설치하면 키입력, 해상도 설정 등을 편하게 사용할 수 있다. 이 글에서는 VirtualBox VM(Ubuntu)에서 Guest Additions 설치 방법에 대해 알아본다.
Guest Additions CD 이미지 mount
아래와 같이 장치
> 게스트 확장 CD 이미지 삽입...
을 선택한다.

아래와 같이 CD 이미지를 클릭해서 마운트 됐는지 확인한다.

VBoxLinuxAdditions.run 실행
Guest Additions CD가 마운트 된 위치를 확인한다.
$ mount| grep VBox
/dev/sr0 on /media/vboxuser/VBox_GAs_7.0.10 type iso9660 (ro,nosuid,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,uid=1000,gid=1000,dmode=500,fmode=400,iocharset=utf8,uhelper=udisks2)
CD가 마운트된 /media/vboxuser/VBox_GAs_7.0.10
위치로 이동 후 VBoxLinuxAdditions.run
을 실행한다.
$ cd /media/vboxuser/VBox_GAs_7.0.10
$ sudo ./VBoxLinuxAdditions.run
Verifying archive integrity... 100% MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.10 Guest Additions for Linux 100%
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules. This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 5.15.116-local.
update-initramfs: Generating /boot/initrd.img-5.15.116-local
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules and services 7.0.10 r158379 reloaded
VirtualBox Guest Additions: NOTE: you may still consider to re-login if some
user session specific services (Shared Clipboard, Drag and Drop, Seamless or
Guest Screen Resize) were not restarted automatically
Guest Additions 설치 확인
설치가 완료되었으면 VirtualBox VM 의 창 크기를 변경하여 변경한 크기대로 설정 되면 제대로 설치된 것으로 보면 된다.
