Hi,
I want to mount a harddisk of VirtualBox under linux.
How do I do that?
It has .vdi exetntion.
Filesystem was created by VirtualBox 4.0.4
thanks.
How do I mount a .VDI filesystem under linux?
Re: How do I mount a .VDI filesystem under linux?
I was able to create a clone and use it on another virtual machine with
is the same as
But this isn't exactly what I want.
I know that the .vdi file is a complete harddisk,
and that I need to access the partition on it.
Code: Select all
VBoxManage clonevdi /var/vm/test_drive.vdi /var/vm/test_drive_22.vdi
Code: Select all
VBoxManage clonehd /var/vm/test_drive.vdi /var/vm/test_drive_22.vdi
I know that the .vdi file is a complete harddisk,
and that I need to access the partition on it.
Re: How do I mount a .VDI filesystem under linux?
For fixed-size VDI images,
you can follow this tutorial.
http://wiki.przemoc.net/tips/linux#moun ... size_image
For dynamic size VDI-images, it looks to be more difficult...
From what I read it is highly discouraged to mount it with a non-vdi aware application.
With the risk of corrupting the data.
You can get info of the VDI-image with:
you can follow this tutorial.
http://wiki.przemoc.net/tips/linux#moun ... size_image
For dynamic size VDI-images, it looks to be more difficult...
From what I read it is highly discouraged to mount it with a non-vdi aware application.
With the risk of corrupting the data.
You can get info of the VDI-image with:
Code: Select all
VBoxManage showhdinfo drive.vdi
UUID: {UUID1}
Accessible: yes
Logical size: 61440 MBytes
Current size on disk: 7041 MBytes
Type: normal (base)
Storage format: VDI
Format variant: dynamic default
In use by VMs: {VBOXSYS} (UUID: {UUID2})
Location: /var/driveb/share/os_sys/drive.vdi