Project

General

Profile

Wiki » History » Version 4

Version 3 (Parag Mhashilkar, 09/02/2011 10:11 AM) → Version 4/11 (Parag Mhashilkar, 09/02/2011 11:48 AM)

h1. Documentation

h2. Creating a IFGridftpServerBase Image

OpenNebula specification file used for Base Image creation is as follows

<pre>
NAME = IFGridftpServerBase
CPU = 1
VCPU = 2
MEMORY = 4096 2048

DISK = [
source = /cloud/images/OpenNebula/images/current-image.img,
save = yes,
target = vda,
bus = virtio,
persistent = yes,
readonly = no
]

DISK = [
type = swap,
size = 4096, 2048,
target = vdb ]

NIC = [ NETWORK = "FermiCloud" ]

FEATURES=[ acpi="no" ]

GRAPHICS = [
type = "vnc",
listen = "127.0.0.1",
port = "-1",
autoport = "yes",
keymap = "en-us"]

CONTEXT = [
ip_public = "$NIC[IP, NETWORK=\"FermiCloud\"]",
hostname = "if-gridftp-base.fnal.gov",
netmask = "255.255.254.0",
gateway = "131.225.154.1",
ns = "131.225.8.120",
files = "/cloud/images/OpenNebula/templates/init.sh /home/parag/OpenNebula/cedps/k5login",
target = "hdc",
root_pubkey = "id_dsa.pub",
username = "opennebula",
user_pubkey = "id_dsa.pub"
]

REQUIREMENTS = "HYPERVISOR=\"kvm\""


</pre>

Launch a new VM with dynamic IP address.

<pre>
[parag@fcl002 cedps]$ onevm create IFGridftpServerBase.one --verbose IFGridftpServer.one

# Once the VM is running login into the VM from same of different machine
[parag@cd-109337 ~]$ ssh root@131.225.154.59

# Stop and Disable ypbind
[root@fermicloud002 ~]# service ypbind stop
Shutting down NIS services: [ OK ]
[root@fermicloud002 ~]# chkconfig --list| grep ypbind
ypbind 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@fermicloud002 ~]# chkconfig ypbind off
[root@fermicloud002 ~]# chkconfig --list| grep ypbind
ypbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off

# Make the experiment disks available without ypbind
[root@fermicloud002 etc]# scp root@fcl002:/etc/auto.* /etc/
[root@fermicloud002 etc]# service autofs stop
Stopping automount: [ OK ]
[root@fermicloud002 etc]# service autofs start
Starting automount: [ OK ]

# Check that experiment areas are available without ypbind
[root@fermicloud002 etc]# ls -la /minos/app

# Install pacman & VDT
[root@fermicloud002 etc]# cd /usr/local/
[root@fermicloud002 pacman-3.29]# tar xzf /tmp/pacman-latest.tar.gz
[root@fermicloud002 local]# cd pacman-3.29/
[root@fermicloud002 pacman-3.29]# source ./setup.sh
[root@fermicloud002 etc]# cd /usr/local/
[root@fermicloud002 local]# mkdir /usr/local/vdt-2.0.99
[root@fermicloud002 local]# ln -s /usr/local/vdt-2.0.99 /usr/local/vdt
[root@fermicloud002 local]# cd /usr/local/vdt-2.0.99/
[root@fermicloud002 vdt-2.0.99]# pacman -get http://vdt.cs.wisc.edu/vdt_200_cache:VDT-Client
Do you want to add [http://vdt.cs.wisc.edu/vdt_200_cache] to [trusted.caches]? (y/n/yall): yall

</pre>

h3. From a new FermiCloud Base Image