0

in windows server 2022 have a running Eflow-Installation. Want to add shared folders Add-EflowVmSharedFolder -sharedFoldersJsonPath "D:\Shared\EFLOW-Shared\sharedFolders.json" gives: Creating storage sharedfolders under root (D:\Shared\EFLOW-Shared)

Did not find any matching sharedfolders! Did not find any matching sharedfolders!

one yaml file is created in Eflow folder

Sharedfolders structure:

enter image description here

set all folder starting with Folder D:\Shared in properties to "shared" and access to "everyone R/W"

Content of json:

[
  {
    "sharedFolderRoot": "d:SharedEFLOW-Shared",
    "sharedFolders": [
      {
        "hostFolderPath": "cronicle",
        "readOnly": false,
        "targetFolderOnGuest": "/tmp/host-cronicle"
      },
      {
        "hostFolderPath": "RWAccess",
        "readOnly": false,
        "targetFolderOnGuest": "/tmp/host-rwaccess"
      }
    ]
  }
]

created Folder regarding description: https://learn.microsoft.com/en-us/azure/iot-edge/how-to-share-windows-folder-to-vm?view=iotedge-1.4

added property shared to everyone with R/W

Expecteds command to run command Add-EflowVmSharedFolder -sharedFoldersJsonPath "D:\shared\EFLOW-Shared\sharedFolders.json" successfull and sharing in VM granted.

JIST
  • 1,139
  • 2
  • 8
  • 30
G.Kluge
  • 1
  • 2

1 Answers1

0

enter image description here

$msiPath = $([io.Path]::Combine($env:TEMP, 'AzureIoTEdge.msi'))
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest "https://aka.ms/AzEFLOWMSI_1_4_LTS_X64" -OutFile $msiPath
Start-Process -Wait msiexec -ArgumentList "/i","$([io.Path]::Combine($env:TEMP, 'AzureIoTEdge.msi'))","/qn"

enter image description here

enter image description here

Add-EflowVmSharedFolder -sharedFoldersJsonPath "C:\Shared\EFLOW-Shared\sharedFolders.json"

enter image description here

sudo su
cd /tmp/host-read-access
cat Hello-World.txt

enter image description here

  • With /tmp/host-cronicle and /tmp/host-rwaccess

enter image description here

Sampath
  • 810
  • 2
  • 2
  • 13