1. Download packages

A. wget http://ved.ivic.org.cn/build/current_build/ivic-core_2.0+r****+2009****_all.deb
B. wget http://ved.ivic.org.cn/build/current_build/ivic-daemon_2.0+r****+2009****_all.deb
C. wget http://ved.ivic.org.cn/build/current_build/ivic-monitor_2.0+r****+2009****_all.deb
D. wget http://ved.ivic.org.cn/build/current_build/ivic-portal_2.0+r****+2009****_all.deb
E. wget http://ved.ivic.org.cn/build/current_build/ivic-vmc_2.0+r****+2009****_all.deb
F. wget http://ved.ivic.org.cn/build/current_build/ivic-vnet_2.0+r****+2009****_i386.deb
G.wget http://ved.ivic.org.cn/build/current_build/ivic-vsched_2.0+r****+2009****_all.deb
H. wget http://ved.ivic.org.cn/build/current_build/ivic-vstore_2.0+r****+2009****_all.deb
I. wget http://ved.ivic.org.cn/build/current_build/ivic-vswitch_2.0+r****+2009****_all.deb
J. wget http://ved.ivic.org.cn/build/current_build /globus-voms-pack_1.2+ivic2.0+3_i386.deb
K. wget http://ved.ivic.org.cn/build/current_build/libvirt-bin_0.6.4+1+ivic2.0+1_i386.deb
l. wget http://ved.ivic.org.cn/build/current_build /libvirt0_0.6.4+1+ivic2.0+1_i386.deb
M. wget http://ved.ivic.org.cn/build/current_build/rails-ivic_1.2+ivic2.0+4_all.deb
N. wget http://ved.ivic.org.cn/build/current_build/ python-libvirt_0.6.4+1+ivic2.0+1_i386.deb
      ---"****" means download the latest packages
      If the install process involves other debian packages, please use apt-get to install.

2. Install

2.1 Basic Requirements

proposed order:

l->k->n->j->*m->a->*b->c->f->*d->*e->g->h->i
(if there is "*",please look at the notes)

some tips:

a. use "dpkg -i *" to install
b. if it needs other packages ,use "apt-get install -f" to install when using "dpkg -i *"
c. if some packages can't find,use "apt-get install -f --fix-missing" or "apt-get update" to install when using "apt-get install -f"
d. user "dpkg -l "ivic*" " to check whether the installing is success

some notes:

  • a.when installing "rails-ivic":

you need to use "apt-get install ruby","apt-get install rubygems","apt-get install -f"

  • b.when installing "ivic-daemon":

Set "the external adress" to your <hostip>, if prompted.

  • c.when installing "ivic-portal", first install mysql:

apt-get install mysql-server-5.0 apt-get install -f

  • d.when installing "ivic-vmc":

the software will let you select "kvm" or "xen" virtual machine, choose kvm. Use "apt-get install kvm" and "apt-get install qemu" to install kvm and qemu

2.2 Download ca file and configure

Download:

a. visit "http://<hostip>/old",register a user
b. download "ca.crt" on “首页”
c. download "username.pem" on tab “帐户”
d. copy ca.crt and username.pem to /root/

Configuration:

  • a. vi "/etc/ivic/monitor.yaml":

client_key: "/root/username.pem" server_cert:"/root/ca.crt"

  • b. vi "/etc/ivic/general.yaml":

portal_url: " https:// + (your fully qualified domain name)"

  • c. vi "/etc/ivic/vsched.yaml":

connect_string: " mysql://root:sql-password@127.0.0.1/ivic_portal"

restart ivic-daemon:

/etc/init.d/ivic-daemon restart

VMC Registration and VM Template Distribution

Register vmc:

a. come in "虚拟机容器",click on "register Virtual Machine Container" 
b. input your hostname, host ip , port 8080,then register.

Download VM image and distribute VM template:

a. download VM image to "/var/lib/ivic/vstore/nfsbase"
b. download VM template to /var/lib/ivic/vstore/template/"
c. open VM template , replace the ip which is in <URL> and <COWDir> with the host ip
d. distribute VM template
        ivic-vstore publish --cert /root/username.pem --ca_cert /root/ca.crt  'template's UUID'"

Restart ivic-daemon

/etc/init.d/ivic-daemon restart

3. Create and Start a virtual cluster

  • (1) create a virtual cluster template on portal

Tab ”虚拟集群” -> vCluster Templates -> Create VCluster Template

  • (2) deploy this template

In “vCluster Templates”, choose a vcluster templae and click on “deploy” link

  • (3) start the vcluster

Click on buttonto start a vcluster

  • (4) view the vcluster
    1. download and install ivic-client (windows version)
    2. click on “图标视图” to view the details of a vcluster

Enjoy the iVIC now!

Attachments