CloneVDI tool - Discussion & Support

Discussions related to using VirtualBox on Windows hosts.

Re: CloneVDI tool - Discussion & Support

Postby mpack » 19. Feb 2017, 11:06

Thank for your the feedback, and you're welcome.
mpack
Site Moderator
 
Posts: 29842
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool - Discussion & Support

Postby Stamimail » 8. Mar 2017, 12:17

I found something better in the command line
VBoxManage modifymedium [disk|dvd|floppy] <uuid|filename> [--compact]

I had no free space in my Disk.
CloneVdi says [Source and Destination are the same]: "Not enough free space on destination drive"
VBoxManage modifymedium [disk|dvd|floppy] <uuid|filename> [--compact]: does the work.
Stamimail
 
Posts: 93
Joined: 17. Aug 2011, 11:53
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: W7

Re: CloneVDI tool - Discussion & Support

Postby socratis » 8. Mar 2017, 12:55

Stamimail wrote:I found something better completely different and unrelated in the command line, not to clone a VDI but to shrink my existing VDI.
There... I fixed that for you.

You were thinking of a very specific use of CloneVDI, one which is a side-effect of its normal operation (cloning). You didn't even want to clone a VDI to begin with, you wanted to get rid of the unused clusters by "tricking" CloneVDI to overwrite the original disk with the new, compacted one. You forgot that CloneVDI does NOT do its operations in place, it always creates a copy of the original VDI, and you couldn't afford that copy due to limited space.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 26059
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: CloneVDI tool - Discussion & Support

Postby Stamimail » 8. Mar 2017, 13:09

I didn't come to insult, if that was your thinking.
Stamimail
 
Posts: 93
Joined: 17. Aug 2011, 11:53
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: W7

Re: CloneVDI tool - Discussion & Support

Postby mpack » 8. Mar 2017, 13:24

As Socratis points out, CloneVDI always makes a clone of the original. I never do in-place mods, making it impossible for me to ever corrupt the original VDI, no matter what bugs might be present or what hardware glitches might occur. This was an original design goal for CloneVDI and I regard it as a big plus. People who disagree with this design goal should use another tool.

Btw, this topic is reserved for CloneVDI discussion and support. Please don't use it to discuss other tools, or cloning in general. In this case I've treated your post as an implied suggestion that CloneVDI should do in-place mods and addressed that.
mpack
Site Moderator
 
Posts: 29842
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool - Discussion & Support

Postby golfradio » 15. Mar 2017, 21:49

Hi, first of all thanks for your effort and sharing the tool. To be honest, I really haven't taken the time to understand the basics of dynamic disks, so I am asking a newbie question. But please bear with me.

I have a dynamic VDI showing a virtual size of 250G and a disk size of 116G. Inside the machine (running OL7), df -h shows 49G used. Here's the output:

$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 4.9G 0 4.9G 0% /dev
tmpfs 4.9G 1.2M 4.9G 1% /dev/shm
tmpfs 4.9G 8.5M 4.9G 1% /run
tmpfs 4.9G 0 4.9G 0% /sys/fs/cgroup
/dev/sda3 248G 49G 199G 20% /
/dev/sda1 497M 267M 231M 54% /boot
shared 322G 185G 138G 58% /media/sf_shared
tmpfs 1000M 16K 1000M 1% /run/user/1001

When I cloned the disk, I selected the option to compact. The process successfully completed but the cloned disk shows a disk size of 111G. I was expecting it to be closer to 49G given the actual physical data in the disk. Why don't I see a smaller cloned disk?
golfradio
 
Posts: 1
Joined: 21. Dec 2016, 20:36

Re: CloneVDI tool - Discussion & Support

Postby mpack » 16. Mar 2017, 11:05

Much of the data on the disk may be outside the filesystem areas which CloneVDI can compact. For example, Linux guests often reserve (and write to) a large area of the disk set aside as a swap partition. Also, if you use LVM (I can't tell, I'm not a Linux user) then CloneVDI can't access the disk internals at all, it can only fall back to VBoxManage type processing.
mpack
Site Moderator
 
Posts: 29842
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool - Discussion & Support

Postby oldtexan » 20. Mar 2017, 01:27

Thank you very much for this tool. I just cloned my old XP and am now using it's programs on my Windows 10 64 bit Dell PC perfectly..
oldtexan
 
Posts: 2
Joined: 30. Jan 2017, 01:28

Re: CloneVDI tool - Discussion & Support

Postby mpack » 20. Mar 2017, 13:05

You used CloneVDI's (admittedly clumsy) P2V features to clone a physical PC? That's interesting to hear - I assumed I was the only one who ever used that feature.
mpack
Site Moderator
 
Posts: 29842
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool - many thanks :)

Postby kpm » 27. Mar 2017, 18:44

Hi,

Your tool (with lots of careful backups and testing!) allowed me to expand a virtual disk while also converting it to dynamic mode.
Bravo sir! I strongly advise any official Oracle developers reading this post to consider integrating the same functions within the main program GUI.
I'd been struggling with housekeeping a really old virtual machine with a static disk that was constantly filling up, no more!

A full thumbs up from a very happy user, much appreciated.

Sterling effort, keep up the great work :D

Kindest regards,

KPM
kpm
 
Posts: 1
Joined: 27. Mar 2017, 18:38

Re: CloneVDI tool - Discussion & Support

Postby mpack » 27. Mar 2017, 18:58

Thanks for the compliments, although the phrase "constantly filling up, no more!" has me concerned. I hope you understand that a disk is full when the amount you have stored in it matches the size you selected at disk creation time, and that this is true regardless of whether the disk created is fixed or dynamic. I.e. a dynamic drive might be smaller than the requested size, but it can never grow larger (not unless you enlarge it with a tool such as CloneVDI). A variable disk capacity is not something which the guest OS would expect, or know how to deal with.
mpack
Site Moderator
 
Posts: 29842
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool - Discussion & Support

Postby wmeyer » 30. Mar 2017, 21:21

I notice that you have not posted a source code zip that is current with your EXE. Just wondered whether that's intentional, or perhaps not so many people have downloaded the source?
wmeyer
 
Posts: 49
Joined: 14. May 2009, 18:42
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows 7

Re: CloneVDI tool - Discussion & Support

Postby mpack » 31. Mar 2017, 10:24

Intentional, yes. I had someone who was taking the code, making one trivial change, renaming it, slapping their own authorship label on it and publishing it on Github. I found this irritating. I made the source available for openness sake and to allow people to tailor it for their own needs - not to allow others to take credit for my work.

Previous discussion: https://forums.virtualbox.org/viewtopic ... 90#p342917

Besides which, few people were downloading the source. If you haven't noticed since 2015 that the releases weren't synced up then it presumably isn't a priority for you either.
mpack
Site Moderator
 
Posts: 29842
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: CloneVDI tool - Discussion & Support

Postby wmeyer » 31. Mar 2017, 22:32

No, it hasn't been a priority at all. I've been thinking about putting together a small app to mechanize some of the VBoxManage tasks that I don't use often enough to remember how, and thought I might look at your code, which I assume is using the SDK.... Anyway, that made me notice the discrepancy.

Sorry to hear people have been unethical with your work, but I cannot say I am surprised. Thanks for your efforts -- CloneVDI is a core tool for me.
wmeyer
 
Posts: 49
Joined: 14. May 2009, 18:42
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Windows 7

Re: CloneVDI tool - Discussion & Support

Postby mpack » 1. Apr 2017, 10:52

wmeyer wrote:I thought I might look at your code, which I assume is using the SDK...

That would be a bad assumption! :) CloneVDI is a stand alone tool,, written from scratch using my own code for all tasks. It doesn't use any SDK and it doesn't require VirtualBox to be installed. VBoxManage is not used.
mpack
Site Moderator
 
Posts: 29842
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

PreviousNext

Return to VirtualBox on Windows Hosts

Who is online

Users browsing this forum: No registered users and 25 guests