VirtualBox

Ticket #10616 (assigned defect)

Opened 2 years ago

Last modified 11 months ago

guestcontrol execute hangs after snapshot

Reported by: orval Owned by: pentagonik
Priority: major Component: guest control
Version: VirtualBox 4.1.16 Keywords:
Cc: Guest type: Linux
Host type: Mac OS X

Description

Since 4.1.12 VBoxManage hangs when using guestcontrol execute after a snapshot has been taken.

I am running OS X 10.7.3. The guest is CentOS 5 64-bit with the latest additions.

Here is an example:

$ VBoxManage guestcontrol snaptest execute --username=root --password=snaptest --verbose --wait-stdout --image /bin/ls -- -c 'xyz'
Waiting for guest to start process ...
Process '/bin/ls' (PID: 7) started
Waiting for process to exit ...
Exit code=2 (Status=2 [successfully terminated], Flags=0)

$ VBoxManage snapshot snaptest take s1 --pause
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

$ VBoxManage guestcontrol snaptest execute --username=root --password=snaptest --verbose --wait-stdout --image /bin/ls -- -c 'xyz'
Waiting for guest to start process ...
Process '/bin/ls' (PID: 8) started
Waiting for process to exit ...

This never returns. If I log in to the guest and restart vboxadd and vboxadd-service, then it works again.

Attachments

VBox.log Download (51.4 KB) - added by orval 2 years ago.
VBoxService.log Download (20.1 KB) - added by orval 2 years ago.
VBoxService log as requested

Change History

Changed 2 years ago by orval

comment:1 Changed 2 years ago by pentagonik

Could you please also provide debug logs of VBoxService running on the guest?

To start VBoxService in debug mode with verbose logging on a Linux guest:

As root, do a: # /etc/init.d/vboxadd-service stop # VBoxService -vvvv --logfile /tmp/VBoxService.log

This will start VBoxService in background, logging to /tmp/VBoxService.log. After the issue appeared again, please provide the logfile located in /tmp/VBoxService.log on the guest.

Thanks!

Version 0, edited 2 years ago by pentagonik (next)

Changed 2 years ago by orval

VBoxService log as requested

comment:2 Changed 23 months ago by pentagonik

  • Owner set to pentagonik
  • Status changed from new to assigned

Took a quick peek into the log you provided -- there's no hint what went wrong after the snapshot has been taken. I'll have to try to reproduce this myself in order to debug this issue further.

comment:3 Changed 13 months ago by macfisherman

I have been seeing this as well. I'm currently using Mac OS 10.7.5 and VirtualBox 4.2.10.

comment:4 Changed 11 months ago by insecure

The problem still occurs with VirtualBox 4.2.12 (Host: Windows 7 32-Bit, vbox 4.2.12; Guest: Debian 32-Bit, vbox additions 4.2.12):

  1. start VM
  2. vboxmanage guestcontrol exec works
  3. take snapshot
  4. vboxmanage guestcontrol exec does not work

Starting the VBoxService in the guest with -vvvv does not show anything when using the execute command, just as if the guest service is not even noticed.

After closing the VM and restoring the snapshot, the execute command works again!

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use