Setting Up a Shared Directory / file Between Windows Host and Debian Hyper-V VM for MegaRAID Status Monitoring

fti-samadhan 40 Reputation points
2024-08-16T04:39:41.9733333+00:00

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!

Windows for business Windows Client for IT Pros Storage high availability Virtualization and Hyper-V
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.