没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
This HowTo is brought to you by openQRM Enterprise [http://www.openqrm-enterprise.com/]
Document Version : 10.05.2010
openQRM Enterprise GmbH
Berrenrather Straße 188c
50937 Köln / Germany
Telefon : +49 (0) 221 995589-10
Fax : +49 (0) 221 995589-20
Mail : info@openqrm-enterprise.com
This HowTo guides you step-by-step through an openQRM Cloud setup on Ubuntu 10.04 aka Lucid Lynx using the KVM
Virtualization technology. The only hardware required is 1 physical system which has the VT (Virtualization Technology) available
in the CPU and enabled in the BIOS. The technical details of this single-system openQRM Cloud setup are described in the
openQRM Enterprise Documentation at http://www.openqrm-enterprise.com/news/details/article/in-depth-documentation-
of-openqrm-available.html [http://www.openqrm-enterprise.com/news/details/article/in-depth-documentation-of-openqrm-available.html]
section “Configuring a Basic Setup”.
1 of 51
When installing the system with Ubuntu Lucid Lynx select “manual” partitioning. Create 3 Partitions :
1 - primary ext4 mounted at / (the rootfs)
2 - primary swap
3 - primary “do not use” (for the server-image store)
Important is to use a custom partition schema and create a dedicated partition for later storing the server-images. Mark that
partition as “do not use” (in this HowTo it will be /dev/sda3). No need to install any extra software packages in the further
installation procedure.
When the installation finished reboot and login. If you have selected the Ubuntu-Server version please install the “ubuntu-desktop”
package.
matt@cloud:~$ sudo apt-get install ubuntu-desktop
Ubuntu Lucid Lynx after a fresh installation.
2 of 51
Install “bridge-utils”
matt@cloud:~$ sudo apt-get install bridge-utils
Reading package lists... Done
Building dependency tree
...<snip>
Setting up bridge-utils (1.4-5ubuntu2) ...
matt@cloud:~$
Now edit /etc/network/interfaces and setup a bridge using a static, private ip-address.
matt@cloud:~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto br0
iface br0 inet static
address 192.168.88.3
netmask 255.255.255.0
gateway 192.168.88.1
bridge_ports eth0
bridge_fd 0
bridge_hello 2
bridge_maxage 12
bridge_stp off
matt@cloud:~$
Then apply the new network configuration by restarting the network.
matt@cloud:~$ sudo /etc/init.d/networking restart
* Reconfiguring network interfaces...
Waiting for br0 to get ready (MAXWAIT is 2 seconds).
ssh stop/waiting
ssh start/running, process 2864
matt@cloud:~$
Run “brctl show” to check the new network configuration. It should look like below.
matt@cloud:~$ brctl show
bridge name bridge id STP enabled interfaces
br0 8000.002215be747a no eth0
matt@cloud:~$
Now setup the static ip-address (in this HowTo “192.168.88.3”) and hostname in /etc/hosts. Please make sure that the hostname
(in this Howto “cloud”) does not appear in the line starting with 127.0.0.1.
matt@cloud:~$ cat /etc/hosts
127.0.0.1 localhost
192.168.88.3 cloud.openqrm cloud
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
matt@cloud:~$
3 of 51
Install lvm2, nfs-kernel-server, iscsi-target and vblade.
matt@cloud:~$ sudo apt-get install lvm2 nfs-kernel-server iscsitarget vblade
Reading package lists... Done
Building dependency tree
...<snip>
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-21-server
matt@cloud:~$
Now prepare the dedicated partition to be used with lvm, then create a logical volume group “vol”.
matt@cloud:~$ sudo pvcreate /dev/sda3
Physical volume "/dev/sda3" successfully created
matt@cloud:~$ sudo pvs
PV VG Fmt Attr PSize PFree
/dev/sda3 lvm2 -- 186.23g 186.23g
matt@cloud:~$ sudo vgcreate vol /dev/sda3
Volume group "vol" successfully created
matt@cloud:~$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
vol 1 0 0 wz--n- 186.22g 186.22g
matt@cloud:~$
Edit /etc/default/iscsitarget and set the iscsitarget to be started on boot-up.
matt@cloud:~$ cat /etc/default/iscsitarget
ISCSITARGET_ENABLE=true
matt@cloud:~$
Then start the iscsitarget and nfs-kernel-server services.
matt@cloud:~$ sudo /etc/init.d/iscsitarget start
* Starting iSCSI enterprise target service
matt@cloud:~$
matt@cloud:~$ sudo /etc/init.d/nfs-kernel-server start
* Exporting directories for NFS kernel daemon...
* Starting NFS kernel daemon
matt@cloud:~$
For the openQRM Server Database backend please install “mysql-server”.
matt@cloud:~$ sudo apt-get install -y mysql-server
Reading package lists... Done
Building dependency tree
...<snip>
Setting up mysql-server (5.1.41-3ubuntu12) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
matt@cloud:~$
For sake of simplicity in this HowTo we have left the myslq-password empty.
Install the “kvm” package.
matt@cloud:~$ sudo apt-get install -y kvm
Reading package lists... Done
Building dependency tree
.....<snip>
Setting up qemu-kvm (0.12.3+noroms-0ubuntu9) ...
qemu-kvm start/running
Setting up kvm (1:84+dfsg-0ubuntu16+0.12.3+noroms+0ubuntu9) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
matt@cloud:~$
4 of 51
We build openQRM from the sources which are available in the openQRM Projects subversion repository. The only requirement for
that is to have “subversion (client)” and “make” available so please install both components.
matt@cloud:~$ sudo apt-get install -y subversion make
Reading package lists... Done
Building dependency tree
...<snip>
Setting up subversion (1.6.6dfsg-2ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
matt@cloud:~$
Now checkout the openQRM sources from the svn repository.
matt@cloud:~$ svn co https://openqrm.svn.sourceforge.net/svnroot/openqrm openqrm
.... <snip>
matt@cloud:~$
Change to the src/ dir.
matt@cloud:~$ cd openqrm/trunk/src/
matt@cloud:~/openqrm/trunk/src$
And run “make”. Please notice that this step requires a working internet connection. If no internet is available on this system you
can download http://sourceforge.net/projects/openqrm/files/openQRM-4.6/source/openqrm-thirdparty-cache.tgz/download
[http://sourceforge.net/projects/openqrm/files/openQRM-4.6/source/openqrm-thirdparty-cache.tgz/download] and unzip it in your home
directory. This build-cache then will avoid any downloads.
matt@cloud:~/openqrm/trunk/src$ make
.... <snip>
All compilation results are cached by the openQRM build-system. To ensure all components are build correctly simply run “make”
again. The second (and every further “make” run) will just takes a few seconds. Here how the console output looks like for the
second “make” run :
matt@cloud:~/openqrm/trunk/src$ make
Checking requirements for the compilation phase
openqrm-server requires: make, gcc, portmap, rsync, zlib1g-dev, wget, tar, bzip2, unzip, wget, netbase, patch
found make installed
found gcc installed
found portmap installed
found rsync installed
found zlib1g-dev installed
found wget installed
found tar installed
found bzip2 installed
found unzip installed
found wget installed
found netbase installed
found patch installed
openqrm-plugin-aoe-storage requires:
openqrm-plugin-aws requires:
openqrm-plugin-citrix requires:
openqrm-plugin-cloud requires:
openqrm-plugin-collectd requires:
openqrm-plugin-dhcpd requires:
openqrm-plugin-dns requires:
openqrm-plugin-equallogic-storage requires:
openqrm-plugin-highavailability requires:
openqrm-plugin-image-shelf requires:
openqrm-plugin-iscsi-storage requires:
openqrm-plugin-kvm requires:
openqrm-plugin-kvm-storage requires:
openqrm-plugin-linux-vserver requires:
openqrm-plugin-linuxcoe requires:
openqrm-plugin-local-server requires:
openqrm-plugin-local-storage requires:
openqrm-plugin-lvm-storage requires:
openqrm-plugin-nagios2 requires:
openqrm-plugin-nagios3 requires:
openqrm-plugin-netapp-storage requires:
openqrm-plugin-nfs-storage requires:
openqrm-plugin-puppet requires:
openqrm-plugin-sanboot-storage requires:
openqrm-plugin-solx86 requires:
openqrm-plugin-sshterm requires:
openqrm-plugin-tftpd requires:
5 of 51
剩余50页未读,继续阅读
资源评论
seabee
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功