本文主要是介绍VitrualBox 安装Linux5.4+oracle 11gr2(碰到的3个问题),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
碰到的问题:
一、分辨率的问题:
1、安装了VirtualBox “安装增强功能”
以root用户登录LInux系统,再在虚拟机的窗口菜单下选择““安装增强功能””,这个时候Linux系统就是自动加载光盘
然后cd /media 目录
[root@primary VBOXADDITIONS_5.0.24_108355]# ll
总计 50518
dr-xr-xr-x 2 root root 2048 06-28 22:59 32Bit
dr-xr-xr-x 2 root root 2048 06-28 22:59 64Bit
-r-xr-xr-x 1 root root 647 2015-08-20 AUTORUN.INF
-r-xr-xr-x 1 root root 6957 06-28 23:54 autorun.sh
dr-xr-xr-x 2 root root 2048 06-28 22:59 cert
dr-xr-xr-x 2 root root 2048 06-28 22:59 OS2
-r-xr-xr-x 1 root root 5567 06-28 23:54 runasroot.sh
-r-xr-xr-x 1 root root 7996878 06-28 23:54 VBoxLinuxAdditions.run
-r-xr-xr-x 1 root root 17421824 06-29 00:55 VBoxSolarisAdditions.pkg
-r-xr-xr-x 1 root root 16171056 06-28 23:59 VBoxWindowsAdditions-amd64.exe
-r-xr-xr-x 1 root root 268640 06-28 23:53 VBoxWindowsAdditions.exe
-r-xr-xr-x 1 root root 9849176 06-28 23:55 VBoxWindowsAdditions-x86.exe
[root@primary VBOXADDITIONS_5.0.24_108355]# sh ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.24 Guest Additions for Linux............
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules[确定]
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module[确定]
Building the shared folder support module[确定]
Building the graphics driver module[确定]
Doing non-kernel setup of the Guest Additions[确定]
Starting the VirtualBox Guest Additions Installing the Window System drivers
Installing X.Org 7.1 modules[确定]
Setting up the Window System to use the Guest Additions[确定]
You may need to restart the the Window System (or just restart the guest system)
to enable the Guest Additions.
Installing graphics libraries and desktop services components[确定]
[root@primary VBOXADDITIONS_5.0.24_108355]# reboot
启动之后,窗口就菜单下就是一个无缝窗口,或是自动缩放!就可以调节窗口的大小了
还有执行一下VBoxManage setextradata "primary" CustomVideoMode1 1024x768x32,网上有人说这个命令就可以让虚拟机改变分辨率,没有验证!!!
1、提示swap不够
修改swap空间
[root@primary ~]# cat /proc/meminfo |grep Swap
SwapCached: 0 kB
SwapTotal: 2064376 kB
SwapFree: 2064376 kB
[root@primary ~]#
2、/tmp目录大小不够
临时硬盘空间
Oracle10g安装程序在安装过程中需要400M以上的临时硬盘空间,建议使用“/tmp”文件夹
作为零时文件夹,如果“/tmp”文件没有足够的空间,可以新创建一个文件夹作为安装的
临时目录,之后设置环境变量TEMP和TMPDIR指向相应的位置,详见下面的操作代码。
[root@prod ~]# chown -R grid:oinstall /u01/tmp
[root@prod ~]# chmod u+wr /u01/tmp
[grid@prod grid]$ export TMP=/u01/tmp
[grid@prod grid]$ export TMPDIR=/u01/tmp
设置好之后,可能要oracle 重新./runInstaller(Check Again还是同样有报错,需要back一步,再检查就OK了)
3、物理内存不够 (忽略)这篇关于VitrualBox 安装Linux5.4+oracle 11gr2(碰到的3个问题)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!