Bug with VBoxManage guestcontrol from Guest Additions v7
-
- Volunteer
- Posts: 5678
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
You're probably running into a known bug (#21774), that has already been fixed for the next release update. If you provide two virtual screens and the second one is turned off, both virtual screens get turned off. Either configure the VM to only provide one virtual screen, or turn on the second virtual screen from the VM window's menu.
After you've solved this issue, update the VirtualBox Guest Additions (in the guest) to 7.0.10.
The VBox.log file shows that you have the VirtualBox Extension Pack 7.0.10 installed now, so the current contents of /usr/lib/virtualbox/ExtensionPacks are probably no surprise now.
Edit:
Added the link to the Bugtracker ticket.
After you've solved this issue, update the VirtualBox Guest Additions (in the guest) to 7.0.10.
The VBox.log file shows that you have the VirtualBox Extension Pack 7.0.10 installed now, so the current contents of /usr/lib/virtualbox/ExtensionPacks are probably no surprise now.
Edit:
Added the link to the Bugtracker ticket.
Last edited by fth0 on 18. Aug 2023, 19:23, edited 1 time in total.
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
Under Settings>Display, I changed Monitor Count from 2 to 1. Now it works fine. I was able to update the Guest Additions. I understand that I won't be able to use two screens for the VM until the next release. Correct? (No big deal for me).
I've tried again the VBoxManage guestcontrol command. There is no change. Calculator opens correctly but Microsoft Word goes to the "Background processes".
I've tried again the VBoxManage guestcontrol command. There is no change. Calculator opens correctly but Microsoft Word goes to the "Background processes".
-
- Volunteer
- Posts: 5678
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
I'm not so sure. What happened when you tried the other alternative I proposed? Please provide the (zipped) Windows_10_VM.vbox file afterwards.
Regarding the guest control, please try the following command variants (note the space after the last "--"):
Code: Select all
VBoxManage guestcontrol $MY_VM_NAME run --exe "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE" --arg0 "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE" --username $MY_USERNAME --password $MY_PASSWORD -- "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE"
VBoxManage guestcontrol $MY_VM_NAME run --exe "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE" --username $MY_USERNAME --password $MY_PASSWORD -- "C:\\Program Files\\Microsoft Office\\root\\Office16\\WINWORD.EXE"
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
If I turn on the second virtual screen from the VM window's menu, then it works, instead of a black screen, I get two virtual screens with the VM. If I turn off the second virtual screen, the VM keeps working in the first virtual screen.
The two command variants you proposed have the same behavior than the one I'm using.
The two command variants you proposed have the same behavior than the one I'm using.
- Attachments
-
- VBox.zip
- (39.74 KiB) Downloaded 70 times
-
- Volunteer
- Posts: 5678
- Joined: 14. Feb 2019, 03:06
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Linux, Windows 10, ...
- Location: Germany
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
It probably only fails after you've shut down the VM while only the first virtual screen was turned on. But you don't need to try, because it has been fixed already for the next VirtualBox release update.
Ok, then I'm out of ideas for now.
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
Is there a way to report this problem?fth0 wrote:Ok, then I'm out of ideas for now.
-
- Site Moderator
- Posts: 20945
- Joined: 30. Dec 2009, 20:14
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Windows, Linux
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
A Bugtracker ticket could help, with zipped logs and a link to this topic added.
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
I've create a HelloWorld script that I converted to an executable file. When I do
Code: Select all
toto@toto-pc:~$ VBoxManage guestcontrol $MY_VM_NAME run --exe "C:\\Users\\Toto\\Desktop\\runapp\\runHello.exe" --username $MY_USERNAME --password $MY_PASSWORD
Hello, World!
toto@toto-pc:~$
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
I downgraded to Virtualbox 6.1.46 and it didn't work either. I'm surprised because it worked on my previous Virtualbox version. At that time, I was on Ubuntu 22.04. Now, I'm on Ubuntu 23.04. Could the problem be due to Ubuntu?
EDIT: I've tried on another PC with Ubuntu 22.04.3 LTS and VirtualBox 6.1.38. It works like a charm! Then, I've upgraded VirtualBox to version 7.0.10. It also works like a charm! Then, the problem seems to be linked to the new Ubuntu version.
EDIT: I've tried on another PC with Ubuntu 22.04.3 LTS and VirtualBox 6.1.38. It works like a charm! Then, I've upgraded VirtualBox to version 7.0.10. It also works like a charm! Then, the problem seems to be linked to the new Ubuntu version.
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
Some elements can be found here: https://askubuntu.com/questions/1484798 ... untu-23-04
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
I have upgraded to Ubuntu 23.10. Unfortunately, that did not solved the issue.
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
Unfortunately, the problem is still going on with VirtualBox v7.0.12.
Re: VBoxManage guestcontrol works for calc.exe but not for WINWORD.EXE
The problem is due to VirtualBox Guest Additions from version 7. More here: https://askubuntu.com/questions/1484798 ... 3-04-23-10.