怎么在虚拟机安装方法中安装Linux VM中安装Linux的方法

用户名:CaiJiantao
文章数:100
评论数:209
访问量:361175
注册日期:
阅读量:1297
阅读量:3317
阅读量:459988
阅读量:1144446
51CTO推荐博文
在VMware中为Linux系统安装VM-Tools的详解教程
如果大家打算在VMware虚拟机中安装Linux的话,那么在完成Linux的安装后,如果没有安装Vm-Tools的话,一部分功能将得不到充分应用,如显卡,鼠标不能够在虚拟机和物理机间自由移动等功能。以下是安装完Fedora 16后在没有安装Vmware-Tools的情况下会报如下错误:
如果是在Vmware中安装windows系统的话,安装Vmware-Tools是非常简单的,只要按如下照步骤执行:
让后打开系统的我的电脑下的光驱运行安装程序即可自动安装Vmware-Tools,或者光驱自动运行进行安装。安装后重启系统即可。但是在Vmware中安装Linux后安装Vmware-Tools不像windows那么简单。下面就让我们一起来学习一下在Vmware中安装Vmware-Tools吧!
在安装Linux的虚拟机中,单击&虚拟机&菜单下的&安装Vmware-Tools&
出现以下菜单,证明Vmware-Tools的光驱镜像文件已经放入光驱设备。
在Linux系统中,如果要使用硬盘、光盘、软盘或MO盘等存储设备,必须先进行挂装(Mount)。当存储设备挂装完成之后,就可以将其作为一个目录来进行访问了。挂载点必须是一个已经存在的目录,mount没有创建挂载点的功能。
打开Linux的Terminal终端设备仿真程序
先介绍一下下面安装该工具时要用到的几个目录:
/mnt 挂载目录,用来临时挂载别的文件系统,硬件设备
/tmp临时文件的目录,用来存放不同程度执行时产生的临时文件
/sudo 以系统管理者的身份执行命令
在终端中输入以下命令:
mkdir /mnt/cdrom&在/mmt目录下创建名位cdrom 的目录。如果你像我一样不是以root用户登录的话会提示权限不够导致不能够在该路径下创建目录,所以必须切换到root用户,如下输入su -表示切换到root用户,提示输入密码,输入安装系统时设置的root密码。回车后即可切换到root用户了。
再执行上面创建目录的命令,此时可以顺利执行了。
mount /dev/cdrom /mnt/cdrom &把/dev/cdrom光驱挂载到我们上面创建的目录中。
cd /mnt/cdrom &却换到挂载的目录。
ls &列出该目录下中的文件.
cp VMwareTools-6.0.2-59824.tar.gz /tmp &复制目录下的VMwareTools-6.0.2-59824.tar.gz安装文件到/tmp目录
cd /tmp &却换到/tmp文件夹
列出该目录是否从/mnt/cdrom中成功拷贝VMwareTools-6.0.2-59824.tar.gz文件。
tar &zxvf VMwareTools-6.0.2-59824.tar.gz &解压VMwareTools-6.0.2-59824.tar.gz安装文件。
sudo vmware-tools-distrib/ vmware-install.pl&安装vmware-tools,也就是我们的主要目的。
注意:当屏幕上出现 what is the location of &gcc&program on your machine 时请按回车,之后又会提示:Would you like to change it 注意这项, 你选 NO ,输入的方法就是 空格+no 然后它就不会出现那个what is the location of &gcc&program on your machine,然后出现警告,不管他,直接全部回车按下去。
最后会出现如下界面
完成vmare tools的安装!reboot重新启动系统。不再出现显示的报错了!
本文出自 “” 博客,请务必保留此出处
了这篇文章
类别:┆阅读(0)┆评论(0)
14:49:11 17:49:46 00:03:24 15:49:46 18:25:20 18:27:14 14:33:10博客分类:
1、安装VMware虚拟机
2、在虚拟中安装linux系统(此次安装系统版本是:centos 5.5)
3、下载oracle安装文件,可以到官方网站下载最新版
&&&&&& /index.html
想办法把下面2个文件传进 Linux 操作系统里面去(借助工具:SSH ,如何连接SSH此处不详细介绍 )
linux_11gR2_database_1of2.zip
linux_11gR2_database_2of2.zip
4、上传完毕后, 使用 unzip 命令解压 刚才上传的2个文件, 命令格式如下:
unzip 文件名&&&&& (例如:unzip linux_11gR2_database_1of2.zip)
(注意:只需把两个安装文件放在同一个目录下,解压即可,解压后两个安装文件会自动解压到一个名为database的文件夹中了)
5、检查相关的开发工具和一些包
(注意:不同版本的oracle数据库都需要那些工具和包,可以到oracle官方文档中去查,此次安装版本是Oracle 11g Release 2 (11.2) for Linux x86,可以参考如下链接的安装文档
/docs/cd/E11882_01/install.112/e10857/toc.htm)
检查命令格式:rpm -qa | grep 名字
经检查,Oracle 11g Release 2 (11.2) for Linux x86所需包在系统的情况如下(--表示缺失的包,ok表示系统中已有的包):
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
elfutils-libelf-devel-static-0.125 --
&&&&&&&&&& ok
gcc-c++-4.1.2
glibc-2.5-24
glibc-common-2.5
glibc-devel-2.5
glibc-headers-2.5
kernel-headers-2.6.18
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.2
libgomp-4.1.2
libstdc++-4.1.2
libstdc++-devel-4.1.2
&&&&&&&&&& ok
numactl-devel-0.9.8.i386
sysstat-7.0.2
unixODBC-2.2.11
unixODBC-devel-2.2.11
从 CentOS-5.5-i386-bin-DVD.iso\CentOS 文件找到缺少的包, 并且上传到 linux 系统中(任何目录都行,然后到该目录执行如下命令):
ls *.rpm&&&&&&&&&&&&&&&&&&&&&&&&&&& --检查包有没有上传该目录
rpm -ivh *.rpm&&&&&&&&&&&&&& --安装上传到系统的包
6、创建主组负组和oracle安装路径
groupadd oinstall
groupadd dba
mkdir -p /u01/oracle
添加一个oracle用户, 根目录是 /u01/oracle, 主的组是 oinstall 副的组是dba
useradd -g oinstall -G dba -d /u01/oracle oracle
将如下三个文件copy到oracle的安装路径下:
cp /etc/skel/.bash_profile /u01/oracle
cp /etc/skel/.bashrc /u01/oracle
cp /etc/skel/.bash_logout /u01/oracle
为oracle用户设置密码 123456
passwd oracle
修改u01文件所在的组和操作用户:
chown -R oracle:oinstall u01
检查 nobody 是否存在 ,& id nobody
缺省存在的。如果不存在 # /usr/sbin/useradd -g nobody
7、给如下三个文件分别添加如下三段代码:
vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax =
kernel.shmmni = 4096
kernel.sem = 250 8
net.ipv4.ip_local_port_range =
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
-------------
vi /etc/security/limits.conf
oracle&&&&&&&&&& soft&&& nproc&& 2047
oracle&&&&&&&&&& hard&&& nproc&& 16384
oracle&&&&&&&&&& soft&&& nofile& 1024
oracle&&&&&&&&&& hard&&& nofile& 65536
------------
vi /etc/pam.d/login
session&&& required&&&& pam_limits.so
8、设置oracle 用户环境变量
su - oracle
---------------
vi .bash_profile
ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/oracle
ORACLE_SID=wilson
PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
9、将解压出来的oracle安装文件database拷贝到安装路径u01下,并修改database的操作权限:
mv database /u01/
chown -R oracle:oinstall database/
10、使用oracle用户 登陆图形界面 进行安装
cd /u01/database
./runInstaller
安装过程中的选项分别如下提示选择(可根据需求进行选择,此次安装的选择如下):
Installation Optiong
install database software only
Grid Options
Single instance database installation
Product Languages
Database Edition
Enterprise Edition (3.95)
Installation Location
Oracle Base: /u01
Software Loacation: /u01/oracle
提示: yes
Create Inventory
mkdir /oraInventory
chown -R oracle:oinstall oraInventory
Operating System Groups
Prerequis ite Checks
Ignore All
Install Product
安装完毕, 提示执行 2个脚本
/oraInventory/orainstRoot.sh
/u01/oracle/root.sh
直接按回车, 缺省值就可以
The installation of Oracle Database was successful
11、上面只是安装了软件, 数据库没有创建, 还有配置 监听器 Listener
一直默认下一步 ,最后 Finish
ps -ef 可以查看Listener是否配置成功
一直 Next, Global Database Name 和 SID 都是输入 wilson(注意:数据库名称自定义即可)
选择 User the Same.....All Accounts
密码: 123456
选择 Sample Schemas
Memory 内存分配,默认就可以了
Character Sets 选择 Use Unicode(AL32UTF8)
然后一直 Next , 到最后 Finish
弹出一个 Confirmation , 点击 OK 就可以了, 然后自动进行安装
安装到目录 /u01/oradata/wilson
12、然后可以修改& vi /etc/inittab 让 centos5.5 启动的时候不进入图形界面直接进入字符界面
id:5:initdefault: 修改成& id:3:initdefault:
保存退出(esc, :wq), 然后重启系统
13、用 oracle 用户 远程登录, 然后
$ sqlplus /nolog
SQL& conn / as sysdba
Connected to an idle instance.
SQL& startup
[oracle@localhost ~]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jun 25 15:05:54 2010
Copyright (c) , Oracle.& All rights reserved.
SQL& conn / as sysdba
Connected.
SQL& create table testUser( id integer,name char(10));
Table created.
SQL& insert into testUser values(0,'Jack');
1 row created.
Commit complete.
SQL& select * from testU
&&&&&&& ID NAME
---------- ----------
&&&&&&&& 0 Jack
关闭数据库
SQL&& shutdown immediate
SQL&& quit
月下狼~图腾~
浏览: 165656 次
来自: 长沙->上海
挺好!!!
请问楼主如何解决将填充数据以后的xml转换为.xls(x)。如 ...
好东西看到了就必须顶
强烈推荐 好文章 谢谢技术共享> Linux操作系统文本模式下安装VMware虚拟机
Linux操作系统文本模式下安装VMware虚拟机天新网
Linux下有很多种虚拟机软件,但是在Windows习惯了用VMware,操作比较简单,于是在linux下不妨也用用看,于是到VMware的官网()上下来一个最新的VMware-server-1.0.3-44356.tar.gz(vmwar for linux),通过几步简单的表单填写就可以申请个免费的注册码,本地解压后执行里面的vmware-install.pl脚本基本一路按默认回车下去即可,安装完毕需要给虚拟机的安装目录可读写权限,默认位置是/var/lib/vmware/,接下来就是涉及到具体操作了。最简单的方法是下载一个相同版本的windows版本,然后从windows下远程链接过去就和本机操作一样了,本人由于是在美国的上安装,只好在本地windows下先安装好(虚拟机安装好的系统文件在windows下与linux通用),然后将文件打包上传,然后用命令:vmware-cmd -s regeister /var/lib/vmware/Virtual Machines/CentOS X86/Red Hat Enterprise Linux 4.vmx 先注册,再用vmware-cmd /var/lib/vmware/Virtual Machines/CentOS X86/Red Hat Enterprise Linux 4.vmx start 启动。这里本人遇到个问题,我们美国服务器是64位的机子,第一次上传本地安装好的64位系统居然启动不了,报错不支持64位,于是再上传个32位的即可,具体原因还不祥。这样虚拟机起来后就和真实机一样使用了!相关参考:Linux下安装VMware-gsx-3.2.1来自:/3010.HTMLVmware-gsx-3.2.1-19281.tar.gz# tar -zxvf VMware-gsx-3.2.1-19281.tar.gz2.进入安装目录# cd vmware-gsx-distrib3.执行安装程序./vmware-install.pl4.安装过程安装过程中需要输入序列号Serial: X8TA5-HDWDD-V7H4D-4FUGQ安装过程比较简单,可以一路回车一直到最后安装完毕5。在其他机器上启动VMware virtual machine console选择remote hosthost name: 192.168.1.20user anme: rootpassWord: password连接以后,可以按照windows上使用vmware的方法来创建和使用虚拟机6。创建完windows虚拟机并安装好后,可以用菜单VM > install vmware tool... 来安装驱动7。vmware的启动关闭可以用一下命令# service vmware start# service vmware stop8.启动虚拟机用以下命令启动虚拟机vmware-cmd /var/lib/vmware/Virtual Machines/Windows2003/winNetEnterprise.vmx start关闭虚拟机vmware-cmd /var/lib/vmware/Virtual Machines/Windows2003/winNetEnterprise.vmx stop=====================vmware 命令vmnet-bridge vmstat vmware-config.pl vmware-smbdvmnet-dhcpd vm-support vmware-loop vmware-smbpasswdvmnet-natd vmware vmware-mount.pl vmware-smbpasswd.binvmnet-netifup vmware-authtrusted vmware-nmbd vmware-uninstall.plvmnet-sniffer vmware-cmd vmware-ping vmware-vdiskmanager列出虚拟机vmware-cmd -l启动虚拟机vmware-cmd /var/lib/vmware/Virtual Machines/Windows2003/winNetEnterprise.vmx start关闭虚拟机vmware-cmd /var/lib/vmware/Virtual Machines/Windows2003/winNetEnterprise.vmx stopvmware-cmd 命令[ORACLE@test vmware]\$ vmware-cmd -hUsage: /usr/bin/vmware-cmd /usr/bin/vmware-cmd -s Options:Connection Options:-H specifIEs an alternative host (if set, -U and -P must als o be set)-O specifies an alternative port-U specifies a user-P specifies a passwordGeneral Options:-h More detailed help.-q Quiet. Minimal output-v Verbose.Server Operations:/usr/bin/vmware-cmd -l-- lists the registered VMs/usr/bin/vmware-cmd -s register -- registers a VM/usr/bin/vmware-cmd -s unregister -- unregisters a VM/usr/bin/vmware-cmd -s getresource -- retrieves a server resource/usr/bin/vmware-cmd -s setresource -- sets a server resourceVM Operations:/usr/bin/vmware-cmd getconnectedusers/usr/bin/vmware-cmd getstate-- gets the execution state of the VM/usr/bin/vmware-cmd start -- powers on or resumes a VM/usr/bin/vmware-cmd stop -- stops a VM/usr/bin/vmware-cmd reset -- resets a VM/usr/bin/vmware-cmd suspend -- suspends a VM/usr/bin/vmware-cmd setconfig -- sets a configuration variable/usr/bin/vmware-cmd getconfig -- retrieves the value for a configuration variable/usr/bin/vmware-cmd setguestinfo -- sets a guest info variable/usr/bin/vmware-cmd getguestinfo -- retrieves the value for a guest info variable/usr/bin/vmware-cmd getid-- retrieves the VM id/usr/bin/vmware-cmd getpid-- retrieves the process id of the running VM/usr/bin/vmware-cmd getproductinfo -- gets various product information/usr/bin/vmware-cmd connectdevice -- connects a virtual device to a VM/usr/bin/vmware-cmd diSCOnnectdevice -- disconnects a virtual device from a VM/usr/bin/vmware-cmd getconfigfile-- retrieves the path to the configuration file/usr/bin/vmware-cmd getheartbeat-- retrieves the heartbeat value of the guest OS/usr/bin/vmware-cmd getuptime-- retrieves the uptime of the guest OS/usr/bin/vmware-cmd getremoteconnections-- retrieves the number of remote connections to a VM/usr/bin/vmware-cmd gettoolslastactive-- retrieves the number of seconds since last notification from the tools/usr/bin/vmware-cmd getresource -- retrieves a VM resource/usr/bin/vmware-cmd setresource -- sets a VM resource/usr/bin/vmware-cmd setrunasuser -- sets the user that the VM runs as/usr/bin/vmware-cmd getrunasuser-- retrieves the user that the VM runs as/usr/bin/vmware-cmd getcapabilities-- retrieves the access permissions of the current user on a VM/usr/bin/vmware-cmd addredo -- adds a redo log to a virtual disk/usr/bin/vmware-cmd commit -- commits the redo log of a virtual disk/usr/bin/vmware-cmd answer-- answers a question for a VM requesting input=====================Linux下安装和卸载vmware toolInstalling VMware Tools in a Linux or FreeBSD Virtual Machine1. Power on the virtual machine.2. After the guest operating system has started, prepare your virtual machine to install VMware Tools.Choose VM > Install VMware Tools.The remaining steps take place inside the virtual machine.3. Be sure the guest operating system is running in text mode. You cannot install VMware Tools from a terminal in an X window session.Some recent distributions of Linux are configured to run the X server when they boot and do not provide an easy way to stop the X server. However, you can switch to a different workspace that is still in text mode and install VMware Tools from that workspace.To switch between Linux workspaces in a virtual machine, press Ctrl-Alt-Space, release Space without releasing Ctrl and Alt, then press the function key for the workspace you want to use — for example, F2.Note: If you changed your hot-key combination to something other than Ctrl-Alt, use that combination with Space and the function key.4. As root (su -), mount the VMware Tools virtual
image, change to a working Directory (for example, /tmp), uncompress the installer, then unmount the CD-ROM image.Note: You do not use an actual CD-ROM to install VMware Tools, nor do you need to download the CD-ROM image or burn a physical CD-ROM of this image file. The GSX Server software contains an ISO image that looks like a CD-ROM to your guest operating system. This image contains all the files needed to install VMware Tools in your guest operating system.Linux Guests: Some Linux distributions use different device names or organize the /dev directory differently. If your CD-ROM drive is not /dev/cdrom or if the mount point for a CD-ROM is not /mnt/cdrom, modify the following commands to reflect the conventions used by your distribution.Further, some Linux distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.mount /dev/cdrom /mnt/cdromcd /tmptar zxf /mnt/cdrom/vmware-linux-tools.tar.gzumount /mnt/cdromFreeBSD Guests: Some FreeBSD distributions automatically mount CD-ROMs. If your distribution uses automounting, do not use the mount and umount commands below. You still must untar the VMware Tools installer to /tmp.mount /cdromcd /tmptar zxf /cdrom/vmware-freebsd-tools.tar.gzumount /cdrom5. Run the VMware Tools installer.cd vmware-tools-distrib./vmware-install.pl6. Answer the questions about default directories.7. Run the configuration program.vmware-config-tools.pl8. To change your virtual machine's display resolution, answer yes, then enter the number that corresponds to the desired resolution.9. Log off of the root account.exit10. Start X and your graphical environment.11. In an X terminal, launch the VMware Tools background application.vmware-toolbox &You can run VMware Tools as root or as a normal user. To shrink virtual disks, you must run VMware Tools as root (su -).Note: To get the greatest benefit from the features of VMware Tools, always run vmware-toolbox in the guest operating system. Uninstalling VMware ToolsIf you need to remove VMware Tools from your Linux guest operating system, log on as root (su -) and run the following command:vmware-uninstall-tools.pl ==================================管理接口 management interface 需要下载VMware-mui-3.2.1-19281.tar.gzwindows下运行C:Program FilesVMwareVMware Management Interfacehtdocsinit.pllinux下运行vmware-config-mui.plThe apache Server and the VMware Management InterfaceOn GSX Server for Linux hosts, an Apache server is installed with the management interface. Listed here are the commands to start, stop and restart the Apache server.In order to use these commands, you must first log on as root (su -), then open a terminal session.To start the Apache server, type/etc/init.d/httpd.vmware startTo stop the Apache server, type/etc/init.d/httpd.vmware stopTo restart the Apache server, type/etc/init.d/httpd.vmware restart
&相关阅读:
·深度操作系统15RC发布 你要转投Linux吗?
&&·操作系统免费装 IBM x3850 X6服务器促销
&&·巴黎机场关闭?都是操作系统惹得祸!
&&·免费安装系统 IBM x3650 M5服务器特卖
&&·操作系统免费送 IBM x3650 M5服务器热销
给文章打分 5分为满分(共0人参与)
频道热词:&&&&&&
精彩内容推荐
服务器知识学堂热点
排行 文章标题
TOP10周热门服务器排行榜
商家报价:
商家报价:
商家报价:
商家报价:
16用户点评
商家报价:
商家报价:
商家报价:
商家报价:
商家报价:
商家报价:
商家报价:¥13999-¥18999
上市时间: 2017年07月
产品数: 6
商家报价:¥49988
上市时间: 2017年05月
产品数: 4
商家报价:¥12900-¥21500
上市时间: 2015年01月
产品数: 2
商家报价:¥187000
上市时间: 2015年07月
产品数: 2
商家报价:¥4500-¥6589
上市时间: 2016年03月
产品数: 3
商家报价:¥55797-¥78372
上市时间: 2017年09月
产品数: 6
商家报价:¥96300
上市时间: 2011年12月
产品数: 3
上市时间: 2009年06月
产品数: 6
商家报价:¥14990-¥15990
上市时间: 2014年01月
产品数: 2
企业人物访谈

我要回帖

更多关于 虚拟机安装mac 的文章

 

随机推荐