VirtualBox

Opened 11 years ago

Closed 8 years ago

#11307 closed defect (obsolete)

vboxmanager CO_E_SERVER_EXEC_FAILURE on raw disk create

Reported by: Trent Owned by:
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 (11)

comment:1 by Frank Mehnert, 11 years ago

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

comment:2 by wvdschel, 11 years ago

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 by munsingh, 11 years ago

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

comment:4 by munsingh, 11 years ago

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 by MarkHH, 11 years ago

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 by Thorarin, 11 years ago

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 by sbos61, 11 years ago

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 by Saeljfkklhen, 11 years ago

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 by DrukpaKunley, 10 years ago

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 10 years ago by DrukpaKunley (previous) (diff)

comment:10 by DrukpaKunley, 10 years ago

I forgot:

Got to your Window$ machine and expand the disk.

DrukpaKunley

comment:11 by aeichner, 8 years ago

Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use