dgzyk / phpvirtualbox

Automatically exported from code.google.com/p/phpvirtualbox
Other
0 stars 0 forks source link

Can't Export to NAS mount. ACCESS DENIED #552

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If you have just updated phpVirtualBox, don't forget to clear your
browser's cache!!!

Please see the Common Errors and Issues wiki page located at
http://code.google.com/p/phpvirtualbox/wiki/CommonErrors before posting
here.

What steps will reproduce the problem?
1. Export VirtualBox and select a NAS Mount.
2.
3.

What is the expected output? What do you see instead?

It should be exporting to the shared folder (/mnt/NAS)

What version of phpVirtualBox, VirtualBox, and PHP are you using? On what
operating system?

phpVirtualBox 4.1-7 -/- VirtualBox 4.1.x compatible, Ubuntu 11.10

Please provide any additional information below.

I am able to export to the $HOME directory without any problem and later using 
sudo move to the /mnt/NAS (mounted NAS folder).

Original issue reported on code.google.com by SajuSuku...@gmail.com on 25 Jun 2012 at 12:41

GoogleCodeExporter commented 8 years ago
Are you able to export it to /mnt/NAS using the VirtualBox GUI or do you get 
the same message?

Original comment by imooreya...@gmail.com on 26 Jun 2012 at 1:31

GoogleCodeExporter commented 8 years ago
am using phpVirtualBox as the GUI and login with admin and in config.php I have 
vboxuser defined as "HOME USER". and the HOME USER have full rights on 
/mnt/NAS. What am doing now is to export to home folder and then using the 
terminal mode, moving the .ova to /mnt/NAS. 

Original comment by SajuSuku...@gmail.com on 26 Jun 2012 at 4:01

GoogleCodeExporter commented 8 years ago
Hello,

I know that you are using phpvirtualbox, but if you use the "normal" VirtualBox 
gui, do you get the same error when attempting the same operation?

Original comment by imooreya...@gmail.com on 26 Jun 2012 at 3:04

GoogleCodeExporter commented 8 years ago
am on a headless vbox. 

Original comment by SajuSuku...@gmail.com on 26 Jun 2012 at 5:57

GoogleCodeExporter commented 8 years ago
Can you copy / paste the entire error please? It sounds like it is probably 
coming from VirtualBox itself, which means there would be nothing I could do. 
But I'll take a look just to make sure.

Original comment by imooreya...@gmail.com on 29 Jun 2012 at 12:44

GoogleCodeExporter commented 8 years ago
When we use the phpVirtualBox interface, I use "admin" as the user and in the 
config.php the user configured as "administrator". which user credentials 
actually been in use when we perform the commands using the GUI?. May be I 
could set permissions accordingly..

am getting the following error:

Exception Object
(
    [message:protected] => Could not create OVA file '/mnt/NAS/VBXP032.ova' (VERR_ACCESS_DENIED)
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /var/www/lib/vboxconnector.php
    [line:protected] => 2121
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/lib/vboxconnector.php
                    [line] => 279
                    [function] => remote_applianceExport
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [format] => 
                                    [file] => /mnt/NAS/VBXP032.ova
                                    [vms] => Array
                                        (
                                            [ead81d65-3e8e-47a9-b234-490aeb234dba] => Array
                                                (
                                                    [id] => ead81d65-3e8e-47a9-b234-490aeb234dba
                                                    [name] => VBXP032
                                                    [product] => 
                                                    [product-url] => 
                                                    [vendor] => 
                                                    [vendor-url] => 
                                                    [version] => 
                                                    [description] => 100053_UBUNTU_SAJU
                                                    [license] => 
                                                )

                                        )

                                    [manifest] => 1
                                    [overwrite] => 0
                                    [fn] => applianceExport
                                )

                            [1] => Array
                                (
                                    [data] => Array
                                        (
                                        )

                                    [errors] => Array
                                        (
                                        )

                                    [persist] => Array
                                        (
                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /var/www/lib/ajax.php
                    [line] => 259
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => applianceExport
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [format] => 
                                            [file] => /mnt/NAS/VBXP032.ova
                                            [vms] => Array
                                                (
                                                    [ead81d65-3e8e-47a9-b234-490aeb234dba] => Array
                                                        (
                                                            [id] => ead81d65-3e8e-47a9-b234-490aeb234dba
                                                            [name] => VBXP032
                                                            [product] => 
                                                            [product-url] => 
                                                            [vendor] => 
                                                            [vendor-url] => 
                                                            [version] => 
                                                            [description] => 100053_UBUNTU_SAJU
                                                            [license] => 
                                                        )

                                                )

                                            [manifest] => 1
                                            [overwrite] => 0
                                            [fn] => applianceExport
                                        )

                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => Array
                                                        (
                                                        )

                                                    [errors] => Array
                                                        (
                                                        )

                                                    [persist] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [2] => Array
                (
                    [file] => /var/www/lib/ajax.php
                    [line] => 259
                    [function] => applianceExport
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [format] => 
                                    [file] => /mnt/NAS/VBXP032.ova
                                    [vms] => Array
                                        (
                                            [ead81d65-3e8e-47a9-b234-490aeb234dba] => Array
                                                (
                                                    [id] => ead81d65-3e8e-47a9-b234-490aeb234dba
                                                    [name] => VBXP032
                                                    [product] => 
                                                    [product-url] => 
                                                    [vendor] => 
                                                    [vendor-url] => 
                                                    [version] => 
                                                    [description] => 100053_UBUNTU_SAJU
                                                    [license] => 
                                                )

                                        )

                                    [manifest] => 1
                                    [overwrite] => 0
                                    [fn] => applianceExport
                                )

                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [data] => Array
                                                (
                                                )

                                            [errors] => Array
                                                (
                                                )

                                            [persist] => Array
                                                (
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
)

Original comment by SajuSuku...@gmail.com on 30 Jun 2012 at 8:20

GoogleCodeExporter commented 8 years ago
Hello,

Yes, that is coming from virtualbox itself. Permissions should be set correctly 
for the user "administrator." Is this what you have been doing?

Original comment by imooreya...@gmail.com on 3 Jul 2012 at 11:17

GoogleCodeExporter commented 8 years ago
I had given permission to administrator (whos the default login user) as

chmod 777 /mnt/NAS

Does the "administrator" should own /mnt/NAS?

Original comment by SajuSuku...@gmail.com on 3 Jul 2012 at 3:07

GoogleCodeExporter commented 8 years ago
Is something like AppArmor or SELinux blocking it? This is not a phpVirtualBox 
issue, but a VirtualBox issue.

Original comment by imooreya...@gmail.com on 19 Jul 2012 at 12:13

GoogleCodeExporter commented 8 years ago
Closed due to inactivity.

Original comment by imooreya...@gmail.com on 21 Aug 2012 at 12:25