how to get a existing static vhd to a dynamic vhd an what happens to installed OS?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Dirk_Lehmann
Posts: 60
Joined: 4. Oct 2015, 22:27

how to get a existing static vhd to a dynamic vhd an what happens to installed OS?

Post by Dirk_Lehmann »

Please see subject. My server is running out of space:

Fehler: The table '#__ucm_history' is full und
E: Sie haben nicht genug Platz in /var/cache/apt/Archives/

Installed on this vhd or vhdx OS is Ubuntu 16.04 LTS with some servers (Apache, MySQL, PHP-parser etc.)
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: how to get a existing static vhd to a dynamic vhd an what happens to installed OS?

Post by socratis »

Dirk_Lehmann wrote:My server is running out of space
You can't convert a static to a dynamic in place, you will need additional space to do the conversion. That won't help you immediately...

But if you manage to free some space or get an external HD and you're in 5.2.x, go the VirtualBox Manager and right-click on the medium that you're interested, select "Copy...". Choose "Dynamic". Do *not* choose VHD if you want to be able to compact it, select the native VDI.

You then release the current VHD from your VM, you can choose to delete the actual file as well. You move the new VDI to the location that the old VHD used to be, and you re-attach it to your VM.

IMPORTANT
Dynamic does NOT mean smaller. Dynamic means smaller initially. The more you use your VM, the bigger it gets, up to the maximum theoretical size. So, be aware of that; space is allocated dynamically (that's the dynamic part), but it does not shrink automatically.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
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 get a existing static vhd to a dynamic vhd an what happens to installed OS?

Post by mpack »

IMHO no sane person would base a dynamic server on the VHD format. Convert static VHD -> dynamic VDI.
Post Reply