change dynamic size to fixed

This is for discussing general topics about how to use VirtualBox.
Post Reply
adatok2
Posts: 6
Joined: 10. Aug 2010, 20:22
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: XP

change dynamic size to fixed

Post by adatok2 »

I have cloned my fixed-size vdi (10GB), but the cloned vdi is dynamic.

How can I change the dynamic to fixed-size? Or how can I clone my fixed-size vdi to fixed size vdi?
Thank you! (host xp sp3, guest xp sp3)
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: change dynamic size to fixed

Post by Sasquatch »

You can just fill up the drive temporarily so it gets it's max size. No idea why you want it to be fixed, it doesn't give any benefits (performance or fragmentation wise).
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
adatok2
Posts: 6
Joined: 10. Aug 2010, 20:22
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: XP

Re: change dynamic size to fixed

Post by adatok2 »

I use hardly my HDD booth on the host and guest. If the guest would be fixed-size, my HDD should not work so much.

Isn't there really no solution to clone a fixed size guest if the other guest is also fixed size?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: change dynamic size to fixed

Post by Perryg »

If the guest would be fixed-size, my HDD should not work so much.
Can you point me to where you got this notion? Or is it just your opinion?
AFAIK there is no way to convert it (at least easily) For stability if you really want a fixed size you should start with a fixed size.
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: change dynamic size to fixed

Post by mpack »

The "VBoxManage clonehd" command can create a fixed size output image if you use the "--variant Fixed" option, however I share the opinions already given that this is pointless and in fact counterproductive: huge obstacles in your host filesystem are likely to lead to congestion and hence fragmentation. This will not usually improve host performance and hence not improve the guest either.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: change dynamic size to fixed

Post by Perryg »

Actually notion I was talking about is that using Fixed would make the drive work better and more efficient. "If the guest would be fixed-size, my HDD should not work so much."
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: change dynamic size to fixed

Post by mpack »

Perryg wrote:Actually notion I was talking about is that using Fixed would make the drive work better and more efficient. "If the guest would be fixed-size, my HDD should not work so much."
Yep. The only thing I thought that might be referring to is a reduction in the number of seeks due to the image being less fragmented. IMHO its a bad assumption (it ignores operation of the system as a whole), but I do think that's what he was talking about.
Post Reply