CloneVDI tool - Discussion & Support

Discussions related to using VirtualBox on Windows hosts.

Re: CloneVDI tool - Discussion & Support

Postby mpack » 11. Nov 2014, 11:42

CloneVDI isn't copying the file, it's creating a new file with the same content, rearranged for efficiency. If you think you can create a streaming DMA copy algorithm that can do that, then be my guest!

And incidentally, the speed certainly does change with the hardware. I recently replaced my standard consumer grade hdd with a faster pro model, and the throughput doubled, from 25MB/s to 50MB/s when that drive was both source and dest. But, if either source or dest drive is especially slow (e.g. USB) then of course that will dominate the timing. The software is optimized for the scenario where the source and dest drives are the same: if memory serves it will read ahead around 16MB into a buffer before turning the I/O direction around. Testing done at the time told me that the law of diminishing returns applied heavily beyond that point.
mpack
Site Moderator
 
Posts: 29307
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool - Discussion & Support

Postby kthxbai2u » 21. Nov 2014, 09:05

@OP: I am proud to report that you can now claim Linux support.

To linux users:
Code: Select all   Expand viewCollapse view
sudo apt-get update
sudo apt-get install wine


and then just right click the application's EXE, select to run with other appplication, then find and select "Wine". Then browse to your .vdi location (i.e. /root/VirtualBox VMs/myvm/myvm.vdi) and increase size :D


Nice program, very useful. You should make a paid version, or at least make it ad supported.
kthxbai2u
 
Posts: 3
Joined: 19. Oct 2014, 02:29

Re: CloneVDI tool - Discussion & Support

Postby mpack » 21. Nov 2014, 12:14

Well thank you, but I've known for quite some time that the tool works under Wine on Linux and OS X hosts! :) It's mentioned in the release notes, and I've had a CloneVDI sticky topic in the "Linux Hosts" forum here since 2009.
mpack
Site Moderator
 
Posts: 29307
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool - Discussion & Support

Postby kthxbai2u » 22. Nov 2014, 01:46

mpack wrote:Well thank you, but I've known for quite some time that the tool works under Wine on Linux and OS X hosts! It's mentioned in the release notes, and I've had a CloneVDI sticky topic in the "Linux Hosts" forum here since 2009.


Ahh... Maybe I should start RTFM-ing lol...

Muchos Gracias for the program :)
kthxbai2u
 
Posts: 3
Joined: 19. Oct 2014, 02:29

Re: CloneVDI tool - Discussion & Support

Postby ARO » 27. Nov 2014, 22:01

Hello .... I came across your clonevdi tool through browsing the web .... this tool is exactly what I need ... I have tried it and it works very well .... However, I need to schedule it to run on a daily basis .... how can I do that? Noting that the GUI requires input ..... In my case the input is always the same ... so if the source code was available then it could be scheduled to run daily with the required input embedded in the code ... Is there a way to get hold of the code? thank you very much ............
ARO
 
Posts: 1
Joined: 27. Nov 2014, 21:50

Re: CloneVDI tool - Discussion & Support

Postby mpack » 28. Nov 2014, 13:20

There are no scheduling features in the tool, that would be an OS concern.

I would suggest reading the release notes, especially the part about command line operation, and then consider scheduling a script or batch file.
mpack
Site Moderator
 
Posts: 29307
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool - Discussion & Support

Postby eMaX » 29. Nov 2014, 01:55

mpack,

thanks for that awesome tool. Running under wine as no problem at all. It saves just an enormous amount of time. Before I found your tool, I was e.g. trying to reduce the size of a Windows 7 64bit VM down from 58 GB. The allowed size was 159 GB. I first tried nullfile, which took forever and did not help. At one point I noticed that probably due to some mistake I had made, it actually was trying to write a huge file on my host system. I ended up finding a 500 GB or so file. Nice. Next, I tried sdelete -c, and then vboxmanage -compact, which ended up giving me a file that had gone up to its maximum size, i.e., 159 GB. That option, too, take several hours and, of course, did not help at all.

Then enter CloneVDI. apt-get install wine, then go to the folder which holds the disk file, choose it, and go. Just for fun, I ran it on the 159 GB file, later also on the original 59 GB file - which made no difference really. So with your tool, I could collapse 159 GB into 36 GB in under 5 minutes:

CloneVDI.png
CloneVDI.png (123.1 KiB) Viewed 20347 times


A.W.E.S.O.M.E!

Thanks!

M
eMaX
 
Posts: 3
Joined: 21. Feb 2014, 09:59

Re: CloneVDI tool - Discussion & Support

Postby mpack » 29. Nov 2014, 12:49

That's an mightily impressive throughput figure you have there. I assume this was actually a rerun (the file was still in the cache) so you could grab the screenshot. :)
mpack
Site Moderator
 
Posts: 29307
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool - Discussion & Support

Postby eMaX » 29. Nov 2014, 13:48

Nah - it's a massively impressive server :-)
eMaX
 
Posts: 3
Joined: 21. Feb 2014, 09:59

Re: CloneVDI tool - Discussion & Support

Postby jazcyk » 30. Nov 2014, 14:52

Alone the option to generate a new UUID is very useful for me. I think you should find some way to publish this tool a more visible place (github?).
jazcyk
 
Posts: 85
Joined: 8. Jun 2008, 11:30

Re: CloneVDI tool - Discussion & Support

Postby mpack » 30. Nov 2014, 15:13

jazcyk wrote:Alone the option to generate a new UUID is very useful for me.

Generating a new UUID is actually the default in both CloneVDI and VBoxManage. It's the "Keep UUID" option which is unusual, and is required to allow in-situ compaction etc.
mpack
Site Moderator
 
Posts: 29307
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool - Discussion & Support

Postby jazcyk » 30. Nov 2014, 15:16

Yes .. but vboxmanage is not a GUI tool.
jazcyk
 
Posts: 85
Joined: 8. Jun 2008, 11:30

Re: CloneVDI tool - Discussion & Support

Postby mpack » 30. Nov 2014, 15:21

Or, you can use the VirtualBox GUI to clone disks. Same thing really.
mpack
Site Moderator
 
Posts: 29307
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool - Discussion & Support

Postby jazcyk » 30. Nov 2014, 23:22

OK .. should have checked what options the menu's have ;.)
jazcyk
 
Posts: 85
Joined: 8. Jun 2008, 11:30

Re: CloneVDI tool - Discussion & Support

Postby CAD bloke » 9. Jan 2015, 14:26

Unscientific test CloneVDI vs sdelete -z and then running VboxManage.exe" modifyhd myVM.vdi --compact

Before:   61, 438, 976 KB
CloneVDI: 53, 409, 572 KB
Tedious: 52, 995, 072 KB


For me, not enough difference to warrant running sdelete and VboxManage when CloneVDI does it in one step, much faster. sdelete running in a VM also seems to hog most of the SSD's bandwidth which is annoying on the host and other VMs.

If you're hell-bent on VboxManage I wrote a batch file, posted at http://superuser.com/questions/529149/h ... 589#862589
Last edited by CAD bloke on 11. Jan 2015, 15:05, edited 1 time in total.
CAD bloke
 
Posts: 6
Joined: 21. Sep 2013, 11:39
Location: Sydney, AUS
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: Win 7-10

PreviousNext

Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: No registered users and 60 guests

cron