VZDiskBlockDeviceStorageDeviceAttachment
A storage device attachment that uses a disk to store data.
Declaration
class VZDiskBlockDeviceStorageDeviceAttachmentOverview
The disk block device implements a storage attachment by using an actual disk rather than a disk image on a file system.
In the following example, a disk device at /dev/rdisk42 executes the I/O operations directly on that disk rather than through a file system:
By default, only the root user can access the disk file handle. Running virtual machines as root isn’t recommended. The best practice is to open the file in a separate process that has root privileges, then pass the open file descriptor using XPC or a Unix socket to a non-root process running Virtualization. For more information about Unix sockets, see Streams, Sockets, and Ports; for more information on XPC services, see the XPC framework documentation.