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

Discussions about using Mac OS X guests (on Apple hardware) in VirtualBox.

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

Postby Scooterpiedewd » 24. Apr 2016, 00:42

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
Scooterpiedewd
 
Posts: 1
Joined: 24. Apr 2016, 00:34

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

Postby ChipMcK » 24. Apr 2016, 17:31

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
ChipMcK
Volunteer
 
Posts: 1013
Joined: 20. May 2009, 02:17
Location: U S of A
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows, OSX


Return to Mac OS X Guests

Who is online

Users browsing this forum: No registered users and 4 guests