lost and found ( for me ? )

How to Install an Openfiler in KVM

[ What’s Openfiler ? ]

http://www.openfiler.com/

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
DISTRIB_DESCRIPTION="Ubuntu 10.10"
root@hat1:~# uname -r
2.6.35-28-server
root@hat1:~# kvm --version
QEMU PC emulator version 0.12.5 (qemu-kvm-0.12.5), Copyright (c) 2003-2008 Fabrice Bellard
root@hat1:~#


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:~#
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'>
 <name>openfiler-vm1</name>
 <uuid>043c5179-8a05-0ce7-eefa-a18359043185</uuid>
 <memory>1048576</memory>
 <currentMemory>1048576</currentMemory>
 <vcpu>1</vcpu>
 <os>
   <type arch='i686' machine='pc-0.12'>hvm</type>
   <boot dev='hd'/>
 </os>
 <features>
   <acpi/>
   <apic/>
   <pae/>
 </features>
 <clock offset='utc'/>
 <on_poweroff>destroy</on_poweroff>
 <on_reboot>restart</on_reboot>
 <on_crash>restart</on_crash>
 <devices>
   <emulator>/usr/bin/kvm</emulator>
   <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>
   <disk type='block' device='cdrom'>
     <driver name='qemu' type='raw'/>
     <target dev='hdc' bus='ide'/>
     <readonly/>
     <alias name='ide0-1-0'/>
     <address type='drive' controller='0' bus='1' unit='0'/>
   </disk>
   <controller type='ide' index='0'>
     <alias name='ide0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
   </controller>
   <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'/>
   </interface>
   <serial type='pty'>
     <source path='/dev/pts/1'/>
     <target port='0'/>
     <alias name='serial0'/>
   </serial>
   <console type='pty' tty='/dev/pts/1'>
     <source path='/dev/pts/1'/>
     <target type='serial' port='0'/>
     <alias name='serial0'/>
   </console>
   <input type='mouse' bus='ps2'/>
   <graphics type='vnc' port='5900' autoport='yes'/>
   <video>
     <model type='cirrus' vram='9216' heads='1'/>
     <alias name='video0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
   </video>
   <memballoon model='virtio'>
     <alias name='balloon0'/>
     <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
   </memballoon>
 </devices>
</domain>

virsh #

That’s it :)

No comments:

Post a Comment

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