Virtual box - how to boot from usb drive - Cannot create the raw disk VMDK: VERR_INVALID_PARAMETER

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Rafaelz
Posts: 2
Joined: 1. Nov 2022, 21:26

Virtual box - how to boot from usb drive - Cannot create the raw disk VMDK: VERR_INVALID_PARAMETER

Post by Rafaelz »

I am trying to boot from usb from virtual box.
I am using the instructions from this web site
how-to-boot-from-a-usb-drive-in-virtualbox

When I try to run the following command in CMD as administrator I get the following
Error message:

Code: Select all

C:\Program Files\Oracle\VirtualBox>VBoxManage internalcommands createrawvmdk -filename C:\usb.vmdk -rawdisk \\.\PhysicalDrive1
VBoxManage.exe: error: VMDK: Image path: 'C:\usb.vmdk'. Getting config interface failed
VBoxManage.exe: error: Error code VERR_INVALID_PARAMETER at F:\tinderbox\win-rel\src\VBox\Storage\VMDK.cpp(4481) in function int __cdecl vmdkRawDescParseConfig(struct VMDKIMAGE *,char **,unsigned int *,unsigned int *,void **,unsigned __int64 *,bool *,char **)
VBoxManage.exe: error: VMDK: could get raw descriptor for 'C:\usb.vmdk'
VBoxManage.exe: error: Error code VERR_INVALID_PARAMETER at F:\tinderbox\win-rel\src\VBox\Storage\VMDK.cpp(5296) in function int __cdecl vmdkCreateImage(struct VMDKIMAGE *,unsigned __int64,unsigned int,const char *,const struct VDGEOMETRY *,const struct VDGEOMETRY *,const union RTUUID *,struct VDINTERFACEPROGRESS *,unsigned int,unsigned int)
VBoxManage.exe: error: Cannot create the raw disk VMDK: VERR_INVALID_PARAMETER
VBoxManage.exe: error: The raw disk vmdk file was not created
I am using Oracle VM Virtual box 7.0
On windows 10 Home
And I have created the bootable usb using rufus with the following parameters – see attached screenshot.

Could you please help me create the vmdk file so I can use virtual box to boot from usb?
I am open to other alternatives as well.

Thanks
Rafael
Attachments
rufus usb.png
rufus usb.png (19.68 KiB) Viewed 3396 times
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Virtual box - how to boot from usb drive - Cannot create the raw disk VMDK: VERR_INVALID_PARAMET

Post by scottgus1 »

Creating a raw disk in 7.0 is broken for now. Should be back up and running in a version or two.

Downgrading to 6.1.40 to make the raw disk file is reported as a workaround, then come back up to 7.0.
Rafaelz
Posts: 2
Joined: 1. Nov 2022, 21:26

Re: Virtual box - how to boot from usb drive - Cannot create the raw disk VMDK: VERR_INVALID_PARAMET

Post by Rafaelz »

scottgus1 wrote:Creating a raw disk in 7.0 is broken for now. Should be back up and running in a version or two.

Downgrading to 6.1.40 to make the raw disk file is reported as a workaround, then come back up to 7.0.
Thank you very much. It worked.
Post Reply