8

I want to get virtual box to mount and boot the disk image I took a month ago.

I have been able to mount the drive and can see its contents, everything is accessible, I want to now get the image booted up as I want to use the windows programs I need to access.

How do I proceed? Typing in the question, I only see references to virtual box images.

As I don't have a VBox image file, only the image file I called ssd.img and VBox won't mount anything other than .iso or its native format. renaming .img to .iso doesn't work.

** EDIT ** My question still remains a mystery, to reiterate, I am not using an ISO file, it is an image of a hard disk that was created usingdd command and the file is an *.img file, tried already to change the file name by renaming it and that doesn't work.

I have virtual box and want to run the windows partition of that image.

In simple terms, if it runs then I know the SSD has a bad block (which Ubuntu is not repairing / moving / stuffing in to the 11th dimension...) So I know I can then either use a scrubber and format (as the drive manufacturer suggests) then reimage and we would be all good to go again.

So to reiterate again, this is not "Installing" a windows ISO, it is mounting an image of a hard disk in virtualbox, only VB only accepts ISO or its native variety of formats.

12

Select a virtual machine by clicking its name in the VirtualBox window
Click the Machine menu at the top of the VirtualBox window, and click Settings
Click the Storage category in the Settings window
Right-click in the storage tree pane, and click Add Floppy Controller
Right-click the Floppy Controller device, and click Add Floppy Device
Click the Choose Disk button in the prompt window that appears

Navigate to the floppy disk image file (.IMG) on your computer and double-click it
If that doesn't work, try renaming the .IMG as .ISO and mount it.

If that too doesn't work, use VBoxManage's convertfromraw command as follows:

VBoxManage convertfromraw --format VDI [filename].img [filename].vdi

Finally, mount the VDI as a hard disk.

  • You should skip to 2:28 in the video because that is where you will find the instructions. – Element Tech Apr 1 '15 at 22:03
  • I have watched most of that and I have already tried making a disk, what my problem is, I have a SSD that I took an image of, its the image I need to mount / run or whatever term is used to describe being able to use a host operating system to run a 3rd part operating system. I already have an image file, it is .img not ISO. – Mark Giblin Apr 1 '15 at 23:24
6

Attaching a raw disk image should be possible by creating a raw vmdk.

In the VirtualBox images directory (like /home//VirtualBox)

VBoxManage internalcommands createrawvmdk -filename rawtest.vmdk -rawdisk /path/to/disk.img

Attaching the virtual disk to a virtual virtual machine should be possible after that. The path /path/to/disk.img can also point to a partition or a loop device.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.