Setting Up a Shared Directory / file Between Windows Host and Debian Hyper-V VM for MegaRAID Status Monitoring
Hi Everyone,
The RAID is configured on on a Windows Server host and I want to access that status from a Debian-based VM running on Hyper-V using StorCLI Tool.
And I'm currently able to retrieve the RAID status from Hyper-V Debian VM using SSH remoting with PowerShell.
ssh user@windows-server-ip 'powershell -Command "C:\\StorCLI\\storcli64.exe /c0 show all"'
However, to avoid repeated login attempts on the host, I’m looking for a way to establish a persistent connection that will last over the VM's runtime.
My idea is to set up a shared directory or file that both the Windows Host and the Debian VM can access. The RAID status can then be written to a file on the host, and the VM can read this file whenever needed.
Here’s what I’m aiming to achieve:
Windows Host: Write RAID status to a shared file.
Debian VM: Access and read the RAID status from the shared file.
I Just refer this, but it seems its only possible with Windows Guest OS
Use local resources on Hyper-V virtual machine with VMConnect | Microsoft Learn
Has anyone done something similar or have suggestions on the best way to implement this shared directory or file setup between a Windows Host and a Debian Hyper-V VM?
Any guidance on the most efficient and reliable method would be greatly appreciated!
Thanks in advance for your help!