In this tutorial we send files from Linux Operating System to Windows or Linux in Virtualbox.

I. Configure VirtualBox

Configure Virtualbox Image

Configure Virtualbox Image

  1. Choose Operating System in VirtualBox.
  2. Click Settings menu.
  3. Choose Shared Folders tab.
  4. Click Adds new shared folder at the right window.
  5. Add Share Pop up will show .
  6. In the Folder Path, choose directory that use as sharing directory.
  7. Folder Name is the directory that we will use.
  8. Gift a check at Auto Mount.
  9. Ignore Read-only.
  10. Ignore Mount point also.
  11. The last is click Ok.

III. Configure Windows Operating System in VirtualBox

Configure Windows in Virtualbox Image

Configure Windows in Virtualbox Image

Configure Windows in Virtualbox Image

Configure Windows in Virtualbox Image

Configure Windows in Virtualbox Image

Configure Windows in Virtualbox Image

Notes:

  1. Run Windows Operating System.
  2. Click Device tab menu -> Choose Insert Guest Additions CD image.
  3. To Activate Copy paste, Choose Device menu tab -> Choose Shared Clipboard -> click Biderectional.
  4. To Activate Drag and drop Device menu tab -> Drag and Drop -> Click Biderectional.
  5. Open File Explorer -> Choose Computer -> Double click VirtualBox Guest Additions.
  6. For Installation, double click at VBoxWindowsAdditions.
  7. The last step restart the VM (reboot), Copy Paste, Drag and Drop, and direktori share will show in File Explorer.
  8. Addition, If there is an error Error: The Specified path does not exist. Choose file in the Sharing file directory, Copy and paste to the directory in Windows, like Downloads directory.

IV. Configure CentOS Operating System in VirtualBox

  1. Run CentOS in Virtualbox.

  2. Open terminal, install EPEL or Extra Packages for Enterprise Linux:

    sudo dnf install epel-release
    
    # Verify
    rpm -q epel-release
    
  3. Install Kernel Headers and Build Tools:

    sudo dnf install gcc make perl kernel-devel kernel-headers bzip2 dkms
    
  4. Verify kernel-devel dan kernel-linux version:

    rpm -q kernel-devel
    
    uname -r
    
  5. If Kernel version different, we must update kernel-linux in order to conflict:

    sudo dnf update kernel-*
    
  6. Restart Virtualbox

  7. When Booting, choose newly installed kernel.

  8. Verify again kernel-devel and kernel-linux must the same version:

    rpm -q kernel-devel
    
    uname -r
    
  9. Click Device tab menu -> Choose Insert Guest Additions CD image.

  10. Pop up notification for execute with GUI will show. We also can use terminal:

    cd /media/userName/VBox_Direktori/
    

    Notes:

    • userName: Change with your user.
    • VBox_direktori: Change with your Virtualbox.
  11. Execute Virtualbox:

    sudo ./VBoxLinuxAdditions.run 
    
  12. Execute code below in order to User can access Share Folder (change userName with your username):

    sudo usermod -aG vboxsf userName
    
  13. To Activate Copy paste, Choose Device menu tab -> Choose Shared Clipboard -> click Biderectional.

  14. To Activate Drag and drop Device menu tab -> Drag and Drop -> Click Biderectional.

  15. Restart VM (Reboot).

V. Configure Ubuntu Operating System in VirtualBox

  1. Run Ubuntu in Virtualbox.

  2. Update:

    sudo apt update
    sudo apt upgrade
    
  3. Restart VM (Reboot).

  4. Install additional library:

    sudo apt install build-essential dkms linux-headers-$(uname -r)
    
  5. Click Device tab menu -> Choose Insert Guest Additions CD image.

  6. Pop up notification for execute with GUI will show. We also can use terminal:

    cd /media/userName/VBox_Direktori/
    

    Notes:

    • userName: Change with your user.
    • VBox_direktori: Change with your Virtualbox.
  7. Execute Virtualbox:

    sudo ./VBoxLinuxAdditions.run 
    
  8. Execute code below in order to User can access Share Folder (change userName with your username):

    sudo usermod -aG vboxsf userName
    
  9. To Activate Copy paste, Choose Device menu tab -> Choose Shared Clipboard -> click Biderectional.

  10. To Activate Drag and drop Device menu tab -> Drag and Drop -> Click Biderectional.

  11. Restart VM (Reboot).

Bibliography