centos6快速安装opennebula 3.8.1 4.2.0
方式一 centos 版本 6.4,在centos库中已经提供了一个打包好的opennebula,目前版本是3.8.1 1.安装 CentOS-testing repository # cd /etc/yum.repos.d# curl -O http://dev.centos.org/centos/6/opennebula/opennebula-testing.repo # yum repolist 2.安装ope
方式一
centos 版本 6.4,在centos库中已经提供了一个打包好的opennebula,目前版本是3.8.1
1.安装 CentOS-testing repository
# cd /etc/yum.repos.d # curl -O http://dev.centos.org/centos/6/opennebula/opennebula-testing.repo
# yum repolist
2.安装opennebula包
前置机安装:opennebula-server opennebula-sunstone
节点安装:opennebula-node-kvm
我这里用了一台机器,既当前置机又做工作节点
yum install opennebula-server opennebula-sunstone opennebula-node-kvm
3.设置网络
$brctl show
bridge name bridge id STPenabled interfaces
br0 8000.000000000000 no eth0
参考:http://opennebula.org/documentation:rel4.2:plan#networking
网桥设置参考:http://wiki.dzsc.com/info/8659.html http://hi.baidu.com/renchunyun/item/cc0dbb1d8799e9797b5f25c6
centos 6.4网桥设置失败报错如下:
原网卡eth0: Connection activation failed: Master connection not found or invalid
bridge网卡br0:Conncetion activation failed: Failed to determine connection’s virtual interface name
原因是NetworkManager接管网络造成的, 解决办法:
chkconfig NetworkManager off chkconfig –levels 35 network on /etc/init.d/NetworkManager stop /etc/init.d/network restart
参考:http://amutu.com/blog/2013/03/centos_bridge_devic/
4.配置NFS
如果你只用一个机器当前置机和节点,则可以省去此步骤
5.配置ssh免密码登录
<pre class="brush:php;toolbar:false">su - oneadmin ssh-keygen –t dsa cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
chmod600 ~/.ssh/authorized_keys
添加以下内容到 ~/.ssh/config
Host * StrictHostKeyChecking no UserKnownHostsFile /dev/null
复制 ~/.ssh 到所有工作节点:(只有一台机器就省略此部)
scp -r ~/.ssh node1: scp -r ~/.ssh node2: ...
用oneadmin测试ssh localhost是否成功
发现登录失败,我自己建了个用户,然后如此设置是可以登录localhost的,经过查证,原因是selinux开着的导致的,因为oneadmin的home在/var/lib/one下,没有在/home/下,因此被selinux拦截了,关闭selinux即可。这个官方文档没有说清楚,害我查了两天才弄清楚原因。
6.启动服务
$ service opennebula start $service opennebula-sunstone start $service opennebula-occi start
7.登录系统
http://10.1.81.224:9869/
cat /var/lib/one/.one/one_auth 看下登录名和密码
添加主机
$ onehost create localhost -i im_kvm -v vmm_kvm -n dummy
如果失败,则查看日志/var/log/one/oned.log
如果从其他IP登录此地址,需要修改sunstone的远程登录,修改etc/one/sunstone-server.conf为
:host: 0.0.0.0
即可。
方式二
可以从官网下载rpm包来安装,这个可以装比较新的版本
1.安装epel源
# yum install wget # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm # yum update
2.下载并安装
下载页面为:http://downloads.opennebula.org/
选择下载4.2.0 CentOS 6 tarball
tar xvf CentOS-6-opennebula-4.2.0-1.tar.gz
cd opennebula-4.2.0-1/
yum localinstall opennebula-common-4.2.0-1.x86_64.rpm
yum localinstall opennebula-ruby-4.2.0-1.x86_64.rpm
yum localinstall opennebula-4.2.0-1.x86_64.rpm
yum localinstall opennebula-sunstone-4.2.0-1.x86_64.rpm
yum localinstall opennebula-server-4.2.0-1.x86_64.rpm
Copy after login
在计算节点上安装 kvm 和 opennebula-node-kvm:
tar xvf CentOS-6-opennebula-4.2.0-1.tar.gz cd opennebula-4.2.0-1/ yum localinstall opennebula-common-4.2.0-1.x86_64.rpm yum localinstall opennebula-ruby-4.2.0-1.x86_64.rpm yum localinstall opennebula-4.2.0-1.x86_64.rpm yum localinstall opennebula-sunstone-4.2.0-1.x86_64.rpm yum localinstall opennebula-server-4.2.0-1.x86_64.rpm
yum install qemu-kvm qemu-kvm-tools libvirt
yum localinstall opennebula-node-kvm-4.2.0-1.x86_64.rpm
Copy after login
yum install qemu-kvm qemu-kvm-tools libvirt yum localinstall opennebula-node-kvm-4.2.0-1.x86_64.rpm
开启服务:
<span>/etc/init.d/libvirtd start
206 service opennebula start
207 chkconfig opennebula on
208 service opennebula-sunstone start
209 chkconfig opennebula-sunstone on</span>
Copy after login
打开浏览器,访问 http://10.1.81.224:9869 登陆界面,那登陆的用户名和密码是啥呢?用户名和密码在安装的时候已经随机生成,oneadmin
是用户名,后面的一串是密码
<span>/etc/init.d/libvirtd start 206 service opennebula start 207 chkconfig opennebula on 208 service opennebula-sunstone start 209 chkconfig opennebula-sunstone on</span>
# cat /var/lib/one/.one/one_auth
Copy after login页面效果:
# cat /var/lib/one/.one/one_auth


其中一些细节设置,请参考方式1
参考:http://www.aikaiyuan.com/4891.html
http://www.vpsee.com/2013/05/install-opennebula-4-0-on-centos-6-4/
http://blog.chinaunix.net/uid-20940095-id-3561376.html

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solution to the problem that Win11 system cannot install Chinese language pack With the launch of Windows 11 system, many users began to upgrade their operating system to experience new functions and interfaces. However, some users found that they were unable to install the Chinese language pack after upgrading, which troubled their experience. In this article, we will discuss the reasons why Win11 system cannot install the Chinese language pack and provide some solutions to help users solve this problem. Cause Analysis First, let us analyze the inability of Win11 system to

You may not be able to install guest additions to a virtual machine in OracleVirtualBox. When we click on Devices>InstallGuestAdditionsCDImage, it just throws an error as shown below: VirtualBox - Error: Unable to insert virtual disc C: Programming FilesOracleVirtualBoxVBoxGuestAdditions.iso into ubuntu machine In this post we will understand what happens when you What to do when you can't install guest additions in VirtualBox. Unable to install guest additions in VirtualBox If you can't install it in Virtua

If you have successfully downloaded the installation file of Baidu Netdisk, but cannot install it normally, it may be that there is an error in the integrity of the software file or there is a problem with the residual files and registry entries. Let this site take care of it for users. Let’s introduce the analysis of the problem that Baidu Netdisk is successfully downloaded but cannot be installed. Analysis of the problem that Baidu Netdisk downloaded successfully but could not be installed 1. Check the integrity of the installation file: Make sure that the downloaded installation file is complete and not damaged. You can download it again, or try to download the installation file from another trusted source. 2. Turn off anti-virus software and firewall: Some anti-virus software or firewall programs may prevent the installation program from running properly. Try disabling or exiting the anti-virus software and firewall, then re-run the installation

Installing Android applications on Linux has always been a concern for many users. Especially for Linux users who like to use Android applications, it is very important to master how to install Android applications on Linux systems. Although running Android applications directly on Linux is not as simple as on the Android platform, by using emulators or third-party tools, we can still happily enjoy Android applications on Linux. The following will introduce how to install Android applications on Linux systems.

If you have used Docker, you must understand daemons, containers, and their functions. A daemon is a service that runs in the background when a container is already in use in any system. Podman is a free management tool for managing and creating containers without relying on any daemon such as Docker. Therefore, it has advantages in managing containers without the need for long-term backend services. Additionally, Podman does not require root-level permissions to be used. This guide discusses in detail how to install Podman on Ubuntu24. To update the system, we first need to update the system and open the Terminal shell of Ubuntu24. During both installation and upgrade processes, we need to use the command line. a simple

While studying in high school, some students take very clear and accurate notes, taking more notes than others in the same class. For some, note-taking is a hobby, while for others, it is a necessity when they easily forget small information about anything important. Microsoft's NTFS application is particularly useful for students who wish to save important notes beyond regular lectures. In this article, we will describe the installation of Ubuntu applications on Ubuntu24. Updating the Ubuntu System Before installing the Ubuntu installer, on Ubuntu24 we need to ensure that the newly configured system has been updated. We can use the most famous "a" in Ubuntu system

Many novice friends still don’t know how to install creo, so the editor below brings relevant tutorials on creo installation. Friends in need should take a look at it. I hope it can help you. 1. Open the downloaded installation package and find the License folder, as shown in the figure below: 2. Then copy it to the directory on the C drive, as shown in the figure below: 3. Double-click to enter and see if there is a license file, as shown below As shown in the picture: 4. Then copy the license file to this file, as shown in the following picture: 5. In the PROGRAMFILES file of the C drive, create a new PLC folder, as shown in the following picture: 6. Copy the license file as well Click in, as shown in the figure below: 7. Double-click the installation file of the main program. To install, check the box to install new software.

Detailed steps to install Go language on Win7 computer Go (also known as Golang) is an open source programming language developed by Google. It is simple, efficient and has excellent concurrency performance. It is suitable for the development of cloud services, network applications and back-end systems. . Installing the Go language on a Win7 computer allows you to quickly get started with the language and start writing Go programs. The following will introduce in detail the steps to install the Go language on a Win7 computer, and attach specific code examples. Step 1: Download the Go language installation package and visit the Go official website
