From 3fb8069edd2fcd4e881d42000e3de1188af8d695 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Thu, 31 Oct 2024 21:35:12 +0100 Subject: [PATCH] Linux VMs: do not use NVMe storage device (#932) --- Sources/tart/VM.swift | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Sources/tart/VM.swift b/Sources/tart/VM.swift index c9d02fd..865a836 100644 --- a/Sources/tart/VM.swift +++ b/Sources/tart/VM.swift @@ -365,13 +365,7 @@ class VM: NSObject, VZVirtualMachineDelegate, ObservableObject { try VZDiskImageStorageDeviceAttachment(url: diskURL, readOnly: false, cachingMode: .cached, synchronizationMode: sync) : try VZDiskImageStorageDeviceAttachment(url: diskURL, readOnly: false, cachingMode: .automatic, synchronizationMode: sync) - var device: VZStorageDeviceConfiguration - if #available(macOS 14, *), vmConfig.os == .linux { - device = VZNVMExpressControllerDeviceConfiguration(attachment: attachment) - } else { - device = VZVirtioBlockDeviceConfiguration(attachment: attachment) - } - var devices: [VZStorageDeviceConfiguration] = [device] + var devices: [VZStorageDeviceConfiguration] = [VZVirtioBlockDeviceConfiguration(attachment: attachment)] devices.append(contentsOf: additionalStorageDevices) configuration.storageDevices = devices