欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

基于Virtual BOX的Oracle Linux分辨率设置

程序员文章站 2022-06-02 07:58:48
...

在基于Virtual BOX的Oracle Linux上布署11G RAC,执行grid Infrastructure 集群件安装的时候,OUI界面显示不全,右下角缺少next与cancel按钮,显示如下 点击System--Administrator--Display,将分辨率由640x480调整至800x600,然后logout重新登陆,问题依旧

在基于Virtual BOX的Oracle Linux上布署11G RAC,执行grid Infrastructure 集群件安装的时候,OUI界面显示不全,右下角缺少"next"与"cancel"按钮,显示如下

基于Virtual BOX的Oracle Linux分辨率设置

点击"System"-->"Administrator"-->"Display",将分辨率由640x480调整至800x600,然后logout重新登陆,问题依旧。

编辑/etc/X11/xorg.cnf文件,设置分辨率参数Modes,显示如下

div "InputDevice"
Identifier "Keyboard[0]"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option "Protocol" "Standard"
Option "CoreKeyboard"
Enddiv


div "InputDevice"
Driver "mouse"
Identifier "Mouse[1]"
Option "Buttons" "9"
Option "Device" "/dev/input/mice"
Option "Name" "VirtualBox Mouse Buttons"
Option "Protocol" "explorerps/2"
Option "Vendor" "Oracle Corporation"
Option "ZAxisMapping" "4 5"
Option "CorePointer"
Enddiv


div "InputDevice"
Driver "vboxmouse"
Identifier "Mouse[2]"
Option "Device" "/dev/vboxguest"
Option "Name" "VirtualBox Mouse"
Option "Vendor" "Oracle Corporation"
Option "SendCoreEvents"
Enddiv


div "ServerLayout"
Identifier "Layout[all]"
InputDevice "Keyboard[0]" "CoreKeyboard"
InputDevice "Mouse[1]" "CorePointer"
InputDevice "Mouse[2]" "SendCoreEvents"
Option "Clone" "off"
Option "Xinerama" "off"
Screen "Screen[0]"
Enddiv


div "Monitor"
Identifier "Monitor[0]"
ModelName "VirtualBox Virtual Output"
VendorName "Oracle Corporation"
Enddiv


div "Device"
BoardName "VirtualBox Graphics"
Driver "vboxvideo"
Identifier "Device[0]"
VendorName "Oracle Corporation"
Enddiv


div "Screen"
Subdiv "Display"
Depth 24

Modes "1024x768" "800x600" "640x480"
EndSubdiv
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
Enddiv

然后重启系统,问题依旧,并且点击"System"-->"Administrator"-->"Display",发现可选分辨率还是只有640x480和800x600

百度了一下,网上说要安装Virtual Box增强功能,具体操作如下

基于Virtual BOX的Oracle Linux分辨率设置

点击“安装增强功能”后,桌面会出现VBOXADDITIONS _4.3.10_93012光盘图标,点击图标后,找到“VBOXLinuxAdditions.run”文件

基于Virtual BOX的Oracle Linux分辨率设置

双击运行,屏幕输出以下信息

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.10 Guest Additions for Linux............
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module [ OK ]
Building the shared folder support module [ OK ]
Building the OpenGL support module [ OK ]
Doing non-kernel setup of the Guest Additions [ OK ]
Starting the VirtualBox Guest Additions [ OK ]
Installing the Window System drivers
Installing X.Org 7.1 modules [ OK ]
Setting up the Window System to use the Guest Additions [ OK ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.


Installing graphics libraries and desktop services componen[ OK ]
然后重启系统解决问题。

备注:如果双击“VBOXLinuxAdditions.run”文件,屏幕没有输出上面的信息,可以在命令行下进去文件所在路径,以root用户执行。