Hi Mark, Thanks for your advice.
> 1) Try it and see! > VirtualBox will apply an appropriate file lock, and the clonehd will fail if >the operation would be unsafe. Sorry, it can't work. The OS of the VM is running but it is NOT working, no file being transferred, nor update $ VBoxManage clonehd ~/.VirtualBox/HardDisks/wser200864.vdi ~/.VirtualBox/HardDisks/wser200864clone.vdi --format VDI Sun VirtualBox Command Line Management Interface Version 3.1.6 (C) 2005-2010 Sun Microsystems, Inc. All rights reserved. ERROR: Medium '/home/satimisu910/.VirtualBox/HardDisks/wser200864.vdi' is locked for writing by another task Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component Medium, interface IMedium, callee nsISupports Context: "CloneTo(dstDisk, DiskVariant, NULL, progress.asOutParam())" at line 688 of file VBoxManageDisk.cpp - end - > 2) If 01.vdi is the last VDI in a snapshot chain, or is the base VDI and > there >are no snapshots, > > then NO. No, 0.1.vdi is NOT a snapshot. I never ran snapshot before. I always use; VBoxManage clonehd ...... > 3) If 01.vdi is NOT the last VDI in a snapshot chain (it is another snapshot >VDI, or it is the base VDI and > > there are some snapshots), then MAYBE. 01.vdi is the base VDI without any snapshots B.R. Stephen L ----- Original Message ---- From: Mark Cranness <[email protected]> To: Community mailing list of VirtualBox users <[email protected]> Sent: Sat, July 10, 2010 7:09:35 AM Subject: Re: [VBox-users] About cloning VM Stephen Liu wrote: > I run following command cloning VM > > $ VBoxManage clonehd /path/to/01.vdi /path/to/02.vdi --format VDI > > Can I perform it while the VM is running? TIA 1) Try it and see! VirtualBox will apply an appropriate file lock, and the clonehd will fail if the operation would be unsafe. 2) If 01.vdi is the last VDI in a snapshot chain, or is the base VDI and there are no snapshots, then NO. 3) If 01.vdi is NOT the last VDI in a snapshot chain (it is another snapshot VDI, or it is the base VDI and there are some snapshots), then MAYBE. Mark ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ VBox-users-community mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vbox-users-community ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ VBox-users-community mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/vbox-users-community
