Page 1 of 1

VBoxManage setextradata “Android” “CustomVideoMode1” “540x96

Posted: 17. Sep 2015, 20:37
by Steveeb
When I run VBoxManage setextradata “vm2mikey” “CustomVideoMode1” “540x960x16” I get cannot find registered machine error

I am trying to have vm run in portrait mode and its not working.

I added C:\Program Files\Oracle\VirtualBox and C:\Users\USERNAME\VirtualBox VMs to path

Code: Select all

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\steve.USA>cd %VBOX_MSI_INSTALL_PATH%

C:\Program Files\Oracle\VirtualBox>VBoxManage setextradata "vm2mikey" "CustomVideoMode1" "540x960x16"
VBoxManage.exe: error: Could not find a registered machine named '"vm2mikey"'
VBoxManage.exe: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBoxWrap, interface IVirtualBox, callee IUnknown
VBoxManage.exe: error: Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asOutParam())" at line 797 of file VBoxManageMisc.cpp

C:\Program Files\Oracle\VirtualBox>

Re: VBoxManage setextradata “Android” “CustomVideoMode1” “54

Posted: 17. Sep 2015, 20:56
by noteirak
What is the output of

Code: Select all

vboxmanage list vms

Re: VBoxManage setextradata “Android” “CustomVideoMode1” “54

Posted: 17. Sep 2015, 20:58
by Steveeb

Code: Select all

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\steve.USA>vboxmanage list vms
"vm1" {2767c9b2-a4f3-45d6-8bbc-8a451ab3b36f}
"vm2mikey" {b76e0e48-9f0d-47dd-a140-87d208c396bc}

C:\Users\steve.USA>

Re: VBoxManage setextradata “Android” “CustomVideoMode1” “54

Posted: 17. Sep 2015, 21:02
by noteirak
Try this instead without any quotes for the VM name:

Code: Select all

VBoxManage setextradata vm2mikey "CustomVideoMode1" "540x960x16"

Re: VBoxManage setextradata “Android” “CustomVideoMode1” “54

Posted: 17. Sep 2015, 21:04
by Steveeb
I did, got no error msg, but when android boots up it is still not in portrait mode. when i start my game it changes direction.

Re: VBoxManage setextradata “Android” “CustomVideoMode1” “54

Posted: 18. Sep 2015, 09:18
by noteirak
Well AFAIK this requires the guest additions which are not available on Android since it is not a supported guest, so I did not expect it to work.