Skip to content

Commit

Permalink
Mount disks as read-write by default (allows use of persistent disk i…
Browse files Browse the repository at this point in the history
…mages)
  • Loading branch information
cblackcom committed Nov 28, 2020
1 parent c41a396 commit e9218df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtual/VirtualSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class VirtualSystem: NSObject, VZVirtualMachineDelegate {
var storage: [VZStorageDeviceConfiguration] = []
if !command.disk.isEmpty {
for disk in command.disk {
let blockAttachment = try VZDiskImageStorageDeviceAttachment(url: URL(fileURLWithPath: disk).absoluteURL, readOnly: true)
let blockAttachment = try VZDiskImageStorageDeviceAttachment(url: URL(fileURLWithPath: disk).absoluteURL, readOnly: false)
let blockDevice = VZVirtioBlockDeviceConfiguration(attachment: blockAttachment)
storage.append(blockDevice)
}
Expand Down

0 comments on commit e9218df

Please sign in to comment.