コンテンツにスキップ

Porta On Prem VM Windows Shared Folder

このコンテンツはまだ日本語訳がありません。

Setting up a Shared Folder between Porta VM and Windows

Section titled “Setting up a Shared Folder between Porta VM and Windows”

Set up a mount point between VM and Windows to easily transfer files between Windows and the Porta VM.

  1. Connect to the VM using SSH (replace the command below with your own values):

    • portavm is the username you will be connecting as
    • VM-IP is the VM’s IPv4 address on the network
    Terminal window
    ssh portavm@<VM-IP>
    # Example: ssh portavm@192.168.50.9
  2. In the VM, run:

    Terminal window
    ~/scripts/setup_shared_folders.sh
  3. Enter the Porta VM sudo password when prompted.

  4. After the script completes, return to the VirtualBox application in Windows and set up the Windows shared folder:

    1. Right-click on the VM and go to Settings → Shared Folders: Right-click -> Settings Settings → Shared Folders
    2. Click the “Add new shared folder” icon: Add new shared folder
    3. In the pop-up that appears, enter the following details:
      • Folder Path: Use the dropdown’s “Other” option to choose, or create, a folder where VM files can be exported. Choose folder path
      • Folder Name: Enter vm-exports
        • This name is case-sensitive and must be entered as seen here.
      • Mount point: Enter /home/portavm/windows-exports
        • This name is case-sensitive and must be entered as seen here.
      • Check “Auto-mount” and “Make Permanent” and click OK. Settings → Shared Folders
    4. Click OK to close the settings window.
  5. You can now export files from the Porta VM to Windows using the shared folder.

To export a file from the Porta VM to Windows, first, ensure you have already set up a shared folder, then:

  1. Connect to the VM using SSH (replace the command below with your own values):

    • portavm is the username you will be connecting as
    • VM-IP is the VM’s IPv4 address on the network
    Terminal window
    ssh portavm@<VM-IP>
    # Example: ssh portavm@192.168.50.9
  2. Run the following command, replacing /path/to/file/to/export with the path to the Porta VM file you want to export:
    Terminal window
    ~/scripts/export_to_windows.sh /path/to/file/to/export
  3. The file will appear at the Windows Folder Path that you specified during setup.