As of VDDK 6.7.1, read-only mount is supported on Linux, as it was previously on Windows. This section describes a Linux solution for earlier VDDK releases. Now applications can mount the base disk of a snapshot with the read-only flag.
Here are possible use cases for read-only mounting of virtual disks:
■
|
Avoid accidentally writing data to the disk, which is opened read/write mode. |
■
| |
■
|
Use previous VM as a restore point by reverting to its original snapshot. |
In VDDK 6.7.0 and before, Linux VixMntapi did not support read-only access. To mount a disk read-only, applications had to either mount the virtual disk of a powered off virtual machine, or mount the snapshot of a powered on virtual machine. The VixMntapi library can combine the two techniques to create read-only disk, as below.
To mount disks while saving a read-only copy: