Mounting vhdx

135 views
Skip to first unread message

Igor Varfolomeev

unread,
Mar 20, 2021, 8:52:00 AM3/20/21
to WinFsp
I fount that it's not possible to mount vhdx disk image via WinFsp.

Reproduction steps:
  1. Create a new dummy 100MB vhdx file on a local HDD with "right click on start -> disk management -> Action -> Create VHD". 
  2. The vhdx is mounted OK, it is possible to copy a file into it. Disconnecting and re-attaching also works OK.
  3. Disconnect the vhdx and move it to "\\sshfs.r\user@host\path\test.vhdx" 
  4. Try mount it with "disk management -> Action-> Attach VHD" using the WinFsp drive letter or full path - it fails with the following dummy error message:
    """
    ---------------------------
    Virtual Disk Manager
    ---------------------------
    The parameter is incorrect. 
    ---------------------------
    OK   
    ---------------------------
    """
  5. Try mount it with "elevated cmd -> `diskpart` -> `select vdisk file="\\sshfs.r\user@host\path\test.vhdx"`" - it fails with
    """
    DiskPart has encountered an error: The parameter is incorrect.
    See the System Event Log for more information.
    There is no virtual disk selected.
    """

Known issues related to vhdx mounting:
  1. Here Shermatr0n mentioned that similar symptoms might be related to a disk quota.

    I've noticed that "Quotas" is mentioned in the unsupported features list.

  2. There's a fairly large number of posts mentioning that mounting vhdx that is located on a linux-based NAS is problematic. Sometimes people attribute this to the lack of SMB3 support.

So, is there any chance to make WinFsp work for vhd/vhdx mounting?
Should it work, or it a known incompatibility?
  • OS version and build: Windows 10 version 1803, 17134.1304 
  • WinFsp version and build: 1.8.20304 , sshfs-win-3.5.20357-x64


Igor Varfolomeev

unread,
Apr 2, 2021, 4:29:05 PM4/2/21
to WinFsp
Just for reference, I've also opened an issue here: https://github.com/billziss-gh/winfsp/issues/358 .

Bill Zissimopoulos

unread,
Apr 2, 2021, 5:09:00 PM4/2/21
to Igor Varfolomeev, WinFsp

Thanks. I have responded there.

 

Bill

 

 

From: win...@googlegroups.com <win...@googlegroups.com> On Behalf Of Igor Varfolomeev
Sent: Friday, April 2, 2021 1:29 PM
To: WinFsp <win...@googlegroups.com>
Subject: [winfsp] Re: Mounting vhdx

 

Just for reference, I've also opened an issue here: https://github.com/billziss-gh/winfsp/issues/358 .

On Saturday, March 20, 2021 at 3:52:00 PM UTC+3 Igor Varfolomeev wrote:

I fount that it's not possible to mount vhdx disk image via WinFsp.

 

Reproduction steps:

1.       Create a new dummy 100MB vhdx file on a local HDD with "right click on start -> disk management -> Action -> Create VHD". 

2.       The vhdx is mounted OK, it is possible to copy a file into it. Disconnecting and re-attaching also works OK.

3.       Disconnect the vhdx and move it to "\\sshfs.r\user@host\path\test.vhdx

4.       Try mount it with "disk management -> Action-> Attach VHD" using the WinFsp drive letter or full path - it fails with the following dummy error message:

"""

---------------------------

Virtual Disk Manager

---------------------------

The parameter is incorrect. 

---------------------------

OK   

---------------------------
"""

5.       Try mount it with "elevated cmd -> `diskpart` -> `select vdisk file="\\sshfs.r\user@host\path\test.vhdx"`" - it fails with


"""
DiskPart has encountered an error: The parameter is incorrect.
See the System Event Log for more information.
There is no virtual disk selected.
"""

 

Known issues related to vhdx mounting:

1.       Here Shermatr0n mentioned that similar symptoms might be related to a disk quota.



I've noticed that "Quotas" is mentioned in the unsupported features list.

2.       There's a fairly large number of posts mentioning that mounting vhdx that is located on a linux-based NAS is problematic. Sometimes people attribute this to the lack of SMB3 support.

 

So, is there any chance to make WinFsp work for vhd/vhdx mounting?

Should it work, or it a known incompatibility?

· OS version and build: Windows 10 version 1803, 17134.1304 

· WinFsp version and build: 1.8.20304 , sshfs-win-3.5.20357-x64

 

 

--
You received this message because you are subscribed to the Google Groups "WinFsp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to winfsp+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/winfsp/fa7111b8-f39f-4166-817d-2803a5e089b9n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages