VirtualBox

Ticket #11307 (new defect)

Opened 2 years ago

Last modified 11 months ago

vboxmanager CO_E_SERVER_EXEC_FAILURE on raw disk create

Reported by: Trent Owned by:
Priority: major Component: virtual disk
Version: VirtualBox 4.2.6 Keywords:
Cc: Guest type: Linux
Host type: Windows

Description

I have the latest stable virtual box. I am using Windows 7 Home Premium.

When I try and create a new raw disk vmdk, I get the error listed at the bottom of this message. After some googling, I found the issue at https://www.virtualbox.org/ticket/630. And seeing my error was similar, I figured I'd remove my French Canadian keyboard, to see what would happen. Sure enough, it immediately worked. I was then unable to reproduce it. However, it came up again, and I removed my French Canadian keyboard to fix it.

You'll notice I got the error twice in a row, and then I removed the keyboard, and the third message is success.

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands createrawvmdk -filename K:\VirtualBox\UbuntuLocalHome.vmdk -rawdi sk
.\PhysicalDrive2 VBoxManage.exe: error: Failed to create the VirtualBox object! VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execution failed (extended info not available) VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands createrawvmdk -filename K:\VirtualBox\UbuntuLocalHome.vmdk -rawdi sk
.\PhysicalDrive2 VBoxManage.exe: error: Failed to create the VirtualBox object! VBoxManage.exe: error: Code CO_E_SERVER_EXEC_FAILURE (0x80080005) - Server execution failed (extended info not available) VBoxManage.exe: error: Most likely, the VirtualBox COM server is not running or failed to start.

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands createrawvmdk -filename K:\VirtualBox\UbuntuLocalHome.vmdk -rawdi sk
.\PhysicalDrive2 RAW host disk access VMDK file K:\VirtualBox\UbuntuLocalHome.vmdk created successfully.

Change History

comment:1 Changed 2 years ago by frank

So this error happens only if you have attached your French Canadian keyboard to the host, is that right?

comment:2 Changed 2 years ago by wvdschel

I've just verified the same with a Belgian keyboard (similar to French layout). Worked fine after unplugging my USB keyboard. My system was running Windows 8.

My keyboard layout is US, and my internal laptop keyboard is also a Belgian one.

comment:3 Changed 2 years ago by munsingh

I am also having a similar issue, I was trying to create a raw disk based on my USB drive.

comment:4 Changed 2 years ago by munsingh

Finally I figured out, I was missing the quotes on the value provided to the -rawdisk switch.

I was entering the command like:

VBoxManage.exe internalcommands createrawvmdk -filename "%USERPROFILE%\.VirtualBox\disk.vmdk" -rawdisk
.\PhysicalDrive1

However the correct way to issue the command is
VBoxManage.exe internalcommands createrawvmdk -filename "%USERPROFILE%\.VirtualBox\disk.vmdk" -rawdisk "
.\PhysicalDrive1"

and by the way the above command should be executed as an administrator and for adding the created disk, VirtualBox should also be started as an administrator otherwise you will get a access denied message.

comment:5 Changed 2 years ago by MarkHH

I can report the same issue - Windows 7 Home Premium is the host. Arch Linux is to be the guest.

I discovered that if I move the xml file %USERPROFILE%\.VirtualBox\VirtualBox aside, the command runs fine.

comment:6 Changed 21 months ago by Thorarin

I got the same error message with VirtualBox 4.2.14 on a Windows 7 host.

Some things you can try to resolve this issue:

  • Execute the command from a command prompt running with Administrator privileges (UAC)
  • Before executing the command, run "Oracle VM VirtualBox Manager" (the GUI) also with Administrator privileges. Keep it open.

Then, the syntax for me was slightly different:

VBoxManage internalcommands createrawvmdk -filename "C:\Disk0.vmdk" -rawdisk \\.\PhysicalDrive0

Note the prefix to the physical drive argument.

comment:7 Changed 20 months ago by sbos61

These two suggestions helped me to solve the same problem: 1- Execute[ the command from a command prompt running with Administrator privileges (UAC) 2- Run "Oracle VM VirtualBox Manager" (the GUI) also with Administrat]or privileges. Keep it open.

Thank you guys

comment:8 Changed 20 months ago by Saeljfkklhen

I had the same problem. Unfortunately none of the fixes listed here were able to remedy the situation.

Re-running the application installer package as an administrator and selecting to repair my installation did, however, fix the problem.

comment:9 Changed 11 months ago by DrukpaKunley

I also have FR_CA for my keyboard and I didn't change nothing. I use the UUID for the Disk.

Launch a cmd windows with Administrator right, then go to: C:\Program Files\Oracle\VirtualBox

To find the UUID of the disk to expand execute:

VBoxManage list hdds

UUID: ab2b2a54-28a4-40e5-959f-4ca75a0a1f3a

Parent UUID: base

State: created

Type: normal (base)

Location: D:\VirtualBox_VM\Win-7_MOQS_20G\Pour_SP1/Pour_SP1.vdi

Storage format: VDI

Capacity: 5120 MBytes

Execute the following to expand to 6000MB i.e. 6GB

VBoxManage modifyhd ''ab2b2a54-28a4-40e5-959f-4ca75a0a1f3a'' --resize 6000

0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Note: Does not work with VMDK Disk, only with VDI

Et voilà.

DrukpaKunley

Last edited 11 months ago by DrukpaKunley (previous) (diff)

comment:10 Changed 11 months ago by DrukpaKunley

I forgot:

Got to your Window$ machine and expand the disk.

DrukpaKunley

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use