Comments (10)
There are a few different options.
-
Map host file system to the VM
Since the virtual machine for Azure EFLOW is based on Hyper-V this might be possible to share the host file system with the VM by following the instructions in this StackOverflow answer: Please note, that we have not tried this scenario ourselves, but would be very interested to hear back from you on your experience. -
Use SCP.EXE from the PowerShell command line to copy terfiles into the EFLOW VM.
SCP uses an underlying SSH channel for file transfers. The authentication between the host OS and Linux VM requires an SSH key which is located in the file 'id_rsa' in the EFLOW installation folder. A file transfer can be executed via:
C:\WINDOWS\System32\OpenSSH\scp.exe -i 'C:\Program Files\Azure IoT Edge\id_rsa' <sourcefile> iotedge-user@<vmip>:<desinationfile>
-
Interop between Windows process and Linux module
This involves a Windows process setup as a companion to a Linux module to send information directly to the Linux Module running inside the VM. We have a few interop samples available for this at https://aka.ms/winiotsamples.
Regards,
Terry
from iotedge-eflow.
Many thanks Terry
I started a script based on SCP command.
Sometime, I encounter a problem regarding the SSH key : the SSH command asks me the password even if i added the option -i with the private key.
Is it a flow about the keys ? For example when the VM is restarted ?
from iotedge-eflow.
Would you mind giving us a little background on what you are trying to accomplish with disk access? Are you coping data files into the VM then consuming them with your module to send to the cloud?
What edition/version of Windows are you using and is it a VM or running on physical hardware. If it is a VM, is it running locally or as an Azure VM? Are you running the SSH command from the local host or remotely?
Finally, can you provide step by step instructions that would help us reproduce the issue that you are encountering?
Terry
from iotedge-eflow.
Hello
Yes, I'm copying some configuration files used by the module with a disk binding.
So I'm trying to copy files to the dedicated place into the VM
I execute a schedule task to copy this files with a dedicated script :
scp.exe -i "C:\Program Files\Azure IoT Edge\id_rsa" "C:\Program Files (x86)\Sentinel\iotconfig.ini" [email protected]:/home/iotedge-user
About the host, it is a Windows workstation (not a VM neither an Azure compute) :
Windows version is 10.0.17763.437
Not sure it can help you but when I try to execute the command
Ssh-EflowVm, I receive this message :
[02/18/2021 09:04:38] Exception caught!!!
- wssagent is unreachable, please retry... at line 1627
When I try to connect to the Eflow VM from the host using the address given by Hyper-V and using the key file, it asks me the password
So in order to recap, I see 2 problems :
- one about the wssagent
- one about SSH connexion - An idea about this one is that I gave some extended rights to the iotedge-user folder in the VM (0777) in order to access from the module. Maybe, SSH do not like that the key files are accessible from everybody in the VM
Regards
Maxime
from iotedge-eflow.
- wssdagent: For some reason the wssdagent service is not running. This is hasn't been seen so far because the service should always start and restart automatically, i.e., it should always be reachable.
- SSH key file: You would get an SSH error that says the permissions on the key are not correct and it would refuse to connect at all.
Taking all the errors into account, it seems to me that there might have been some issues at deploy time?
Also, in the scp command above, are you sure this copies iotconfig.ini into the /home/iotedge-user folder? It looks to me like it would attempt to overwrite the 'iotedge-user' folder as a file (I may be wrong on this but have you tried /home/iotedge-user/iotconfig.ini?)
from iotedge-eflow.
An easy way to check the status of WSSDAgent is to execute the following command at an elevated PowerShell command prompt.
Get-Service wssdagent
If it is not running then it appears that you may have a larger issue with your specific EFLOW deployment.
Run the following command to check the status of the EFLOW virtual machine
Get-VM | Where-Object { $_.Name -like '*EFLOW'}
Terry
from iotedge-eflow.
Were you able to overcome the disk sharing issue? If you are still experiencing an issue with this please help us understand exactly what you are experiencing. If you are no longer having an issue with this, please Close the issue report.
Thank you
Terry Warwick
from iotedge-eflow.
An easy way to check the status of WSSDAgent is to execute the following command at an elevated PowerShell command prompt.
Get-Service wssdagent
If it is not running then it appears that you may have a larger issue with your specific EFLOW deployment.
Run the following command to check the status of the EFLOW virtual machine
Get-VM | Where-Object { $_.Name -like '*EFLOW'}
Terry
I am facing the same issue here.
PS C:\windows\system32> Ssh-EflowVm [06/03/2021 09:57:31] Exception caught!!! - wssagent is unreachable, please retry... at line 1682
Following your suggestions,
PS C:\windows\system32> Get-Service wssdagent
Status Name DisplayName ------ ---- ----------- Stopped wssdagent WSSD Agent Service
PS C:\windows\system32> Get-VM | Where-Object { $_.Name -like '*EFLOW'}
Name State CPUUsage(%) MemoryAssigned(M) Uptime Status Version ---- ----- ----------- ----------------- ------ ------ ------- USWE-2LFRPV2-L-EFLOW Running 0 1024 00:06:06.5930000 Operating normally 9.0
I am having a larger issue here. How can I set the WSSDAgent to automatically restart?
Thanks for your help.
from iotedge-eflow.
@mjeannin2 ,
An easy way to check the status of WSSDAgent is to execute the following command at an elevated PowerShell command prompt.
Get-Service wssdagent
If it is not running then it appears that you may have a larger issue with your specific EFLOW deployment.
Run the following command to check the status of the EFLOW virtual machine
Get-VM | Where-Object { $_.Name -like '*EFLOW'}
TerryI am facing the same issue here.
PS C:\windows\system32> Ssh-EflowVm [06/03/2021 09:57:31] Exception caught!!! - wssagent is unreachable, please retry... at line 1682
Following your suggestions,
PS C:\windows\system32> Get-Service wssdagent
Status Name DisplayName ------ ---- ----------- Stopped wssdagent WSSD Agent Service
PS C:\windows\system32> Get-VM | Where-Object { $_.Name -like '*EFLOW'}
Name State CPUUsage(%) MemoryAssigned(M) Uptime Status Version ---- ----- ----------- ----------------- ------ ------ ------- USWE-2LFRPV2-L-EFLOW Running 0 1024 00:06:06.5930000 Operating normally 9.0
I am having a larger issue here. How can I set the WSSDAgent to automatically restart?
Thanks for your help.
Update:
I fixed the WSSDAgent problem on my machine.
In Windows10, run Services.msc as admin, find the WSSD Agent Service, set the Startup Type to Automatic. On the left, start the service, no reboot is needed.
from iotedge-eflow.
That's great news - the WSSD Agent service should be automatic by default when installing EFLOW, but if for some reason it's not, then that's a great workaround.
from iotedge-eflow.
Related Issues (20)
- EFLOW and shared folders not triggering inotify events HOT 2
- Does the updating process remove customizations? HOT 2
- Deploy-EFlow failed with L6287 HOT 3
- Cannot Start EFlow Vm Due to Memory but cannot increase memory as EFlow Vm is not turned on HOT 1
- Cannot Start EFlow Vm due to Memory but cannot increase memory as EFlow Vm is not turned on HOT 3
- Shared folders are created, but the files are missing
- The shared folders are created without errors, but the files and subfolders in the host folder are missing. HOT 5
- EFLOW does not create Hyper-V VM? So then how is it virtualized? HOT 4
- Azure EFLOW CBL Mariner Size expanded to big footprint
- EFLOW is not working on some devices. Believed to be networking issue. HOT 5
- Sending Custom Module from vscode to target machine Eflow
- IOT Edge for Linux on Windows (eflow) - nested VM deployement - proxy settings - corporate firewall HOT 1
- updateWssdCert.ps1 fails after having issues running Connect-Eflowvm HOT 2
- What is v1.4.11 and why is the update failing? HOT 5
- Severe Vulnerabilities in Moby BuildKit and OCI runc: CVE-2024-23651, CVE-2024-23652, CVE-2024-23653, CVE-2024-21626 HOT 2
- .NET 8 support
- The EFlowVM randomly missing its endpoint
- Error - Failed to provision at line 2411 Failed to provision
- IoT Edge 1.5
- Azure IoT Edge for Linux on Windows Update Fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iotedge-eflow.