VirtualBox

Opened 13 years ago

Closed 9 years ago

#8434 closed defect (obsolete)

Cannot create the virtual disk on NTFS partition

Reported by: quanta Owned by:
Component: other Version: VirtualBox 4.0.4
Keywords: Cc:
Guest type: other Host type: Linux

Description (last modified by Frank Mehnert)

Hi,

I asked in the forum but no reply in 3 days therefore I open a ticket here.

As I mentioned in the title, when I create the virtual disk on the NTFS partiton which was mounted with write permission, I got the below error:

Failed to create the hard disk storage /mnt/data/VirtualBox/win2k8.vdi.
Could not create the hard disk storage unit '/mnt/data/VirtualBox/win2k8.vdi'.
VDI: writing pre-header failed for '/mnt/data/VirtualBox/win2k8.vdi' (VERR_NET_OPERATION_NOT_SUPPORTED).

Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
Medium
Interface:
IMedium {aa8167ba-df72-4738-b740-9b84377ba9f1}

My NTFS partiton was mounted with write permission:

/dev/sda6 on /mnt/data type fuseblk (rw,nosuid,nodev,noatime,allow_other,blksize=4096,default_permissions)
$ ls -ld /mnt/data/VirtualBox/
drwxr-xr-x 1 quanta quanta 48 Feb 22 14:56 /mnt/data/VirtualBox/

'quanta' user is a member of vboxusers group:

$ groups quanta
wheel audio cdrom cdrw usb users quanta plugdev wireshark vboxusers games

The vboxdrv module was loaded in running kernel:

$ lsmod | grep vbox
vboxnetflt             11304  0
vboxnetadp              5692  0
vboxdrv               114736  2 vboxnetflt,vboxnetadp

Below is different result code when I upgrade to version 4.0.4:

Result Code:
VBOX_E_FILE_ERROR (0x80BB0004)
Component:
Medium
Interface:
IMedium {9edda847-1279-4b0a-9af7-9d66251ccc18}

Does anyone think of any reason for this?

Change History (3)

comment:1 by Frank Mehnert, 13 years ago

Please attach the whole VBox.log file for that case. After that, please enable the host cache for this .vdi file located on an NTFS partition and try to boot the VM. Does that work?

comment:2 by quanta, 13 years ago

Because my .vdi file was not created therefore there is no VBox.log file in ~/.VirtualBox/Machines<vm name>/Logs. The strange thing is win2k8 folder was created in ~/.VirtualBox/Machines, but contains nothing:

$ ls -la ~/.VirtualBox/Machines/win2k8/
total 8
drwxr-xr-x 2 quanta quanta 4096 Feb 28 09:20 .
drwxr-xr-x 4 quanta quanta 4096 Feb 28 09:20 ..

and it disappears when I click the OK button on the above error dialog and Cancel button on the "Create the virtual disk" dialog.

$ ls -l ~/.VirtualBox/Machines/
total 4
drwxr-xr-x 3 quanta quanta 4096 Feb 27 22:53 TinyXP

I also try to create 2 folders HardDisks and Machines in /mnt/data/VirtualBox, but it seems that VirtualBox didn't care about them.

comment:3 by Frank Mehnert, 9 years ago

Description: modified (diff)
Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use