Falied to create a hard disk image

Discussions related to using VirtualBox on Linux hosts.
Post Reply
i8dbbq
Posts: 6
Joined: 7. Feb 2009, 14:07

Falied to create a hard disk image

Post by i8dbbq »

Below is the error message I am getting trying to create a virtual hdd to install Windows onto.
I am using PCLOS updated. There are two users on this PC. I have WinXP running fine on my account. When I try and create an virtual drive on my housemates side I get the following error. Everything I have read suggests permission issues; however both accounts have the same user permissions. Any help very much appreciated.

Falied to create a hard disk image '/home/lianne/.VirtualBox/VDI/win.vdi' (VERR_ACCESS_DENIED).


Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
VirtualDiskImage
Interface:
IVirtualDiskImage {a8265b5a-0d20-4a46-a02f-65693a4e8239}
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

Can you do:

Code: Select all

echo test>/home/lianne/.VirtualBox/VDI/xxx.tmp
RM /home/lianne/.VirtualBox/VDI/xxx.tmp
If not then sort out your access issues, eg. put both users in the same group and change protections so that the hierarchy has group:rw access.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
i8dbbq
Posts: 6
Joined: 7. Feb 2009, 14:07

Post by i8dbbq »

Sorry for the delay in my reply.

I can do the echo. My flavor of Linux doesn't understand the RM command.
I have added the other account to mt accounts group. I am still getting the same message when I try and create the dynamic or fixed hdd.

Thanks for you help.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

That 'RM' is a typo, it should be lowercase 'rm'.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
i8dbbq
Posts: 6
Joined: 7. Feb 2009, 14:07

Post by i8dbbq »

As you can see I am a *.nix God...not. As you stated and I thought, it is definitely a permission error. I get this message:

rm: cannot lstat `/home/lianne/.VirtualBox/VDI/xxx.tmp': Permission denied

The issue that has me stumped is that mine and the above account have the exacft same permissions.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

What does an ls -l /home/lianne/.VirtualBox/VDI/ say, and of the parent folder?

If you share the VMs on one host with more than one account, you might want to change the location of the files to a more common location. There are some 'guides' on the forums here that discuss how to do that.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
i8dbbq
Posts: 6
Joined: 7. Feb 2009, 14:07

Post by i8dbbq »

This is the output from that command:

# ls -l /home/lianne/.VirtualBox/VDI/
total 1462772
--w------- 1 root root 1496359424 Feb 2 17:31 Winxp.vdi
-rw------- 1 root root 41472 Jul 4 2008 xp.vdi
-rw-r--r-- 1 root root 5 Feb 7 13:05 xxx.tmp


Not trying to share as much as create her own guest of windows on her account.
i8dbbq
Posts: 6
Joined: 7. Feb 2009, 14:07

Post by i8dbbq »

Thanks for the help. Will cruise the forums again for something I am unsure that I want to do. I think I just don't get how VB is supposed to work on multiple accounts. This is ok, I can just use QEMU.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Post by TerryE »

i8dbbq wrote:--w------- 1 root root 1496359424 Feb 2 17:31 Winxp.vdi
-rw------- 1 root root 41472 Jul 4 2008 xp.vdi
-rw-r--r-- 1 root root 5 Feb 7 13:05 xxx.tmp
Then you didn't do what I asked. Of course ls >some file works if you do it from a sudo account! Your VDIs are also owned by root. You are not on Windows!! You should be working from a normal account at a normal privilege level not root. Only use sudo in exceptional circumstances (such as installing new S/W). What you need to do is to (i) start working in a 1000+ account. (ii) chown -R lianne:lianne /home/lianne/.VirtualBox. (iii) Read up in the ubuntu user docs or other internet resource how privileges work before you try to do this.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
i8dbbq
Posts: 6
Joined: 7. Feb 2009, 14:07

Post by i8dbbq »

I read through the forum and created a folder in home and copied .Virtualbox to that. Created a virtualbox users group, added both accounts. I then was able to install XP on each account. I am sure I took a roundabout way; however it worked. Thanks for the assistance and pointing me in the right direction.
Post Reply