lost and found ( for me ? )

How to Install an Openfiler in KVM

[ What’s Openfiler ? ]


Openfiler is an open source based storage server which supports NFS , CIFS , iSCSI , high availability , Web based GUI etc.

Reliability - Openfiler supports both software and hardware RAID with monitoring and alert facilities; volume snapshot and recovery

Availability - Openfiler supports active/passive high availability clustering, MPIO, and block level replication

Performance - Linux 2.6 kernel supports the latest CPU, networking and storage hardware

Scalability - filesystem scalability to 60TB+, online filesystem and volume growth support

[ Install an Openfiler 2.3 on KVM ]

KVM machine info
root@hat1:~# tail -1 /etc/lsb-release
root@hat1:~# uname -r
root@hat1:~# kvm --version
QEMU PC emulator version 0.12.5 (qemu-kvm-0.12.5), Copyright (c) 2003-2008 Fabrice Bellard

Download openfiler-2.3-x86-disc1.iso from http://www.openfiler.com/community/download/

create a disk image for openfiler
root@hat1:~# kvm-img create -f qcow2 /media/disk1/KVM_images/openfiler-vm1.img 5G
Formatting '/media/disk1/KVM_images/openfiler-vm1.img', fmt=qcow2 size=5368709120 encryption=off cluster_size=0
root@hat1:~# kvm-img info /media/disk1/KVM_images/openfiler-vm1.img
image: /media/disk1/KVM_images/openfiler-vm1.img
file format: qcow2
virtual size: 5.0G (5368709120 bytes)
disk size: 136K
cluster_size: 65536

launch vrit-manager

The installation is very easy. ( similar to CentOS installation)

It took 15 minutes or so to finish the installation.

After finishing the installation , launch an web browser n’ access to https://openfiler’sIP:446

default login account is :

user: openfiler
credential : password

virsh # dumpxml openfiler-vm1
<domain type='kvm' id='3'>
   <type arch='i686' machine='pc-0.12'>hvm</type>
   <boot dev='hd'/>
 <clock offset='utc'/>
   <disk type='file' device='disk'>
     <driver name='qemu' type='qcow2'/>
     <source file='/media/disk1/KVM_images/openfiler-vm1.img'/>
     <target dev='hda' bus='ide'/>
     <alias name='ide0-0-0'/>
     <address type='drive' controller='0' bus='0' unit='0'/>
   <disk type='block' device='cdrom'>
     <driver name='qemu' type='raw'/>
     <target dev='hdc' bus='ide'/>
     <alias name='ide0-1-0'/>
     <address type='drive' controller='0' bus='1' unit='0'/>
   <controller type='ide' index='0'>
     <alias name='ide0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
   <interface type='bridge'>
     <mac address='52:54:00:d1:2a:93'/>
     <source bridge='br0'/>
     <target dev='vnet0'/>
     <alias name='net0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
   <serial type='pty'>
     <source path='/dev/pts/1'/>
     <target port='0'/>
     <alias name='serial0'/>
   <console type='pty' tty='/dev/pts/1'>
     <source path='/dev/pts/1'/>
     <target type='serial' port='0'/>
     <alias name='serial0'/>
   <input type='mouse' bus='ps2'/>
   <graphics type='vnc' port='5900' autoport='yes'/>
     <model type='cirrus' vram='9216' heads='1'/>
     <alias name='video0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
   <memballoon model='virtio'>
     <alias name='balloon0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>

virsh #

That’s it :)

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.