Page 1 of 1

Failure to attach a vmdk/USB device to boot 10.7 installer from...

Posted: 24. Apr 2016, 00:42
by Scooterpiedewd
I'm trying to install 10.7 from the 10.7 installer usb. I created a .vmdk to point to the stick, using "sudo VBoxManage internalcommands createrawvmdk -filename ~/Desktop/usbstick.vmdk -rawdisk /dev/disk2s2".

I set the permissions to 777 for both the image and the stick, created a VM, set the .vmdk file to boot first using the SATA order.

When I Start the VM, I expected to see it boot into the USB image.

Instead, I got an error that the .vmdk could not be opened"
Failed to open a session for the virtual machine lion.

Could not open the medium '/Users/john/Desktop/usbstick.vmdk'.

VD: error VERR_FILE_NOT_FOUND opening image file '/Users/john/Desktop/usbstick.vmdk' (VERR_FILE_NOT_FOUND).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MediumWrap
Interface: IMedium {4afe423b-43e0-e9d0-82e8-ceb307940dda}

Any ideas in either the issue at hand or the overall approach greatly appreciated. I'm running Version 5.0.18 r106667 with the Extension Pack, under 10.11.4 on an iMac (27-inch, Late 2012).

thanks much

Re: Failure to attach a vmdk/USB device to boot 10.7 installer from...

Posted: 24. Apr 2016, 17:31
by ChipMcK
Scooterpiedewd wrote:I'm trying to install 10.7 from the 10.7 installer usb. I created a .vmdk to point to the stick, using "sudo VBoxManage internalcommands createrawvmdk -filename ~/Desktop/usbstick.vmdk -rawdisk /dev/disk2s2".
In similar situation my approach was different.

Given:
VB does not boot VMs from USB stick/flash devices.
The USB contains a disk image.
  1. Create a virtual hard drive, VDI/VMDK, large enough to contain the disk image
  2. Mount that virtual hard drive on host; refer Virtual Disk Mounting tools
  3. Use Disk Utility to restore USB onto that virtual hard drive; or use a cloning application
  4. Eject/Unmount that virtual hard drive from host
  5. Attach that virtual hard drive to a virtual machine
  6. Boot that virtual machine
Smooth sailing