On Mon, Jun 8, 2009 at 11:45, Klaus Espenlaub<[email protected]> wrote: > Young schrieb: >> <snip> > > The problem with documenting this is that it'll be extremely difficult to > understand. The snapshot name makes sense only in combination with a VM name > (several VMs may have the same snapshot names), and even if both bits of > information are available it's still not unique enough: a VM can have up to > 32 disks, and thus the base name of the image you want to clone is also > necessary. > > Any good ideas how to implement this in an easy to use fashion are highly > welcome. At the moment I can only think of adding further (optional) command > line parameters for the VM name and snapshot name, and let VBoxManage do the > walking.
How about: VboxManage clonehd -vmname VmName [-snapshot snapshot_name] [-interface <ide<0-4> | sata<0-XX> | scsi<0-xx>>] Snapshot is the name given to a snapshot of the VM (suposing snapshots names are unique in a VM), the disk will then be cloned of the given snapshot. If snapshot is not specified it should clone work on the "current state". If the interface is not specified the first interface (the bootable one?) is selected automatically. If no vmname is given it should clone a given disk image (as it is today). Otherwise you can make two commands: one with the current behavior and other with the one that I propose. Sounds good? :) > > That doesn't cover esoteric cases such as using the same image as several > disks (yes, that's possible, read the manual). > >> But, in the snapshot directory the file names do not correspond to the >> snapshot name. The only way to relate them seems to be the date. >> But, every file that corresponds to the date of a snapshot has a .sav file >> extension. > > The .sav file is not related to disks. They contain the state of the VM when > the snapshot was created. > >> How does that work? Isn't a .vdi file extension required? > > Strictly speaking the .vdi file extension is never required, but you're > looking at the wrong files. > > Klaus > > _______________________________________________ vbox-users mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-users
