VitrualBox 安装Linux5.4+oracle 11gr2(碰到的3个问题)

本文介绍了如何通过安装VirtualBox Guest Additions来解决Linux虚拟机中的分辨率问题,并提供了增加swap空间及调整临时目录的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

碰到的问题:


一、分辨率的问题:

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、物理内存不够  (忽略)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值