VirtualBox 細節


VirtualBox 調整顯示解析度

1.VirtualBox預設的解析度通常是4:3模式, 與現今常用的寬螢幕不合, 若要增加解析度供選擇, 可輸入下列命令方式來達成, 首先需安裝 virtualBox 的 VBox Guest Additions 工具

2.接下來輸入控制命令
To control GOP, 通常為iMac OS 或 Linux:
Where N can be one of 0,1,2,3,4 referring to the 640×480, 800×600, 1024×768, 1280×1024, 1440×900 screen resolution respectively.
VBoxManage setextradata “VM name" VBoxInternal2/EfiGopMode N

To change the UGA , 通常為windows:
VBoxManage setextradata “VM name" VBoxInternal2/UgaHorizontalResolution 1440
VBoxManage setextradata “VM name" VBoxInternal2/UgaVerticalResolution    900

windows 輸入下列命令即可
VBoxManage setextradata global GUI/MaxGuestResolution any
VBoxManage setextradata global GUI/MaxGuestResolution 1440,900
VBoxManage setextradata global GUI/MaxGuestResolution auto

手動啟動命令 VBoxSDL –hostkey 1440 900 –startvm “VM name"VBoxManage setextradata “Mountain Lion" “CustomVideoMode1″ “1600x900x32″

Virtualbox 遠端桌面

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list vms
“Mac OS X" {e82eaed7-636c-4231-90eb-e0ab23ba885b}
“MacOS 10.6.6″ {ec99d60a-b0c2-4af1-ab89-94d66f966da4}
“Test Mac OS" {900d7673-67f5-496f-ac88-7e8ad1f777bd}
“Ubuntu" {700c296c-4629-4496-92e9-ee38199b7df4}
“Win8″ {402e569f-583e-433d-b17d-4f0f2a081007}
“Solaris 10″ {689b8917-a13f-43a1-913c-0ea34ae9ab1a}
“VetorLinux" {370dfc65-80d3-4b21-8d3c-5c39e21c3c7b}
“Solaris 11″ {eac930fe-7606-4c29-a2a5-25defc917716}
“Qimo" {73ac58fc-9c64-490f-be5a-79e5fed6e272}
“Mac OS X 10.7″ {122ebcab-4c2c-4200-a310-846fe61e2535}

C:\Program Files\Oracle\VirtualBox>VBoxHeadless.exe -s “Mac OS X"
Oracle VM VirtualBox Headless Interface 4.1.8
(C) 2008-2011 Oracle Corporation
All rights reserved.

VRDE server is listening on port 3389.

VBoxManage

VBoxManage modifyvm “MacOS 10.6″ –firmware efi64
VBoxManage setextradata “OS X Lion Dev" VBoxInternal2/EfiGopMode 4
VBoxManage setextradata “MacOS 10.6″ VBoxInternal2/SmcDeviceKey “ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc"
VBoxManage setextradata “OS X Lion Dev" “CustomVideoMode1″ “1600x900x32″

 

use –firmware efi if you run 32bit host

EfiGopMode 4 enables 1440×900 res other options: (1=800×600 2=1024×768 3=1280×1024)

VBoxManage setextradata “VM name" VBoxInternal2/EfiGopMode N
Where N can be one of 0,1,2,3,4 referring to the 640×480, 800×600, 1024×768, 1280×1024, 1440×900 screen resolution respectively.