看了些文章: <<一种穷人利用vmware玩FreeBSD的方法>>
"1)要做很大工作量的东西,用真实机器开FreeBSD。
2)当要用windows做些东西的时候用vmware开FreeBSD。
但是这两种情况都是用同一份FreeBSD",这就是我想要的, 文中更提到 "注意一定要第一个硬盘" ,有点不解."因为,如果从真实的物理硬盘(phisical hardisk)启动,该物理磁盘必须是要接在主盘。"vmware手册还在翻. http://www.freebsdchina.org/foru%20...%20mp;highlight=vmware
<<虚拟与现实的完美结合>> 这篇文章的主要思想是不同的VMware虚拟机可以通过共享虚拟机硬盘文件,可以建立配置不同的虚拟机(比如网络不同) 和我要的效果有点不.
http://fanqiang.chinaunix.net/adm/net/2005-03-17/2941.shtml
觉的VMware的使用物理硬盘功能是个很好的方法。
特别对我现在的情况是很有帮助的。
我现在的状态(学习需要):
真实机器安装了windows xp 和 RHEL5+oracle+其他服务器.
同时又在windows下装VMware里面装了RHEL5+oracle+其他服务器:
为了开发和调试方便。 现在我就有了两份RHEL5+oracle+其他服务器. 又占空间又同步麻烦。
如果我能用vmware去启动我的物理RHEL, 同时又可以使用oracle等服务,那就很完美了。
现在是初步目的,wmware能启动RHEL.也不用启动X-window,跑level3就可以了。 因为物理机器很vmware硬件的不同,可能在启动中和使用中会碰到很多问题,不知道有没有人有这方面经验(可能对linux的掌握要求更多)。也许需要有个新的内核和另外一套配置。这样物理RHEL启动用一套,vmware来启动用另一套。
目的:
在虚拟机VMware中启动原来物理安装的Linux.系统描述:两块IDE硬盘,硬盘1分了3个区,C盘装了Windows XP, 硬盘2也分了几个区,其中1个是FAT32,放windows下数据的,剩下的装了个RHEL5.启动相关信息:RHEL5 分区比较简单, /boot没有特别分区, GRUB装在 /hdb1 (第二块硬盘第一主分区,这就是我开始的问题所在), 用dd命令( dd if=/dev/hdb1 of=/mnt/file/rhel5.lnx bs=512 count=1) rhel5.lnx 用windows os loader 引导(在boot.ini中添加).
下面是我的尝试:一开始vmware建立个虚拟机,在选硬盘是选择使用整个硬盘(硬盘2),启动vmware,屏幕卡在GRUB _ 一开始我以为是grub背景图得不到,去掉背景后还是不行.在看VMware手册时看到,vmware启动先去看MBR, 现在我把硬盘2给vmware用,在vmware看来,它有个硬盘,但是这个硬盘的MBR是空的. 为了测试是否就是它引起的,我重启进BIOS把硬盘2改为第一启动,硬盘1不启动.重启发现屏幕卡在GRUB _. 确定了问题所在. 接下去就看我怎么做吧.
下面是我的做法:不是很完美,但是目前我的目的已经达到了.根据VMware 文档描述, 使用物理硬盘是比较危险的,大家不清楚不要轻易尝试,要记得备份数据.为了避免不必要的问题. 我先把硬盘2里的FAT32分区在windows中删除(不会删数据),我的电脑右键-->管理-->磁盘管理 选中分区 右键"更改驱动器名和路径"再"删除".真实启动到RHEL5,grub-install /dev/hdb (将GRUB装到硬盘2 BMR,原来是装在/dev/hdb1).
修改/etc/inittab ,run level改为3,不启动X-window,因为原来的显卡驱动在vmware下肯定用不了.id:5:initdefault: 改为 id:3:initdefault:
添加一个入口在grub.conf (menu.lst). 原来:
title Red Hat Enterprise Linux Server (2.6.18-8.e15)
root (hd1,0)
kernel /boot/vmlinux-2.6.18-8.e15 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.18-8.e15.img
添加( root (hd0,0) 因为VMware认为其硬盘是在主硬盘处的):
title Red Hat Enterprise Linux Server (2.6.18-8.e15) start in vmware
root (hd0,0)
kernel /boot/vmlinux-2.6.18-8.e15 ro root=LABEL=/1 rhgb quiet
initrd /boot/initrd-2.6.18-8.e15.img
确定/etc/fstab没有挂载其他硬盘分区.
重启, 修改BIOS,设置第一启动为硬盘2,重启出现GRUB菜单(不再卡在GRUB_),确认GRUB安装是正确的.
现在可以进入windows,新建虚拟机,选择使用整个硬盘2. 启动,出现grub菜单,选择 Red Hat Enterprise Linux Server (2.6.18-8.e15) start in vmware 就可以进入.
Ok. 这样就可以虚拟机内使用原来安装在硬盘2上的linux上了.
接下去要做的和目前的不足:
1.现在想要物理启动硬盘2上的linux就需要改BIOS设置了.
2.vmware下现在还不能启动X-window.
至少因为虚拟机下的显卡和真实显卡不一样,真实机器已装了nvidia的启动.需要X-window暂时解决方法可以在 Host OS中开X (比如Xmanager).
3.硬盘2的linux分了很多区,怎么办. fstab在真实和虚假间需要不同.暂时解决方法:手动挂载
4.根据别人的提示,网卡将会有两套。一个真实的一个vmware虚拟的。这应该也是个问题。
其实完美的解决方案就是在grub那里,如果不同titile的grub入口通过不同参数的指定可以调用不同Xorg配置,fstab配置等等. 改天再看看grub的参数.(如好像 grub 有个 init=/sbin/init 的参数,重新写一份init给vmware用,来使用vmware下的xorg和fstab 等等)
2008年2月18日星期一
2007年12月27日星期四
(摘记)suse9.0在vmware5.0上安装刚开始就出现4分频
http://linux.chinaunix.net/bbs/thread-916977-1-1.html
Q:
suse9.0在vmware5.0上安装刚开始就出现4分频,安装一直无法进行下去,跪求,怎么解决?安装刚开始选择了“installation”后,就出现4分频,是什么问题呀?请教了
A:
1.vmware 安装的时候需要加参数 x11i=fbdev 安装,10以后就不用了。
2.不要用图形模式安装,按F2选 text.
3.这个问题我也遇到过,后来发现很简单,只要把你的windows颜色设置为中16位,不要设置32位,就不会再出现4分屏了。
Novel solution:
TIP: Can't Perform a GUI based Install
Environment VMware Workstation Version: 4.5.2 build-8848Host OS: Windows XPGuest OS: OES/SLES9sp2
Problem After selecting "Installation" from the initial Blue screen/menu the screen turns into a purple screen with either 2 or 4 duplicated consoles each with small green text that is hard to read. There is also an error message displayed that will not allow a GUI install.
Solution Here are some options:
Option 1 - Text-based Install Before selecting "Installation" from the blue boot menu, change to the mode to Text using F2. The install will start in Text mode. It is just like the GUI/YaST based install. Later you can install VMware Tools to get the GUI running locally in VMware.
Option 2 - GUI Install via VNC You can use "Boot Options" that will start VNC so you can run the GUI/YaST install portion of the install from either a VNC viewer or a browser. Later you can install VMware Tools to get the GUI running locally in VMware. To install via VNC:
Before selecting "Installation" from the Blue boot menu, add the following text to the "Boot Options": vnc=1 vncpassword=novell This will 1) enable vnc and 2) set the vncpassword to novell When the install is ready it will display the info you need to connect using VNC. e.g. Browser URL: "http://http://ip_address":5801
Misc Install Tips - If you select a "default" SLES 9 install, you should also install the gcc, gcc-devel, and kernel-source packages. These are needed for VMware Tools installation. - I recommend that you enable VNC remote administration so you can get to the GUI remotely. This may come in handy if you have problems with the X-server running locally in your VM.
Q:
suse9.0在vmware5.0上安装刚开始就出现4分频,安装一直无法进行下去,跪求,怎么解决?安装刚开始选择了“installation”后,就出现4分频,是什么问题呀?请教了
A:
1.vmware 安装的时候需要加参数 x11i=fbdev 安装,10以后就不用了。
2.不要用图形模式安装,按F2选 text.
3.这个问题我也遇到过,后来发现很简单,只要把你的windows颜色设置为中16位,不要设置32位,就不会再出现4分屏了。
Novel solution:
TIP: Can't Perform a GUI based Install
Environment VMware Workstation Version: 4.5.2 build-8848Host OS: Windows XPGuest OS: OES/SLES9sp2
Problem After selecting "Installation" from the initial Blue screen/menu the screen turns into a purple screen with either 2 or 4 duplicated consoles each with small green text that is hard to read. There is also an error message displayed that will not allow a GUI install.
Solution Here are some options:
Option 1 - Text-based Install Before selecting "Installation" from the blue boot menu, change to the mode to Text using F2. The install will start in Text mode. It is just like the GUI/YaST based install. Later you can install VMware Tools to get the GUI running locally in VMware.
Option 2 - GUI Install via VNC You can use "Boot Options" that will start VNC so you can run the GUI/YaST install portion of the install from either a VNC viewer or a browser. Later you can install VMware Tools to get the GUI running locally in VMware. To install via VNC:
Before selecting "Installation" from the Blue boot menu, add the following text to the "Boot Options": vnc=1 vncpassword=novell This will 1) enable vnc and 2) set the vncpassword to novell When the install is ready it will display the info you need to connect using VNC. e.g. Browser URL: "http://http://ip_address":5801
Misc Install Tips - If you select a "default" SLES 9 install, you should also install the gcc, gcc-devel, and kernel-source packages. These are needed for VMware Tools installation. - I recommend that you enable VNC remote administration so you can get to the GUI remotely. This may come in handy if you have problems with the X-server running locally in your VM.
2007年5月27日星期日
在虚拟机里装oracle, [真想有独立电脑来装]
os: RHEL4 AS4 update 4
oracle:10g_linux_x86_db_10_1_0_3
ref:20061019-oracle_in_rhel4_1.pdf
20061019-oracle_in_rhel4_2.pdf
b15660.pdf
oracle在rh里面的安装流程
关闭不需要的servicechkconfig cups offchkconfig sendmail offchkconfig isdn offchkconfig smartd offchkconfig iptables offchkconfig pcmcia off
检查软件包是否安装Red Hat Enterprise Linux 4.0 and Asianux 2.0:binutils-2.15.92.0.2-13.EL4compat-db-4.1.25-9compat-libstdc++-296-2.96-132.7.2control-center-2.8.0-12gcc-3.4.3-22.1.EL4gcc-c++-3.4.3-22.1.EL44glibc-2.3.4-2.9glibc-common-2.3.4-2.9gnome-libs-1.4.1.2.90-44.1libstdc++-3.4.3-22.1libstdc++-devel-3.4.3-22.1make-3.80-5pdksh-5.2.14-30sysstat-5.0.5-1xscreensaver-4.18-5.rhel4.2setarch-1.6-1
rpm -qa binutils compat-* control-center gcc* glibc* gnome-libs libstdc* make pdksh sysstat xscreensaver setarch sort
添加组和用户groupadd oinstallgroupadd dbauseradd -g oinstall -G dba oraclepasswd oracleid oracle [check oracle user]uid=440(oracle) gid=200(oinstall) groups=201(dba),202(oper)id nodoby [check if nodody exist]
修改内核参数/etc/sysctl.conf kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 1048576net.core.rmem_max = 1048576net.core.wmem_default = 262144net.core.wmem_max = 262144
增加性能
/etc/security/limits.conf oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536
/etc/pam.d/loginsession required /lib/security/pam_limits.sosession required pam_limits.so
/etc/profile if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fifi
if ( $USER == "oracle" ) then limit maxproc 16384 limit descriptors 65536endif
Checking operating system version: must be redhat-2.1, redhat-3, SuSE-9, SuSE-8 or UnitedLinux-1.0 Failed <<<<
The following J2EE Applications have been deployed and are accessible at the URLs listed below.
Ultra Search URL:http://RHEL:5620/ultrasearch
Ultra Search Administration Tool URL:http://RHEL:5620/ultrasearch/admin
iSQL*Plus URL:http://RHEL:5560/isqlplus
iSQL*Plus DBA URL:http://RHEL:5560/isqlplus/dba
Enteprise Manager 10g Database Control URL:http://192.168.18.8:5500/em
oracle:10g_linux_x86_db_10_1_0_3
ref:20061019-oracle_in_rhel4_1.pdf
20061019-oracle_in_rhel4_2.pdf
b15660.pdf
oracle在rh里面的安装流程
关闭不需要的servicechkconfig cups offchkconfig sendmail offchkconfig isdn offchkconfig smartd offchkconfig iptables offchkconfig pcmcia off
检查软件包是否安装Red Hat Enterprise Linux 4.0 and Asianux 2.0:binutils-2.15.92.0.2-13.EL4compat-db-4.1.25-9compat-libstdc++-296-2.96-132.7.2control-center-2.8.0-12gcc-3.4.3-22.1.EL4gcc-c++-3.4.3-22.1.EL44glibc-2.3.4-2.9glibc-common-2.3.4-2.9gnome-libs-1.4.1.2.90-44.1libstdc++-3.4.3-22.1libstdc++-devel-3.4.3-22.1make-3.80-5pdksh-5.2.14-30sysstat-5.0.5-1xscreensaver-4.18-5.rhel4.2setarch-1.6-1
rpm -qa binutils compat-* control-center gcc* glibc* gnome-libs libstdc* make pdksh sysstat xscreensaver setarch sort
添加组和用户groupadd oinstallgroupadd dbauseradd -g oinstall -G dba oraclepasswd oracleid oracle [check oracle user]uid=440(oracle) gid=200(oinstall) groups=201(dba),202(oper)id nodoby [check if nodody exist]
修改内核参数/etc/sysctl.conf kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 1048576net.core.rmem_max = 1048576net.core.wmem_default = 262144net.core.wmem_max = 262144
增加性能
/etc/security/limits.conf oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536
/etc/pam.d/loginsession required /lib/security/pam_limits.sosession required pam_limits.so
/etc/profile if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fifi
if ( $USER == "oracle" ) then limit maxproc 16384 limit descriptors 65536endif
Checking operating system version: must be redhat-2.1, redhat-3, SuSE-9, SuSE-8 or UnitedLinux-1.0 Failed <<<<
The following J2EE Applications have been deployed and are accessible at the URLs listed below.
Ultra Search URL:http://RHEL:5620/ultrasearch
Ultra Search Administration Tool URL:http://RHEL:5620/ultrasearch/admin
iSQL*Plus URL:http://RHEL:5560/isqlplus
iSQL*Plus DBA URL:http://RHEL:5560/isqlplus/dba
Enteprise Manager 10g Database Control URL:http://192.168.18.8:5500/em
2007年5月25日星期五
订阅:
博文 (Atom)
回国科学上网姿势 软路由 通过apple私有Mac地址动态切换
回国科学上网姿势 软路由 通过apple私有Mac地址动态切换 断断续续的尝试了很多科学上网方式,自己搭VPS,家里路由器也升级了好几次,都是为了能装可以跑科学上网的固件,但是最大的问题是性能都一般,速度也不是很稳定。 最近软路由被提到较多,最吸引人的是可以达的速度非常高,可以看...
-
回国科学上网姿势 软路由 通过apple私有Mac地址动态切换 断断续续的尝试了很多科学上网方式,自己搭VPS,家里路由器也升级了好几次,都是为了能装可以跑科学上网的固件,但是最大的问题是性能都一般,速度也不是很稳定。 最近软路由被提到较多,最吸引人的是可以达的速度非常高,可以看...
-
英国 CINEWORLD UNLIMITED CARD 无限卡,年卡优惠近7折 我平时比较喜欢看电影,来英国后开始没看多少电影,记得第一次去看还是大半年后自己tesco会员卡积分可以换一张免费电影票看了 《脱壳机动队》,电影没字幕纯练听力了。 有次去London碰到前同事...
-
elinks handle ed2k for mldonkey by lua OS:CentOS 5.3 需求来源: 此机器很大部分时间还是台电驴BT下载机。 有时候远程putty想加些mldonkey任务,一般可以通过mldonkey的 telnet console添加, 但是...