8000 Support for Virtualbox 6.1 #210 by cesium147 · Pull Request #213 · phpvirtualbox/phpvirtualbox · GitHub
[go: up one dir, main page]

Skip to content

Support for Virtualbox 6.1 #210#213

Merged
h6w merged 2 commits intophpvirtualbox:developfrom
cesium147:6.1-0
Jan 29, 2020
Merged

Support for Virtualbox 6.1 #210#213
h6w merged 2 commits intophpvirtualbox:developfrom
cesium147:6.1-0

Conversation

@cesium147
Copy link
Contributor

No description provided.

@trasherdk
Copy link

This should go in a v6.1 branch, and develop should go in a v6.0 branch.

@TheOneWithTheBraid
Copy link

Could you merge? It's working perfectly!

@chotaire
Copy link
Contributor

I see WDSL has been updated. People should test if creating snapshots works before considering to merge. This is the reason I refused to update WDSL in previous patches. @Jasmich would you be willing to try creating a snapshot from within phpVirtualBox and see if the snaphot becomes visible? If you even get this far, all other snapshot commands also need to be tested.

@TheOneWithTheBraid
Copy link

No, snapshots do not seem to work.

@chotaire
Copy link
Contributor
chotaire commented Jan 18, 2020

Well, that's a showstopper as it breaks major functionality.
@cesium147 is this something you could look into?

And @trasherdk I disagree in creating two branches, develop should be capable of supporting 6.1 while providing backwards compatibility with previous versions. And ideally this is going to happen quickly.

@stianvis
Copy link
Contributor

This change in vboxconnector.php works, but not entirely sure what it means. See "5.107.82 takeSnapshot", page 245, SDKRef.pdf. This should perhaps be the state of paused... although when testing, true or false doesn't seem to make a difference. Maybe something else related to snapshots needs support in phpvirtualbox. I've not used live snapshots with virtualbox before.

@@ -4706,7 +4706,7 @@ class vboxconnector {
                        $machine->lockMachine($this->session->handle, ((string)$machine->sessionState == 'Unlocked' ? 'Write' : 'Shared'));
 
                        /* @var $progress IProgress */
-                       list($progress, $snapshotId) = $this->session->machine->takeSnapshot($args['name'], $args['description'], null);
+                       list($progress, $snapshotId) = $this->session->machine->takeSnapshot($args['name'], $args['description'], false);
 
                        // Does an exception exist?
                        try {

@cesium147
Copy link
Contributor Author

Thanks @unbob, i applied you patch

@chotaire
8000
Copy link
Contributor
chotaire commented Jan 28, 2020

Fantastic, @cesium147 and @unbob!

Testers, can you check if everything works now? I'm currently busy elsewhere. Can someone also test if this works with VirtualBox 6.0 (and maybe 5.2) too?

@h6w would you be so nice to review this PR with priority please?

I would rebase two outstanding PRs from here.

@h6w
Copy link
Contributor
h6w commented Jan 29, 2020

Thanks @cesium147! Good quality patch. There's an extraneous newline but I also concur with another patch that CRLF is no longer necessary in modern browsers so we'll filter that out later.

Also note that my comparison of this wsdl with the one on the VBox website 6.1.2 is that we now have a new network adapter:

1842a1843
>             Virtio_1_0: 8 -
1853a1855
>           <xsd:enumeration value="Virtio_1_0"/>

The wsdl in this patch therefore must be from a previous 6.1 release.

I won't be doing an official 6.1 release until the heavy reports of issues with the master branch dies down a bit - many of the issues seem to be serious and unclear and I don't want to make things worse.

Sorry for being a bit quiet. I'm focusing on removing flash at the moment as that's an impending deadline, particularly since Edge just moved to Webkit so we're going to be pretty much a two-tiered web soon - Webkit vs Gecko.

@h6w h6w merged commit 10a6496 into phpvirtualbox:develop Jan 29, 2020
@cesium147 cesium147 deleted the 6.1-0 branch January 30, 2020 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

0