Skip to content

error while mounting windows container which is not exited container #139

@vijaykumarppsg

Description

@vijaykumarppsg

Hello,

i have one running windows container in windows machine.
i took the volume of the windows machine and trying to mount the running container,i see below error.

de.py -r /shared/volume/ProgramData/docker mount 954d7b6c9f99e6aa9ebaf71c23bdafc853d00c206db519076f97899d04115a89 /shared/954d7b6c9f99e6aa9ebaf71c23bdafc853d00c206db519076f97899d04115a89/
Warning: Due to differences in the Windows container implementation this
command will not actually mount the given container FS but will create a
mountable raw image:

954d7b6c9f99e6aa9ebaf71c23bdafc853d00c206db519076f97899d04115a89.raw

Which can then be mounted using standard tools.
Traceback (most recent call last):
File "/usr/bin/merge_vhdx.py", line 623, in
MergeVHDXTool().Main()
File "/usr/bin/merge_vhdx.py", line 606, in Main
child_disk = VHDXDisk(
File "/usr/bin/merge_vhdx.py", line 290, in init
self.bat_table = self._ParseBAT()
File "/usr/bin/merge_vhdx.py", line 421, in _ParseBAT
return BlockAllocationTable(bat_blocks, self.bat_params)
File "/usr/bin/merge_vhdx.py", line 193, in init
parsed_bat = self._ParseBATBytes(bat_bytes, bat_params)
File "/usr/bin/merge_vhdx.py", line 221, in _ParseBATBytes
parsed_entry = PayloadBlockBATEntry(bat_bytes[idx:idx+8])
File "/usr/bin/merge_vhdx.py", line 89, in init
self.state = self._parseState(bat_bytes)
File "/usr/bin/merge_vhdx.py", line 169, in _parseState
raise ValueError(f'Invalid state {state_int} for payload block entry')
ValueError: Invalid state 5 for payload block entry

Note: same command works well when we exit the container.

Thanks,
Vijay

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions