[[PageOutline]] = XEN VM placement engine - OpenNEbula = == 1. Requirement == 1.1 '''''__Xen installation__''''' * [wiki:Xen_Installation Install from deb] * [wiki:Servers/virt_machines/kernel Install from source] 1.2 '''''__Required Package Installatiom__''''' {{{ $ sudo aptitude install ruby sqlite3 libsqlite3-0 libsqlite3-dev libsqlite3-ruby \ libxmlrpc-c3 libxmlrpc-c3-dev scons g++ flex bison }}} * Package information: * ruby: An interpreter of object-oriented scripting language Ruby * sqlite3: A command line interface for SQLite 3 * libxmlrpc-c3: A lightweight RPC library based on XML and HTTP for C and C++ * scons: A replacement for Make * flex: A fast lexical analyzer generator * bison: A parser generator that is compatible with YACC [[BR]] == 2. OpenNEbula Installation == 2.1 '''''__[http://www.opennebula.org/doku.php?id=software OpenNEbula download]__''''' {{{ $ tar zxvf one-1.2.0.tar.gz $ cd one-1.2.0 $ scons $ sudo mkdir /home/one $ sudo ./install.sh -d /home/one }}} 2.2 '''''__Verification__''''' {{{ $ ls /home/one bin etc include lib share var }}} [[BR]] == 3. OpenNEbula Usage == * Environment Setup {{{ $ sudo vim /etc/profile export ONE_LOCATION=/home/one export ONE_XMLRPC=http://localhost:2633/RPC2 export PATH=$ONE_LOCATION/bin:$PATH }}} * Statup OpenNEbula {{{ $ sudo one start }}} * Add Cluster {{{ $ onehost create one im_xen vmm_xen tm_ssh $ onehost list HID NAME RVM TCPU FCPU ACPU TMEM FMEM STAT 0 one 0 400 400 400 6216704 130048 on }}} == 4. Massively Deployment of Cluster == * Refer to https://trac.nchc.org.tw/grid/wiki/jazz/DRBL_Xen == 5. Using OpenNEbula to submit VM == * Create Image (We using xen-tools) {{{ $ sudo vim /etc/xen-tools $ sudo xen-create-image --hostname test1 --ip 140.110.X.X --acounts }}} * Configuration {{{ $ vim /home/images/domains/test1/test1.cfg MEMORY=128 CPU=4 OS=[ kernel="/boot/vmlinuz-2.6.18.8", initrd="/boot/initrd.img-2.6.18.8", root="sda1", boot="hd"] DISK=[ source="/home/images/domains/vm01/disk.img", target="sda1", readonly=no] DISK=[ source="/home/images/domains/vm01/swap.img", target="sda2", readonly=no] NIC=[mac="00:16:3e:01:01:03"] }}} * Submit vm in OpenNEbula {{{ $ sudo onevm submit test1.cfg $ sudo onevm list ID NAME STAT CPU MEM HOSTNAME TIME 0 one-0 runn 0 131072 one 00 00:05:24 $ sudo xm list Name ID Mem VCPUs State Time(s) Domain-0 0 5840 4 r----- 307.8 one-0 2 128 1 -b---- 1.6 $ sudo xm console one-0 }}} == Problem == * Ubuntu 8.10 的kernel 2.6.27-9-server 目前只support DomU (no Dom0) 2008/12/10 == 想法 == * OpenNEbula的控制介面非常簡單明瞭,DRBL是否也可加入類似的介面來監控和管理node。 * 降的架構可以完善的提供IaaS的服務嗎?是否還有缺失呢? * 是否撰寫Web版的OpenNEbula介面,讓外界的使用者可以透過簡單的點選來創建自己的VM? [[BR]] == Reference == * [http://www.opennebula.org/doku.php?id=start OpenNEbula]