为什么80%的码农都做不了架构师?>>>   hot3.png

你可以在这里找到本文的原文。

虽然说Oracle已经停止了VDI的开发,之后支持服务业很快停止了。但是,作为经典的桌面虚拟化产品,还是值得研究一番。虽然Oracle VDI的文档已经写的很详细了,但是在实际操作过程中,还是会遇到很多问题。最近,终于鼓起勇气,在VDI即将消失之前,把安装过程记录一下。

安装环境和前期条件

  • OS: Oralce Linux 6 update5 x86-64
  • Oracle VDI 3.5.2
  • SELinux 已经禁用
  • 防火墙(iptables)已经关闭

安装步骤

配置Yum源

首先需要保证能上外网,并能够访问public-yum.oracle.com

开始配置Yum环境,把public-yum-ol6.repo下载到/etc/yum.repos.d目录,并编辑内容如下:

[ol6_u5_base]
name=Oracle Linux $releasever Update 5 installation media copy ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/5/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1 ###开启[ol6_addons]
name=Oracle Linux $releasever Add ons ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1 ###开启[ol6_UEK_base]
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/UEK/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1 ###开启[ol6_gdm_multiseat]
name=Oracle Linux 6 GDM Multiseat ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/gdm_multiseat/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1 ###开启

配置/etc/yum.conf,在文件末尾加入如下内容:

# 开启多版本库支持
protected_multilib=0

代理服务器配置

如果使用代理服务器上外网的话,还需要做如下设置。

设置wget的代理

/etc/wgetrc修改为如下内容:

# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
https_proxy = http://my-proxy.example.com:80/
http_proxy = http://my-proxy.example.com:80/
ftp_proxy = http://my-proxy.example.com:80/

设置Yum的代理

/etc/yum.conf末尾加入如下内容:

proxy=http://my-proxy.example.com:80/

预先安装可能导致出错的包

sssd-client可能在安装过程中出现错误,先手动安装一下。

[root@vdi ~]# yum install sssd-client

在64为系统中会安装libXfont.x86_64,但是VDI需要32位的版本 - libXfont.i686,这也可能出现问题,先手动安装一下。

[root@vdi]# yum install -y libXfont.i686

安装过程中会需要安装pam.i686,在64位环境下,已经安装了pam.x86-64。同时安装32位和64位的包可能会产生如下错误:

Transaction Check Error:file /etc/security/limits.conf from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/doc/pam-1.1.1/Linux-PAM_SAG.txt from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/doc/pam-1.1.1/html/sag-pam_cracklib.html from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/doc/pam-1.1.1/html/sag-pam_limits.html from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/doc/pam-1.1.1/html/sag-pam_userdb.html from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/doc/pam-1.1.1/txts/README.pam_cracklib from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/doc/pam-1.1.1/txts/README.pam_userdb from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/man/man5/limits.conf.5.gz from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/man/man5/namespace.conf.5.gz from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/man/man8/faillock.8.gz from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/man/man8/pam_cracklib.8.gz from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/man/man8/pam_env.8.gz from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/man/man8/pam_faillock.8.gz from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/man/man8/pam_lastlog.8.gz from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/man/man8/pam_tty_audit.8.gz from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64file /usr/share/man/man8/pam_userdb.8.gz from install of pam-1.1.1-20.el6.i686 conflicts with file from package pam-1.1.1-17.el6.x86_64

这个pam包中的一个既存的bug,通过下面的方法解决:

[root@vdi ~]# yum install -y yum-downloadonly
[root@vdi ~]# yum install pam.i686 -y --downloadonly --downloaddir=/tmp
[root@vdi ~]# cd /tmp
[root@vdi tmp]# rpm -ivh --force --nodeps pam-1.1.1-20.el6.i686.rpm
[root@vdi tmp]# yum reinstall pam.i686

题外话,使用yum安装软件,老是会遇到这种提示:

Existing lock /var/run/yum.pid: another copy is running as pid 3053.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit

只要把/etc/yum/pluginconf.d/refresh-packagekit.conf改为如下就OK了:

enabled=0

开始安装 vda

由于VDI安装脚本调用了curl来检查联网状态,所以如果是通过代理服务器上外网的,还需要在执行安装命令之前为curl设置如下环境变量以使用代理:

[root@vdi vda_3.5.2_linux]# export http_proxy=http://my-proxy.example.com:80/
[root@vdi vda_3.5.2_linux]# export https_proxy=$http_proxy
[root@vdi vda_3.5.2_linux]# export HTTP_PROXY=$http_proxy
[root@vdi vda_3.5.2_linux]# export HTTPS_PROXY=$http_proxy

现在可以开始安装了,安装过程中Yum会自动连外网下载依赖的包,过程会很漫长:

[root@vdi vda_3.5.2_linux]# unzip p21441793_350_Linux-x86-64.zip
[root@vdi vda_3.5.2_linux]# cd vda_3.5.2_linux
[root@vdi vda_3.5.2_linux]# ./vda-install Oracle Virtual Desktop Infrastructure 3.5.2 Installation
Checking for required libraries and packages...30 packages are missing and will be installed by the software manager yum:
iscsi-initiator-utils.x86_64, nss.x86_64, nss.i686, libgcc.x86_64, libgcc.i686, libstdc++.x86_64, libstdc++.i686, gtk2.x86_64, gtk2.i686, compat-openldap, compat-openldap.i686, dhcp, gdbm.i686, gdm-multiseat, ksh, libusb.i686, libXcursor.i686, libXfixes.i686, libXfont.i686, libXinerama.i686, libXp.i686, libXpm.i686, libXtst.i686, libXv.i686, openldap-clients, openmotif.i686, sssd-client.i686, tftp, tftp-server, tkDo you want to continue? ([y]/n) y+ Installing missing packages...Oracle VDI 3.5.2 Installation+ Installing Oracle VDI Installation Utilities...+ Installing Java DMK 5.1 Libraries...+ Installing Common Agent Container - Runtime...+ Installing Oracle VDI Core...+ Installing Oracle VDI Center Agent...+ Installing MySQL Database...+ Installing Oracle VDI Web server...+ Installing Oracle VDI Manager...+ Installing RDP Broker...+ Installing Java Runtime Environment...+ Installing Sun Ray Server Software...+ Installing Sun Ray Client Software...Oracle VDI 3.5.2 was successfully installed.
A log file is available at '/var/log/vda-install.2015_08_18_12:14:18.log'.You can continue to configure Oracle VDI 3.5.2 with '/opt/SUNWvda/sbin/vda-config'.Do you want to configure Oracle VDI 3.5.2 now? ([y]/n) yOracle Virtual Desktop Infrastructure 3.5.2 ConfigurationAn Oracle VDI Center consists of one or several Oracle VDI Hosts. You can create a new Oracle VDI Center by configuring this server as the Primary Oracle VDI Host.High availability requires a second Oracle VDI Host in the center. You can add as many Secondary Oracle VDI Hosts to an existing Oracle VDI Center as needed. During configuration, you will be asked to enter user name and password of a privileged account on the Primary Oracle VDI Host.
Please note that joining an Oracle VDI Center causes a short interruption of active sessions on the Primary Oracle VDI Host.1 New Oracle VDI Center2 Join Oracle VDI CenterSelect (1/2): 1Review the settings for a new Oracle VDI Center:Name: VDI CenterAdministrator Password: ********VDI Administrator (super-user): rootDNS name of this host: vdi.example.comMaximum number of sessions on this host: 100User ID range start: 150000Database: Embedded Oracle VDIDo you want to create the Oracle VDI Center now? Enter 'c' to customize the settings. ([y]/c): ySystem Configuration+ Creating new instance of Common Agent Container (vda)...+ Common Agent Container (vda) is reachable at vdi.example.com:11174+ Setting properties for Common Agent Container (vda)...+ Enabling Common Agent Container (vda) at system boot...Oracle VDI Center Agent Configuration+ Stopping Common Agent Container (vda)...+ Deploying center agent module in Common Agent Container (vda)...+ Restarting Common Agent Container (vda)...+ Creating Oracle VDI Center...+ Configuring time synchronization...Sun Ray Server Software Configuration+ Configuring Sun Ray Server Software...Sun Ray Client Configuration+ Setting Kiosk Mode Session Type to 'Oracle Virtual Desktop Infrastructure'...+ Setting Sun Ray Policy ...+ Enabling LAN Connections...+ Restarting Sun Ray Server Software...MySQL Database Server Configuration+ Generating Secure Socket Layer certificates...+ Creating MySQL group (vdadb)...+ Creating MySQL user (vdadb)...+ Setting up MySQL directory...+ Initializing database...+ Registering database service...+ Starting Oracle VDI database (MySQL)...+ Configuring MySQL Root Password...+ Creating database user with Administrator privileges...+ Creating database users for replication...+ Configuring MySQL Information...MySQL Database Client Configuration+ Setting user rights...+ Creating database tables...+ Configuring database connection...+ Importing Secure Socket Layer certificates...+ Updating Common Agent Container properties...Oracle VDI Service Configuration+ Deploying service module in Common Agent Container (vda)...+ Configuring primary administrator rootOracle VDI Manager Configuration+ Registering Oracle VDI Manager...+ Restarting Oracle VDI Manager...RDP Broker Configuration+ Registering RDP broker...+ Starting RDP broker...The configuration of Oracle VDI 3.5.2 has completed.WARNING: The current DBus file descriptor limit can only support up to approximately 120 logged-in desktops. It is recommended to reboot the system if you require support for more desktops.This server is configured as a Primary Oracle VDI Host of the new Oracle VDI Center 'VDI Center'.
A log file is available at '/var/log/vda-config.2015_08_18_12:28:08.log'.The command line tools are located at '/opt/SUNWvda/sbin'.
You can access the Oracle VDI Manager at http://vdi.example.com:1800
[root@vdi vda_3.5.2_linux]#

安装 VirtualBox

接下来,需要安装 VirtualBox。需要连外网通过wget来下载VirtualBox的安装文件。

[root@vdi vda_3.5.2_linux]# unzip vbox_4.2.zip
Archive:  vbox_4.2.zipcreating: vbox_4.2/inflating: vbox_4.2/SLA.txt        inflating: vbox_4.2/vda-solaris.conf  inflating: vbox_4.2/vb-install     inflating: vbox_4.2/httpd.conf     inflating: vbox_4.2/config.conf    inflating: vbox_4.2/vda-linux.conf  inflating: vbox_4.2/ReadMe.txt     inflating: vbox_4.2/Oracle_VM_VirtualBox_Extension_Pack-4.2.30-100415-ENTERPRISE.vbox-extpack  inflating: vbox_4.2/autoresponse
[root@vdi vda_3.5.2_linux]# cd vbox_4.2
[root@vdi vbox_4.2]# ./vb-install
Oracle VM VirtualBox 4.2.30 Installation for LinuxVerifying dependencies
VirtualBox 4.2.30 for Linux hosts Download+ Downloading ''... Select an existing user for VirtualBox [root]: root
Enter the password for user 'root': Specify the VirtualBox SSL port [443]: Oracle VM VirtualBox 4.2 Installation+ Installing Oracle VM VirtualBox Core+ Installing Oracle VM VirtualBox Extension PackSSH Configuration+ Enabling root access+ Restarting SSH ServiceOracle VM VirtualBox Webservice Configuration+ Creating SSL certificates+ Configuring Webservice+ Enabling WebserviceOracle VM VirtualBox was successfully installed.
A log file is available at '/var/log/vb-install.2015_08_18_12:34:05.log'.You can access the Oracle VM VirtualBox host at vdi.example.com, port 443.
[root@vdi vbox_4.2]#

至此,Oracle VDI的安装已经完成,接下来就可以登录到 Oracle VDI Manager开始配置了:

http://vdi.example.com:1800

由于接下来的配置工作都是基于图形界面完成的,这里就不再赘述,可以查看这篇文档来进行。

(END)

转载于:https://my.oschina.net/xintq/blog/519698

Oracle VDI 安装相关推荐

  1. oracle netca 乱码,Oracle 11g 安装及netca,dbca乱码之解决

    在中文Linux下安装Oracle 11g,运行runInstaller后默认会出现乱码,解决办法如下: 1.准备字体zysong.ttf,解压下载到的fallback 2.使用归档管理器打开data ...

  2. Oracle Client安装

    Oracle Client安装 文件下载,双击setup.exe文件(以管理员方式运行,注意:) 闪退不要慌!贵在坚持! 选择安装类型:管理员 #选择语言 #设置安装目录 执行先决条件检查,也可以选择 ...

  3. 使用Oracle instantClient代替Oracle Client安装

    使用Oracle instantClient代替Oracle Client安装 目录 使用Oracle instantClient代替Oracle Client安装 #Oracle instantCl ...

  4. 风清杨之Oracle的安装与说明

    原文:风清杨之Oracle的安装与说明 1.Oracle官网与下载地址 Oracle中文官网:http://www.oracle.com/cn/index.html Oracle中文官网下载:http ...

  5. oracle 10g安装

    ############################################################## #Linux 2.6.9-42.ELsmp                 ...

  6. J2EE环境的搭建之二—oracle的安装与详解

    在大型应用系统中,通常使用Oracle 这样的重量级数据库来作为信息系统的后 台数据管理和存储系统 1.配置Linux 内核参数: (1)配置系统在启动时内核所必须的参数: 修改内核配置文件[root ...

  7. oracle rac安装

    oracle rac安装文件 文件太大,有需要联系我:QQ:16117055 转载于:https://blog.51cto.com/xiahouyao123/723860

  8. redhat7 Oracle 12C 安装

    redhat7 Oracle 12C 安装 系统安装 系统语言选择英文,中文系统安装oracle会乱码. 我选择手动分区,交换分区给20G,其他分区按个人需求分 配置网卡 创建用户和组 配置yum源  ...

  9. Oracle 10g安装64位图解流程

    2019独角兽企业重金招聘Python工程师标准>>> 1. 安装准备阶段 1.1 安装Oracle环境 本例使用X-Manager来实现与Linux系统的连接,本例使用的所有命令和 ...

最新文章

  1. 网站权重增加需要做的
  2. 共享收集的图像处理方面的一些资源和网站。
  3. vs实现python c扩展模块
  4. 【Python】一种超简单的二维列表降维方法
  5. hadoop集群中客户端修改、删除文件失败
  6. Vue给项目添加进度条
  7. ArrayList 与linkedlist区别
  8. js关于子元素不触发父元素事件的若干方法
  9. MySQL索引类型详解,让MySQL高效运行起来
  10. 常用连续型分布介绍及R语言实现
  11. SQL SERVER 添加字段说明语句
  12. 梦雨百度网盘机器人好友群组消息自动回复软件(可用于自动发货场景)
  13. Python计算最大回撤、回撤天数
  14. 制作独特彩妆美女模特头像照片的PS教程
  15. mysql服务在系统盘_重装系统后恢复MySQL服务
  16. Java+CountDownLatch多任务处理优化
  17. 乐得瑞推出LDR6028 SOP8 专为领夹式无线麦克风方案打造
  18. 2019年6月网络统考计算机基础试卷,2019年9月网络教育统考《计算机应用基础》模拟题及答案六...
  19. 利用JS生成随机验证码
  20. 数字经济综合指标(数据+代码,2011-2019,处理好的面板数据)

热门文章

  1. 跨站脚本攻击(XSS)FAQ
  2. SQL Server 中各个系统表的作用
  3. 一种注册表沙箱的思路、实现——研究Reactos中注册表函数的实现3
  4. 《OpenMP编译原理及实现技术》摘录
  5. vs2008中,创建基于对话框的mfc动态库步骤
  6. matlab内存管理(二)
  7. 【Qt】Log4Qt(一)下载、编译
  8. linux驱动:设备-总线-驱动(以TI+DM8127中GPIO为例)
  9. java好用的hbase库_Hbase入库基于java
  10. C语言画圆(编译器:VS2013)