Create and modify the contents of a VDI disk image in Linux

Jonathan Williamson picture Jonathan Williamson · Oct 13, 2011 · Viewed 11.7k times · Source

Is there any way I can create a Virtual Box disk image (.vdi) that is NTFS formatted and copy a set of files to it prior to attaching it to an already configured instance as a second disk using VBoxManage?

Answer

Shamit Verma picture Shamit Verma · Oct 13, 2011

Yes, you will have to:

  1. "Aattch" the VDI file as another disk device
  2. "Mount" NTFS partitions in that VDI file

Ways of doing that are described in this post:

https://serverfault.com/questions/210684/how-do-you-mount-a-vdi-image-on-linux