跳至主要内容

虚拟技术使用

Vmware ESXI 开始实用command line ,其实还是有其他登录方式的只不过用client管理比较好看而已。
Host装完以后, 可以alt-f1 然后输入unsupported再打回车符。 就可以进到里面 文章可以参考。 开启本机ssh和改变host.
vi /etc/inet.conf uncomment ssh. 然后在/etc/init一下, 不会影响已经启动的虚拟机。 然后直接可以从外网链接到command模式下.
 
由于自己已经能顺利实现在solaris上,讲zone占到nfs上。 具体步骤如下:

 

  1. make sure NFS is having enough space to install.
  2. make sure you have root permission.
  3. cd Path
  4. mkfile 6G zone ( the solaris standard installation will cost 6G and the filename is better the same as zone name)
  5. lofiadm ( run this command for confirming the link between path and the virtual devices)
  6. lofiadm –a /Path/zone /dev/lofi/* ( please count the * one by one)
  7. newfs /dev/lofi/*
  8. mkdir /localpath/zone (localpath as the old local zone path, zone name as NFS’ zone)
  9. mount /dev/lofi/* /localpath/zone
  10. chmod 700 /localpath/zone
  11. vi /zone.cfg (please modify the ip address, zonepath as required , do not modify the others)
  12. zonecfg –z zone –f /zone.cfg
  13. zoneadm list –ivc (confirm the zone had been listed, correct)
  14. zoneadm –z zone install
  15. zoneadm –z zone boot
  16. zlogin –C zone (set the normal way, use root000 as root password)
  17. vi /etc/sshd_config (commont root login)
  18. svcadm restart sshd
现在想试着将用vmware exsi使用nfs模式,将虚拟机装到nfs上,用windows的client端很容易实现挂在,无论是用nis share出来的盘,或者用netapp share出来的盘, 这样可以便于备份和便于换空间。  注意在写的使用用netapp的要写好/vol 之前因为没写,导致mount会有问题。
加载以后,数据饼图显示的话那块。
 
 
ESXI 相对于ESX 被阉割了很多功能,但是对于一般小型企业而言,已经够用。lun的storage需求基本没有。
在command命令下加在nas/NFS的share空间,esxcfg-nase -a /name -o hostname -s /vol 即可


upgrade 3.5 to 4.0 u1 use ESXi-4.0.0-1.9.208167-upgrade-release.zip
upgrede 4.0 to 4.0 u1 use ESXi-4.0.0-update01.zip
--
Alex Tu
-----------------------------------------------------------
ShangHai,China

评论

此博客中的热门博文

Python学习笔记20100117

映射list   Dictionary 是用{}. list 是一那个[]. turple是用() 当你定义过dictionary后,你可以使用d.keys(), d.values(),d.items()将定义后的时候分别显示出来 当然可以将list里的值加减乘除,也可以如一般的定义直接重新复制这个list. 链接与分割字符串的 li=";", join(li) 则显示的就是 分隔符为;的数 如果使用li=li.split(";")则将刚刚;的分隔符删除,而split里也可定义域,如li.split(";",1)   自省 <---这是啥 之前在使用的时候发觉有些书本上的模块不能调用,很多是py脚本定义过的函数。 下载该脚本s,然后上传至指定位置。 >>>import sys >>>sys.path >>>sys.path.append("绝对位置")然后就能调用这些脚本和参数了。 删除 >>>sys.path.pop() 定义一个参数是 def info(test, test1=10.test2=12): info是函数名,test是必备参数,因为没有定义值,test1和test2是可选参数,定义了初始值   以上是外部函数的调用,下面转到内部函数 内部函数有type,str,dir及其他   ---type 返回任意字符的类型,模块也可以。types模块 >>> type(1) <type 'int'> >>> li=[] >>> type(li) <type 'list'> >>> import odbchelper >>> type(odbchelper) <type 'module'> >>> type(sys) <type 'module'> >>> import types ...

Python学习笔记20100128

methodList = [method for method in dir(object) if callable(getattr(object, method))] ###插一句, ifconfig pcn0 unplumb 去禁solaris的网卡plumb起网卡   and, or  已经and-or一起用。 and 两者为真,print第二个数,一个为假一个为真返回假,三者为真返回最后一个真。 or 两个为真,返回第一个, 一个为假一个为真返回真,三者为假返回最后一个假   lambda可快速定义最小值函数   g = lambda x:x*2 g(3) 6 (lambda x:x*2)(3)   doc string print getattr(object,mothod).__doc__   ljust ljust 用空格填充字符串以符合指定的长度。info 函数使用它生成了两列输出并将所有在第二列的 doc string 纵向对齐。 如果小于的话不会从中截断   -----面向对象 首先导入,你可以选择import module or from module import module 如果你要经常访问模块的属性和方法,且不想一遍又一遍地敲入模块名,使用 from module import。 如果你想要有选择地导入某些属性和方法,而不想要其它的,使用 from module import。 如果模块包含的属性和方法与你的某个模块同名,你必须使用 import module 来避免名字冲突   -----类的定义 class Lofs    pass   这个类的名字是 Loaf,它没有从其它类继承。 类名通常是第一个字母大写,如:EachWordLikeThis,但这只是一个习惯,不是一个必要条件。   这个类没有定义任何方法或属性,但是从语法上,需要在定义中有些东西,所以你使用 pass。这是一个 Python 保留字,仅仅表示 “向前走,不要往这看”。它是一条什么都不做的语句,当你删空函数或类时,它是一个很好的占位符。   你可能猜...

4 steps to delete account in Gerrit DB

4 steps to delete account in DB. Delete from accounts where preferred_email=’’; delete from account_ssh_keys where account_id=''; delete from account_external_ids where external_id='gerrit:*’; delete from account_external_ids where external_id='username:*’; whatever it was in H2 database and postgres db . H2: ssh -p 24198 localhost gerrit gsql Postgres: psql