VERR_FILE_NOT_FOUND Error

This is for discussing general topics about how to use VirtualBox.
Post Reply
xonx
Posts: 3
Joined: 27. Aug 2009, 02:15
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows XP

VERR_FILE_NOT_FOUND Error

Post by xonx »

This would seem to be a simple error but I haven't been able to find anything in the manual or the forums that answer it.

I am running Ubuntu 9.04 (Jaunty) and have installed the 'standard' repository VBox version 2.1.4 OSE.

I am trying to use an existing XP installation on the 1st partition via raw disk access.

So although I don't want to set these permissions in the long term, just for the initial setup I have used:
sudo chmod 666 /dev/sda and /dev/sda1

/dev/sda1 is unmounted

I then used:
sudo VBoxManage internalcommands createrawvmdk -filename .VirtualBox/HardDisks/rawDiskXP.vmdk -rawdisk /dev/sda -partitions 1 -relative -register

which tells me that the vmdk has been created but then I get several error msgs, presumably when it is trying to register the file. The strangest one to me is where the system appears to be looking for the vmdk file in /root/.....

At this stage I haven't started to look at any of the Windows elements (hardware profile, DMI settings or mbr files) as I assume that they are not yet relevant.
The output from the above VBoxMange command is:
****
VirtualBox Command Line Management Interface Version 2.1.4_OSE
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

RAW host disk access VMDK file .VirtualBox/HardDisks/rawDiskXP.vmdk created successfully.
[!] FAILED calling aVirtualBox->OpenHardDisk2(filename, hardDisk.asOutParam()) at line 1250!
[!] Primary RC = VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error
[!] Full error info present: true , basic error info present: true
[!] Result Code = VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error
[!] Text = Could not get the storage format of the hard disk '/root/.VirtualBox/.VirtualBox/HardDisks/rawDiskXP.vmdk' (VERR_FILE_NOT_FOUND)
[!] Component = HardDisk2, Interface: IHardDisk2, {ed6e2525-c2fd-42a4-917a-7a9045ac9e15}
[!] Callee = IVirtualBox, {339abca2-f47a-4302-87f5-7bc324e6bbde}
****

So, I guess I must have missed a step somewhere early on. Can anyone point me in the right direction please?
arta
Posts: 6
Joined: 21. Nov 2008, 21:04
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: several

Re: VERR_FILE_NOT_FOUND Error

Post by arta »

I have a similar problem, host is Ubuntu 9.04 64bit. Vbox is 3.02. I am trying to get access to an empty drive, /dev/sdc to us only as a storage device for a Freenas guest. /dev/sdc has been formatted but nothing has been written to the drive. I have tried with the device mounted and unmounted and get the VERR_FILE_NOT_FOUND error. I have not tried the chmod 666 /dev/sdc yet. Any suggestion will be appreciated.

thanks

arta
arta
Posts: 6
Joined: 21. Nov 2008, 21:04
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: several

Re: VERR_FILE_NOT_FOUND Error

Post by arta »

I thought I had checked the forum but I must have dreamed it. I only missed about 20 pages. I found several references to Freenas in the forum and will study them for suggestions.

thanks

arta
xonx
Posts: 3
Joined: 27. Aug 2009, 02:15
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Windows XP

Re: VERR_FILE_NOT_FOUND Error

Post by xonx »

I have now tried with the latest release and using the PUEL version, having uninstalled the previous OSE version.

Basically the same problem, but with less error msgs.

Now, it doesn't even create the vmdk file but exits with the same file not found error, although the /root/.VirtualBox folder does now exist.
This is the output from the command.
****
VirtualBox Command Line Management Interface Version 3.0.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Error while creating the raw disk VMDK: VERR_FILE_NOT_FOUND
The raw disk vmdk file was not created
****
arta
Posts: 6
Joined: 21. Nov 2008, 21:04
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: several

Re: VERR_FILE_NOT_FOUND Error

Post by arta »

I think part of my problem is file permissions. I changed the location where the file was going to a directory I had full permission to and the file was created without errors.

I trying to install FreeNAS and connect two raw disks for storage, so far without much luck. I can't find out if the two drives need to be formatted or not of if they need to be mounted or not in order to create the vmdk, I've tried both ways

arta
Post Reply