Can't create SD card vmdk on guest: Ubuntu 12.04--2012 rMBP
Posted: 15. Aug 2012, 04:34
This question is for a new 2012 Macbook Pro (retina and it's running 10.8, Mountain Lion--poor me, eh? ), running VirtualBox 4.1.18.
I've installed guest extensions, screen looks great/resizes, etc. and I *can* access another USB-based TTY device attached to the MBP USB port, via my Ubuntu guest OS, like with 'screen' and 'ls /dev/ttyUSB0' shows up, etc.
According to this excellent SuperUser answer on how to create a vmdk for one's SD card on new MBPs: http://superuser.com/a/458085/146236 (which unfortunately isn't working for me), one is supposed to--in JinnKo's step 3.2--do the following:
Mine, for instance, looked like this when I entered it:
But I get the following output when I execute the above:
I've installed guest extensions, screen looks great/resizes, etc. and I *can* access another USB-based TTY device attached to the MBP USB port, via my Ubuntu guest OS, like with 'screen' and 'ls /dev/ttyUSB0' shows up, etc.
According to this excellent SuperUser answer on how to create a vmdk for one's SD card on new MBPs: http://superuser.com/a/458085/146236 (which unfortunately isn't working for me), one is supposed to--in JinnKo's step 3.2--do the following:
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk -rawdisk /dev/disk2Substituting for /dev/disk[your drive goes here], of course and using a good path for /path/to/.
Mine, for instance, looked like this when I entered it:
Code: Select all
VBoxManage internalcommands createrawvmdk -filename ~/VirtualBox\ VMs/Ubuntu\ 12.04\ Precise\ Pangolin\ i386/sdcard.vmdk -rawdisk /dev/disk1
VBoxManage: error: Cannot open the raw disk '/dev/disk1': VERR_ACCESS_DENIED VBoxManage: error: The raw disk vmdk file was not createdI tried it with 'sudo ' in front, and it then seemed to work fine and gave me the following output:
RAW host disk access VMDK file /Users/brad/VirtualBox VMs/Ubuntu 12.04 Precise Pangolin i386/sdcard.vmdk created successfully.But though that worked (with 'sudo'), I get the following when I try to "Add a hard disk" (to either the IDE Controller or the SATA Controller), it's not clear from JinnKo's SuperUser post referenced above which type of controller to use (I tried both IDE and SATA, but didn't add SCSI or anything else):
Failed to open the hard disk /Users/brad/VirtualBox VMs/Ubuntu 12.04 Precise Pangolin i386/sdcard.vmdk. Permission problem accessing the file for the medium '/Users/brad/VirtualBox VMs/Ubuntu 12.04 Precise Pangolin i386/sdcard.vmdk' (VERR_ACCESS_DENIED). Result Code: VBOX_E_FILE_ERROR (0x80BB0004) Component: Medium Interface: IMedium {53f9cc0c-e0fd-40a5-a404-a7a5272082cd} Callee: IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66}Any ideas what I'm doing wrong? I imagine I should be able to execute the VBoxManage command without sudo... ?