How can I export/copy a virtual machine with all its snapshots and move it to another machine? Do I have to use some CLI commands or Export Appliance will be sufficient for this?
VirtualBox 4.0.1
You can clone a VM with all snapshiots over the GUI using the option "Clone everything".
[right mouseclick] VM -> Clone... -> [button] Next -> [radio button] Full clone -> [radio button] Everything -> [button] Clone
if you want to transplant a complex VM wholesale to a different system it's usually possible to just zip up the directory, move it to the other system, unpack it in the right place and double click on the .vbox
file to register the VM.
If you choose Export Appliance
it will just export the VM containing the last state the VM was.