Skip to main content

Mount file systems using SMB

You can mount file systems as network drives on Windows-based Virtual Machine instances using SMB (Server Message Block).

Mount on Virtual Machine instances​

To mount a file system to a Windows instance using SMB:

Connect to a Virtual Machine instance​

  1. Go to KakaoCloud console > Beyond Compute Service > Virtual Machine.

  2. In the Instance menu, click the [⋮] button for the instance, then select RDP connection. Check the information required for connection in the RDP connection pop-up.

    ItemDescription
    Public IPA public IP address is required to connect to the Windows instance from your PC
    - You can configure it from the [⋮] button > Assign public IP
    - TCP/3389 must be allowed in the security group inbound rules
    User nameFixed as administrator
    PasswordClick the [Register key pair] button and upload the key pair file configured when the instance was created

Mount with File Explorer (GUI)​

  1. Open This PC and click Map network drive on the Computer tab in the top menu.

  2. Select a drive letter and enter the file system path (access point) in the folder field.

    • Format: \\{file system IP}\{shared volume name}
    • Example: \\10.111.11.111\share_storage
  3. Click the [Finish] button and enter the ID and password of an authorized account in the credential input window.

Mount with PowerShell (CLI)​

  1. Run the SMB mount command.

    New-PSDrive -Name "Z" -PSProvider FileSystem -Root "\\{file system IP}\{shared volume name}" -Persist
  2. Check the mount status.

    Get-PSDrive -Name "Z"
  3. If the file system is mounted successfully, you can see a result similar to the following.

    Name           Used (GB)     Free (GB) Provider      Root                                               CurrentLocation
    ---- --------- --------- -------- ---- ---------------
    Z 10.50 989.50 FileSystem \\11.111.11.111\share_storage

Unmount SMB​

Disconnect the network drive when you no longer use it.

  1. Disconnect it from File Explorer.

    • In This PC, right-click the connected drive (Z:) and select Disconnect.
  2. Disconnect it from PowerShell with the following command.

    Remove-PSDrive -Name "Z"