VBoxManage setextradata “Android” “CustomVideoMode1” “540x96

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Steveeb
Posts: 3
Joined: 17. Sep 2015, 20:31

VBoxManage setextradata “Android” “CustomVideoMode1” “540x96

Post 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>
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

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

Post by noteirak »

What is the output of

Code: Select all

vboxmanage list vms
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Steveeb
Posts: 3
Joined: 17. Sep 2015, 20:31

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

Post 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>
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

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

Post by noteirak »

Try this instead without any quotes for the VM name:

Code: Select all

VBoxManage setextradata vm2mikey "CustomVideoMode1" "540x960x16"
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Steveeb
Posts: 3
Joined: 17. Sep 2015, 20:31

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

Post 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.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

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

Post 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.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply