zoukankan      html  css  js  c++  java
  • VShpere中创建新Linux(ubuntu)的virtual machine


    1) new Virtual Machine

     在 vCenter或ESX/ESXi host右键,选择New Virtual Machine。

     在New Virtual Machine中进行各种设置来完成Vitual Machine的创建。

     在创建好了以后还可以在虚拟机上右键edit settings来修改virtual machine的setting。

     选中虚拟机右键->edit settings -> Add -> Hard Disk 来增加新的硬盘。

    2) upload ubuntu的ISO to Datastore

     在 vShpere client中home->inventory->Datastores,选中要将Virtual Machine安装到的Datastore,然后右键Browe Datastore,然后选择upload 将 ubuntu.ISO上传到Datastore。 

     

    3) install OS for New Virtual Machine

     在新建的Virtual Machine上右键,选择Edit Setting。

     在Hardware->CD/DVD Drive 1上的Device Type下选择 Datastore ISO File来将刚才上传到Datastore中的ISO挂载到Virutal Machine的DVD中。

     在Hardware->CD/DVD Drive 1上的Device Status下选中 Connect at power on。

     在Options-> Boot Options中选中 The next time the virtual machine boots, force entry into the BIOS setup screen.

     在启动Virual Machine后会进入BIOS设置,设置为DVD启动,F10保存然后重启。

     此时进入Virtual Machine的安装。

     如果没有将ISO上传到Datastores,则可以选择本地的ISO:
     选中虚拟机右键->open console -> power on - > connect/disconnect the cd/dvd devices of virtual machine ->  cd/dvd driver 1 -> connect to image on local disk

     通过上面类似的方法可以选择host device(esx host所在的机器) 或 client device(vshpere client 所在的机器)。
     
     在console中ctrl+atl+insert重启进入安装。 

    4) install VM tools for New Virtual Machine

     在Virtual Machine安装好后,在Virual Machine的console-> VM -> guest -> install vm tools。

    5) install ssh server

    http://www.cnblogs.com/itech/archive/2009/04/17/1438179.html

    6) check server ip

    sudo /sbin/ifconfig

    7) change root password

    sudo su 

    passwd

    8) 安装xinetd

    sudo apt-get install xinetd

    9) mount windows share

    sudo apt-get install samba smbclient
    sudo apt-get install smbfs
    sudo mount -t cifs  -o username=domain/user,password=pass  //ip/sharefolder /mnt/XXX


    10) install gcc

    sudo apt-get install build-essential
    gcc -v
    make -v

    11) install buildforge agent

    通过mount后 copy agent的源码到~,然后tar -xvzf xxx.tar.gz 来解压源码

    进入src然后执行

    ./configure --without-pam 

    make 

    ./bfagent 

    quit

    sudo ./install.sh

    netstat -anpe | grep 5555  查看是否在运行

    此时bfagent运行在了xinetd下了: 配置文件/etc/xinetd.d/bfagent

    # default: on
    # description: The IBM Rational Build Forge Agent service provides remote
    #    process control from the IBM Rational Build Forge Management Console
    service bfagent
    {
            socket_type             = stream
            wait                    = no
            user                    = root
            server                  = /usr/local/bin/bfagent
            log_on_success  += HOST DURATION
            log_on_failure  += HOST
            passenv                 =
            disable                 = no
    }
     

    http://jazz.net/forums/viewtopic.php?t=12303
    http://www.dawal.org/index.php/tools-a-products/rationalbuildforge/34
     

    完!

  • 相关阅读:
    java 和.net 开发平台的感受(菜鸟级)
    结构体应用统计学生成绩
    实验十 链表
    绘制抛物线(带比例缩放)
    上下三角矩阵的输出
    结构体应用分类与索引
    笔试题之数据库
    动态规划求回文给定字符串,插入字符形成回文
    三行九个点,用4条线段连接(扩展,用3条,用1条)
    名言记录
  • 原文地址:https://www.cnblogs.com/itech/p/2046302.html
Copyright © 2011-2022 走看看