Page 1 of 1

Falied to create a hard disk image

Posted: 7. Feb 2009, 14:23
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}

Posted: 7. Feb 2009, 14:54
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.

Posted: 8. Feb 2009, 14:43
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.

Posted: 8. Feb 2009, 15:57
by Sasquatch
That 'RM' is a typo, it should be lowercase 'rm'.

Posted: 8. Feb 2009, 16:09
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.

Posted: 8. Feb 2009, 16:12
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.

Posted: 8. Feb 2009, 16:32
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.

Posted: 8. Feb 2009, 16:33
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.

Posted: 8. Feb 2009, 18:18
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.

Posted: 8. Feb 2009, 19:16
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.