How to clone single virtual machine X times

This is for discussing general topics about how to use VirtualBox.
Post Reply
miroslavres
Posts: 3
Joined: 26. Jun 2016, 19:06

How to clone single virtual machine X times

Post by miroslavres »

I want to clone single virtual machine 10 times.
Is there an option in VirtualBox to do it?
If there is, can you tell me how to do it.

Thanks
Miroslav
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to clone single virtual machine X times

Post by mpack »

I already answered this when you posted (off topic) in the CloneVDI topic. My answer was :-
mpack wrote: I have no doubt you could use the command line and a batch file.
See "VBoxManage" in the VirtualBox User Manual. I would have thought this was enough to get you going, but we can see if anyone else has a better idea. Or is there something specific you needed help with?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: How to clone single virtual machine X times

Post by scottgus1 »

Miroslav wrote:Is there an option in VirtualBox to do it
Right-click the guest in the main Virtualbox window and click "Clone" ten times?
miroslavres
Posts: 3
Joined: 26. Jun 2016, 19:06

Re: How to clone single virtual machine X times

Post by miroslavres »

For single cloning takes about 15 minutes. For 10 cloning should be 150 minutes.
I do not want to wait every time I click to clone, but to do it automatically.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: How to clone single virtual machine X times

Post by scottgus1 »

Virtualbox does not have a way to do this automatically. You need the batch file and the command linked in Mpack's thread. Use the command in a looping batch file. Google for how to make a batch file loop a certain number of times.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to clone single virtual machine X times

Post by mpack »

scottgus1 wrote:Google for how to make a batch file loop a certain number of times.
Or just repeat the commands ten times in the batch file, presumably with a different clone name each time.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: How to clone single virtual machine X times

Post by scottgus1 »

Mpack wrote:repeat the commands ten times
simpler and better!!
Post Reply