How to modify .vdi file

Discussions related to using VirtualBox on Windows hosts.
Post Reply
SpaceJehovah
Posts: 6
Joined: 23. Jul 2009, 07:16
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: MyOS

How to modify .vdi file

Post by SpaceJehovah »

Hi all,

I am a fresh fish. I wanna copy a 512B bootsector into .vdi file to get a hard disk image, then make VBox boot from virtual disk image...
But when i'm using winhex to edit .vdi, i don't know from where to copy such 512B bootsector...

Thanks
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 modify .vdi file

Post by mpack »

:?: A boot sector is not enough to boot a VM: but I'll assume you already know that.

Terry's All about VDIs tutorial gives you enough information to parse the VDI format, it should be the easiest thing in the world to find the boot sector. Looking at the VBox source code will help as well to flesh out the details of the format. I assume you have the background knowledge to understand all this, otherwise the road you are starting on makes no sense.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: How to modify .vdi file

Post by vbox4me2 »

Look in the OSE sources or use a linuxISO/BartPE to access the VDI.
SpaceJehovah
Posts: 6
Joined: 23. Jul 2009, 07:16
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: MyOS

Re: How to modify .vdi file

Post by SpaceJehovah »

Thanks! I'll try again :D
Post Reply