VirtualBox

11 年 前 建立

11 年 前 更新

#12866 new enhancement

VBoxManage clonehd should fail early if not enough disk space

回報者: David Biesack 負責人:
元件: virtual disk 版本: VirtualBox 4.3.8
關鍵字: 副本:
Guest type: other Host type: other

描述

Given a 40GB .vmdk file, trying to clone the disk

VBoxManage clonehd in.vmdk out.vdi --format vdi

will churn happily until it runs out of disk space many minutes later.

The command should first verify that there is sufficient space for the output file (which will be roughly the same size), and fail early if there is insufficient space.

Care should be be taken for the case that the output file is in a symlinked diretory; you need to check the canonical location.

A --force option could bypass that check (for example, if there is some other job running concurrently that will free up space for the new file).

Same should be true for modifyhd or other operations that create virtual disk or other large files.

更動歷史 (1)

comment:1 11 年 前Frank Mehnert 編輯

I see the problem but this is common behavior on multi-tasking hosts. Such a file check would probably make sense for some people but

  1. The resulting cloned VM disk image could in fact be smaller than the original file (if the original file contains a lot of sectors containing of 00-filled blocks)
  2. The check could succeed but during the clone operation the disk is filled by a concurrent application.

Nevertheless I will keep this ticket open.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette