2

The title is pretty much describe it all.

I thought it would be an extremely easy task but I'm googling the topic for a few days and can not find a proper solution.

I succeed convert it to .iso but it's not BOOTABLE from physical machine.

I have tried :

VBoxManage clonehd file.vdi output.iso --format RAW

I have tried :

VBoxManage clonemedium --format RAW gangina.vdi gangina.img

I have tried :

qemu-img convert -f vpc -O raw gangina.vhd gangina.raw

I have also tried to mount the bootable vdi file and :

sudo dd if={mountedDirectory} of=gangina.iso status=progress

unfortunately none of them is actually bootable from physical machine.

I'm sad :(

yGangina
  • 21
  • 1
  • 4

2 Answers2

1

You cannot DD with a mounted directory.

You can dd the partition, but it would work better to dd the entire drive

example: dd sudo dd if={/dev/sda} of=filename.iso status=progress

i am assuming you are on a linux machine, but when you get it write to a usb and plug it in and boot it. i have used this method before with much success!

while you can do just a partition say sda1 or sda2 dd'ing the entire drive will achieve what you are looking for.

Keep on Keeping on

Dharman
  • 30,962
  • 25
  • 85
  • 135
0

You can convert your bootable .VDI .VHD and .VMDK souce to BOOTABLE .iso on follow way on Linux like p.e. Ubuntu, Mint or Debian:

Convert .vdi to .img

qemu-img convert -f vdi -O raw source_image.vdi destination_image.img

Convert .vhd to .img

qemu-img convert -f vpc -O raw source_image.vhd destination_image.img

Convert

qemu-img convert -f vmdk -O raw source_image.vmdk destination_image.img
Alfred.37
  • 181
  • 1
  • 12