如何在 VirtualBox 中创建差异(多重附加)磁盘
How to create a differencing (multi-attach) disk in VirtualBox
我有一个磁盘映像(Ubuntu 来自 osboxes.org 的服务器),我想将其用作基础映像来创建多个具有不同磁盘的 VM。
当我将磁盘映像添加到虚拟媒体管理器并尝试将 Type 设置为 Multi-attach 时,我得到一个错误信息:
Cannot change type for medium 'D:\VMs\Ubuntu Server 18.04.2 (64bit).vdi': the media type 'MultiAttach' can only be used on media registered with a machine that was created with VirtualBox 4.0 or later.
我尝试使用 VBoxManage clonhd --format VDI Ubuntu Server 18.04.2 (64bit).vdi converted.vdi
转换磁盘映像,因为我认为错误消息指的是实际映像的版本,但这没有帮助。
我正在使用 VirtualBox 6.0。
将映像添加到虚拟媒体管理器后,您首先必须创建一个使用该映像作为其磁盘的一次性 VM。只有这样,您才能在虚拟媒体管理器中将 Type 更改为 Multi-attach。这将从 VM 中 un-attach 图像,然后可以删除 VM(选择 删除所有文件)。
从那时起,映像被注册为 Multi-attach 映像,并且每当它连接到任何 VM 时都会创建一个差异磁盘。
我有一个磁盘映像(Ubuntu 来自 osboxes.org 的服务器),我想将其用作基础映像来创建多个具有不同磁盘的 VM。
当我将磁盘映像添加到虚拟媒体管理器并尝试将 Type 设置为 Multi-attach 时,我得到一个错误信息:
Cannot change type for medium 'D:\VMs\Ubuntu Server 18.04.2 (64bit).vdi': the media type 'MultiAttach' can only be used on media registered with a machine that was created with VirtualBox 4.0 or later.
我尝试使用 VBoxManage clonhd --format VDI Ubuntu Server 18.04.2 (64bit).vdi converted.vdi
转换磁盘映像,因为我认为错误消息指的是实际映像的版本,但这没有帮助。
我正在使用 VirtualBox 6.0。
将映像添加到虚拟媒体管理器后,您首先必须创建一个使用该映像作为其磁盘的一次性 VM。只有这样,您才能在虚拟媒体管理器中将 Type 更改为 Multi-attach。这将从 VM 中 un-attach 图像,然后可以删除 VM(选择 删除所有文件)。
从那时起,映像被注册为 Multi-attach 映像,并且每当它连接到任何 VM 时都会创建一个差异磁盘。