running eFlow on Windows Server 2022
Every 10 sec a copyEflowVMFile is running.
Result is ok, till:
This raises failed VSock units inside VM.
After 1 day more then 50k entries like:
"sshd_vsock@983-4294967295:22-2:2653259677.service
loaded failed failed SSH Per-Connection Server (vsock:2:2653259677) "
Systemd.log shows entries like: "Failed to start session scope session-121701.scope: Unit sysroot-var.mount not found." ... "Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether. " ...
At the end: "Stopping User Manager for UID 13623." (iotedge-user)
Any hint, why the copy command raises this error inside VM? Where is sysroot-var.mount defined?
Using PowerShell functions for Azure IoT Edge for Linux on Windows with Copy-EflowVmFile
Prerequisites:
AzureEFLOW.psm1 File:
AzureEFLOW.psm1file.C:\Program Files\WindowsPowerShell\Modules\AzureEFLOW.Azure IoT Edge for Linux on Windows Installation:
AzureEflowfolder in your PowerShell directory, you need to download and install Azure IoT Edge for Linux on Windows using the following steps:Start-Processcommand.Set Execution Policy:
AllSignedusing theSet-ExecutionPolicyPowerShell command.Copy-EflowVmFileis a command or function, possibly specific to a certain environment or tool. This command is designed to copy files to or from a virtual machine using SCP (Secure Copy Protocol).Copy-EflowVmFile:
-fromFile: Specifies the local file path you want to copy from.-toFile: Specifies the remote file path on the virtual machine where you want to copy the file.-pushFile: This flag indicates the direction of the copy. If present, it means you are pushing the file to the virtual machine. If absent, it means you are pulling the file from the virtual machine.Get-Helpcommand:Make sure you create the folder in EFlow before running the
Copy-EflowVmFilecommand.