寻觅生命中的那一片浅草......

文章属于类别 虚拟化

Boot_centos5.3_into_single_user_mode_on_XenServer

Today,I clone a VM in the XenCenter.I want to log into the new VM to configure ip and so on,But I had forgotten the original VM’s root password.So I can not log into the new one.

There are at least two kinds of way to reset the root password.One way is making the new VM boot from cdrom. I think it is too complicated to do that.The other way is editing grub’s boot option and making the VM boot into single user mode.It’s easy to do that.Follow this step:choose the new VM–>Shut down the new VM–>click the right mouse button–>Properties–>Startup Options–>OS Boot Parameters–>add single after utf8,the conten after edited is graphical utf8 single.Start the new VM again,it boot into single user mode,now we can change root password.

At last,shut down the VM,change OS Boot Parameters’s content to graphical utf8,start the new VM.

使用VI client访问Vmware server 2.0

自从Vmware server升级到2.0之后,它就只提供网页的访问方式,也就是通过浏览器,使用8333端口进行访问。网页管理方式不需要安装任何附加软件,但也有不方便的一面,或者说使用不习惯的一面。比如说我想设置某系统属性,自然而然的就想到右键鼠标去找属性。并且相比程序客户端,网页界面缺少系统状态监控报表,Console也需要安装插件。
后来偶然发现,Vmware Infrastructure Client可以访问并管理Vmware server 2.0版本(Vmware Infrastructure Client是Vmware ESX的管理客户端)。
首先VI Client需要升级到2.5.0,试过2.0不行。Vmware VI client网上我没能找到,我从最新ESX中提取出来,并提供如下:
Discover Simple, Private Sharing at Drop.io

Save File: VMware-viclient.zip
安装后,使用http链接接口作为登录IP,默认为 IP:8333,如下:用户名,密码一般为NT账户。

这样,免费的Vmware Server也能享受到ESX的待遇。

http://cooldoger.spaces.live.com/blog/cns!452276F513D2D37A!202.entry

The directory of kernel headers (version @@VMWARE@@ UTS_RELEASE) does not match

此错误主要是想找Linux内核的包含头文件找不到。要解决此问题需要安装内核源代码。

确认已安装
kernel-devel
kernel-hearders
这2个包

1. 首先要查看内核版本号:
【root@localhost ~】# uname -r // 查看内核版本号或者uname –a
如果是RHEL5的话内核应该是 2.6.18-8.el5xen
2. 已经知道自己的内核是“2.6.18-8.el5xen”,可以去此网站
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.8.tar.gz 下载到符合自己系统的内核源码。
3. 用【root@localhost ~】#tar zxvf linux-2.6.16.8.tar.gz -C /usr/src
将文件解压到指定目录/usr/src。
4. 进入/usr/src目录下,用【root@localhost ~】#mv linux-2.6.18.8 linux将解压好的文件夹名“linux-2.6.18.8”改变成“linux”。
5. 进入/usr/src/linux目录下。分别运行:
make mrproper
make oldconfig
make
执行第二个命令时碰到提示一路回车就行,第三个命令如果要完全执行完的话,可能会需要几个小时,最好让它编译完毕之后,再装虚拟机工具。如果在make刚开始执行时,即使生成了version.h和utsrelease.h,若按Ctrl+C强行退出编译。在安装完VM-ware Tools后,很可能导致系统无法正常启动。
6. 编译完毕后,进入/usr/src/linux/include/linux,用【root@localhost ~】#vi utsrelease.h (按i是插入,修改完后按Esc,然后按Shift+:,输入wq!按回车,修改完毕可以用#more utsrelease.h查看是否修改成功)将里面的版本号改成2.6.18-8.el5xen。
同上再修改version.h,在原来的基础上增加一行#define UTS_RELEASE “2.6.18-8.el5xen”,保存退出。
7. 重新启动系统,如果不重启,在安装VM-ware Tools后可能会碰到一些问题
8. 重启后就可以正常安装VM-ware Tools了。
9. 假如要改变分辨率,运行/usr/bin/vmware-config-tools.pl即可修改。

设置XenServer中的Linux vm从光驱启动

xenserver中的windows vm安装后可以通过xencenter设置从光驱启动,而linux vm则没有这样的选项,可以通过以下命令行解决:
xe vm-param-set uuid=546f896a-ebe6-8071-2c31-b9214dc1d1b5 HVM-boot-policy=BIOS\ order
xe vm-param-set uuid=546f896a-ebe6-8071-2c31-b9214dc1d1b5 HVM-boot-params:order=”dc”
uuid为vm的uuid,order中的d表明光驱,c表明启动硬盘。这样设置完后通过xencenter中的虚机属性也可以设置启动顺序了。

http://home.vmsky.com/space-32409-do-blog-id-3408.html

xenserver license

1.使用XenCenter工具,连接至Server,Tool–>License Manager–>选择要更新License的服务器,点击Activate….按钮.如果,此服务器可以直接连接到外网,将可以直接获取LIC文件安装,如果不能连接至外网,将会出现更新失败提示,并提示保存申请License文件.选择将申请文件保存.
2.访问:https://activate.vmd.citrix.com, upload申请文件.
3.填写相关信息,主要是MAIL地址,用来接收License 文件.提交.
4.打开邮箱下载License文件.
5.使用Winscp工具将License文件复制到XenServer的/etc/xensource/下,并重新命名为license.
6.重新启动XenServer.
7.License更新完成,可以正常使用.

关于Citrix公司的XenServer免费使用,个人理解,虽然为免费版本,但为了方便管理, 以及获取用户的相关信息,Citrix采用了Free License管理的模式,在到期后,用户只需要再次重复申请新的License文件并进行License安装即可.不会影响XenServer的正常使 用.但是,Citrix公司并未发表声明永久性提供免费使用,至少我没有找到.特别在正式的生产环境,还是建议大家购买正式的服务,以提供更高的性能以及安全的合法的保障.

转载自:http://hi.baidu.com/ts%B4%F3%D1%BC%C0%E6/blog/item/c58976fb885250809f514653%2Ehtml

2024年五月
« 5月    
 12345
6789101112
13141516171819
20212223242526
2728293031