dgzyk / phpvirtualbox

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

Error when creating a VM with no hard drive. #541

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new Virtual Machine
2. On the Virtual Hard Disk Screen, uncheck the option for a Start-up Disk
3. On the Summary Screen, when you hit "Create" and error will pop up:
VirtualBox error: Could not find an open hard disk with location 'null' 
(0x80BB0001)

Details:
SoapFault Object
(
    [message:protected] => VirtualBox error: Could not find an open hard disk with location 'null' (0x80BB0001)
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /var/www/phpvirtualbox/lib/vboxServiceWrappers.php
    [line:protected] => 514
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/www/phpvirtualbox/lib/vboxServiceWrappers.php
                    [line] => 514
                    [function] => __soapCall
                    [class] => SoapClient
                    [type] => ->
                    [args] => Array
                        (
                            [0] => IVirtualBox_findMedium
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [_this] => ce857c2e48855f08-0000000000079b6f
                                            [location] => null
                                            [type] => HardDisk
                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /var/www/phpvirtualbox/lib/vboxconnector.php
                    [line] => 3123
                    [function] => findMedium
                    [class] => IVirtualBox
                    [type] => ->
                    [args] => Array
                        (
                            [0] => null
                            [1] => HardDisk
                        )

                )

            [2] => Array
                (
                    [file] => /var/www/phpvirtualbox/lib/vboxconnector.php
                    [line] => 279
                    [function] => remote_machineCreate
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [disk] => null
                                    [ostype] => RedHat_64
                                    [memory] => 512
                                    [name] => test-vm
                                    [fn] => machineCreate
                                )

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

                                    [errors] => Array
                                        (
                                        )

                                    [persist] => Array
                                        (
                                        )

                                )

                        )

                )

            [3] => Array
                (
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => machineCreate
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [disk] => null
                                            [ostype] => RedHat_64
                                            [memory] => 512
                                            [name] => test-vm
                                            [fn] => machineCreate
                                        )

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

                                                    [errors] => Array
                                                        (
                                                        )

                                                    [persist] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [4] => Array
                (
                    [file] => /var/www/phpvirtualbox/lib/ajax.php
                    [line] => 259
                    [function] => machineCreate
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [disk] => null
                                    [ostype] => RedHat_64
                                    [memory] => 512
                                    [name] => test-vm
                                    [fn] => machineCreate
                                )

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

                                            [errors] => Array
                                                (
                                                )

                                            [persist] => Array
                                                (
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
    [faultstring] => VirtualBox error: Could not find an open hard disk with location 'null' (0x80BB0001)
    [faultcode] => SOAP-ENV:Client
    [detail] => stdClass Object
        (
            [RuntimeFault] => stdClass Object
                (
                    [resultCode] => -2135228415
                    [interfaceID] => c28be65f-1a8f-43b4-81f1-eb60cb516e66
                    [component] => VirtualBox
                    [text] => Could not find an open hard disk with location 'null'
                )

        )

)

4. The Summary screen stays up, but the vm is created.  If you press Create 
again, you will get a different error saying that the .vbox file already 
exists.  

5.  The VM won't have anything at all in the Storage Tree.  

Expected results:
I would expect no errors, and that a VM would be created with a default SATA 
controller and no drives attached. 

Also: when error-ing out on the creating of a vm, either the vbox file 
shouldn't be created, or the Summary window should close.  Ideally, there would 
be another window showing what worked and what didn't.  In my case, I was glad 
that a .vbox file was created, because I can fix the rest myself.  I ended up 
clicking the "Cancel" button on the summary, which is also fine.  

What version of phpVirtualBox, VirtualBox, and PHP are you using? On what 
operating system?
We're using phpVirtualbBox 4.1-7
VirtualBox 4.1.14
OS is Ubuntu Server 10.04.4

Original issue reported on code.google.com by jbris...@adaptivecomputing.com on 7 Jun 2012 at 7:39

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
It says status: Duplicate.
where is teh original? i have the same problem

Original comment by bertbert...@gmail.com on 22 Aug 2013 at 7:25