-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
I am trying to mount a virtiofs VZSingleDirectoryShare and receive the folling error on hvc0.
onboot 002-mount: from /containers/onboot/002-mount
mount: mounting containers on /var/lib failed: No such deviceThe LinuxKit YAML section
onboot:
- name: mount
image: linuxkit/mount:cb8caa72248f7082fc2074ce843d53cdc15df04a
command: ["/bin/mount", "-t", "virtiofs", "containers", "/var/lib"]Apple Virtualization
let storageUrl = self.getStorageUrl()
let sharedDirectory = VZSharedDirectory(url: storageUrl, readOnly: false)
let singleDirectoryShare = VZSingleDirectoryShare(directory: sharedDirectory)
let sharingConfiguration = VZVirtioFileSystemDeviceConfiguration(tag: "containers")
sharingConfiguration.share = singleDirectoryShare
virtualMachineConfiguration.directorySharingDevices = [sharingConfiguration]LinuxKit run
I also tried linuxkit run with the following command.
linuxkit run virtualization --virtiofs="containers" linuxkit/linuxkitThe mount command was adjusted to the virtiofs0 tag that LinuxKit uses.
- name: mount
image: linuxkit/mount:cb8caa72248f7082fc2074ce843d53cdc15df04a
command: ["/bin/mount", "-t", "virtiofs", "virtiofs0", "/var/lib"]In all these cases, mount was unable to access the device.
Many thanks for your support in advance!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels