Mount SMB file systems
You can mount SMB file systems as network drives on Windows-based Virtual Machine instances.
Mount on Virtual Machine instances
To mount an SMB file system to a Windows instance:
Connect to a Virtual Machine instance
-
Go to KakaoCloud console > Beyond Compute Service > Virtual Machine.
-
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.
Item Description Public IP A 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 rulesUser name Fixed as administratorPassword Click the [Register key pair] button and upload the key pair file configured when the instance was created
Mount with File Explorer (GUI)
-
Open This PC and click Map network drive on the Computer tab in the top menu.
-
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
- Format:
-
Click the [Finish] button and enter the ID and password of an authorized account in the credential input window.
Mount with PowerShell (CLI)
-
Run the SMB mount command.
New-PSDrive -Name "Z" -PSProvider FileSystem -Root "\\{file system IP}\{shared volume name}" -Persist -
Check the mount status.
Get-PSDrive -Name "Z" -
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.
-
Disconnect it from File Explorer.
- In This PC, right-click the connected drive (Z:) and select Disconnect.
-
Disconnect it from PowerShell with the following command.
Remove-PSDrive -Name "Z"