Page 1 of 1

Cloning

Posted: 6. Dec 2013, 20:01
by JGH
Hello,

I am using Virtual Box 4.2.12 r84980 in a windows environment.

What I am trying to do: I have begun to create several machines that are in various stages of our install process. Meaning, each machine has different components at a specific stage of install (ie machine 1 with operating system + sql, machine 2 with operating system + sql + software application). I felt this was a more efficient way to have stages ready pending what needs to be emulated/created. The alternative had been to start from the beginning each time to build a machine.

How I did it: I referenced an article on cloning in order to create my different stage machines. I wanted to use the most recent machine, clone it and then bring it up to the next stage before cloning it again. That way each machine is the same but unique. The article was found at techrepublic with the subject of clone-and-move-virtual-machines-in-virtualbox

My Issue/ Concern: In the article it references to copy the clone to an external or shared drive since the process creates the clone on my C drive. After the clone has been copied and moved, the article asks to create a new machine by pointing at the newly copied files (which, by the way, are not .vdi flies but .vbox and vmdk). However, when you go through the clone process it automatically creates a machine pointing at the c drive files in the virtual box rather than allowing you to create your own, pointing at the newly copied files on your external drive. My concerns are twofold. Since the machines are all pointing at the files on my C drive, I am concerned about running out of room down the road. Secondly, can you (or should you try to) point the newly created machines at the copied files on the external?

I am open to any advice of the questions above and also advice if I should be creating machines in a different way.

Thank you

Re: Cloning

Posted: 8. Dec 2013, 02:52
by noteirak
Cloning will use the default Machine folder that is set on the global Virtualbox config.
You should change that if you want the clone to go somewhere else.

Re: Cloning

Posted: 9. Dec 2013, 18:54
by JGH
Excellent. Thank you for the feedback. I will make that adjustment going forward. Do you know if you can 'point' the machines already created to a different location? The Advanced tab of the general settings hints that it is possible but not sure of any repercussions. Thanks again.

Re: Cloning

Posted: 9. Dec 2013, 21:36
by mpack
JGH wrote:Do you know if you can 'point' the machines already created to a different location.
Howto: Moving a VM.

Re: Cloning

Posted: 7. Jan 2014, 18:54
by JGH
Are there any issues changing the default machine folder location to that of an external hard drive? I thought I had read somewhere that it could be an issue with windows.

Re: Cloning

Posted: 7. Jan 2014, 19:01
by mpack
The question is rather vague. Changing the machine folder for new VMs will have no effect on existing VMs. If you're asking what the downsides are of locating VMs on a removable drive then the issues I can think of offhand are :-
  • The portable drive is often slower. In the case of a USB2 drive the poor performance may make the VM unusable.
  • VirtualBox stores the path to the VM folder. Windows hosts may reassign drive letters at any time, invalidating VBox's stored path.
  • There is a danger that you'll absent-mindedly unplug the drive while the VM is running, resulting in a corrupted VM disk and possibly a corrupted VM control file.