File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,13 @@ extension UTMAppleConfiguration {
251
251
let vzconfig = VZVirtualMachineConfiguration ( )
252
252
try system. fillVZConfiguration ( vzconfig)
253
253
if #available( macOS 12 , * ) {
254
- let fsConfig = VZVirtioFileSystemDeviceConfiguration ( tag: " share " )
254
+ let tag : String
255
+ if #available( macOS 13 , * ) , system. boot. operatingSystem == . macOS {
256
+ tag = VZVirtioFileSystemDeviceConfiguration . macOSGuestAutomountTag
257
+ } else {
258
+ tag = " share "
259
+ }
260
+ let fsConfig = VZVirtioFileSystemDeviceConfiguration ( tag: tag)
255
261
fsConfig. share = UTMAppleConfigurationSharedDirectory . makeDirectoryShare ( from: sharedDirectories)
256
262
vzconfig. directorySharingDevices. append ( fsConfig)
257
263
} else if !sharedDirectories. isEmpty {
You can’t perform that action at this time.
0 commit comments