Is it possible to split VirtualBox Hard Drive to multiple volumes?

11

8

VirtualBox hard drive usually has one or a few files when you create a drive. I think it is good because you manage only a few files. However, I have out of space of my drive. Is it possible to span over other volume like in VM player?

Richard Sayakanit

Posted 2011-09-11T02:30:08.810

Reputation: 293

Useful for transferring files between windows and linux using a standard (FAT32) USB stick – Sam – 2019-02-22T13:03:19.087

Answers

15

Yes it is possible, though you need to use the VMDK disk format.

VBoxManage clonehd disk.vdi disk.vmdk --format VMDK --variant Split2G

This will create disk.vmdk (text file) along with a number of disk-sXXX.vmdk (data files). You should point your virtual machine to use the disk.vmdk file.

holmb

Posted 2011-09-11T02:30:08.810

Reputation: 479

1

Just an idea, what if you used the command:

vboxmanage clonehd hd1.vdi hd2.vmdk --format VMDK --variant Split2G --type normal --remember

Jose

Posted 2011-09-11T02:30:08.810

Reputation: 29

Nice one. But the options "--type normal --remember" aren't recognized. – user626528 – 2016-09-25T07:39:48.783

According to https://forums.virtualbox.org/viewtopic.php?f=6&t=77767 , this works but you need to relink the newly created disk because it changed UUID. Not tested yet

– PPC – 2019-04-16T14:25:55.740

0

VirtualBox supports .vmdk files since 2.1. So you can convert your .vdi to 2GB-parts .vmdk and open it in VirtualBox. I don't know however how about spanning the files into different disks.

jakub.g

Posted 2011-09-11T02:30:08.810

Reputation: 4 332