Skip to content

Instantly share code, notes, and snippets.

@aglairdev
Created June 12, 2026 06:13
Show Gist options
  • Select an option

  • Save aglairdev/e65a557c66e6285d14175adb093c8115 to your computer and use it in GitHub Desktop.

Select an option

Save aglairdev/e65a557c66e6285d14175adb093c8115 to your computer and use it in GitHub Desktop.
virtualbox-pasta-compartilhada

VirtualBox: Pasta compartilhada

Host: Cachy · VM: Mint

1. Host: grupo vboxusers

sudo usermod -aG vboxusers $USER

Reinicie a sessão.

2. VM: guest additions

2.1 Download da ISO

wget https://download.virtualbox.org/virtualbox/7.2.8/VBoxGuestAdditions_7.2.8.iso

2.2 Anexar à VM

Dispositivos -> Unidades Ópticas -> Escolher imagem de disco... Selecione a ISO baixada.

2.3 Montar e instalar

sudo mkdir -p /mnt/cdrom
sudo mount /dev/sr0 /mnt/cdrom
sudo /mnt/cdrom/VBoxLinuxAdditions.run

2.4 Grupo vboxsf na VM

sudo usermod -aG vboxsf $USER

3. Configurar pasta compartilhada

Dispositivos -> Pastas Compartilhadas -> Configurações de Pastas Compartilhadas

Campo Valor
Caminho da pasta Diretório no host
Nome da pasta Identificador (ex: compartilhada)
Auto-mount sim
Make Permanent sim

4. Reiniciar a VM

A pasta monta automaticamente em /media/sf_<nome>.

Montagem manual

sudo mount -t vboxsf NomeDaPasta /mnt

Documentação

https://www.virtualbox.org/manual/ch04.html#sharedfolders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment