使用uec搭建起eucalyptus的云以后,一个要解决的问题是如何在vm里面安装软件。如果直接登录安装肯定是不行的,因为vm关闭以后就不存在了。
安装的方法主要参考如下的内容:
http://open.eucalyptus.com/participate/wiki/install-tomcat-image
http://open.eucalyptus.com/participate/wiki/modifying-prepackaged-image
mkdir temp-mnt
associate a loop block device to the image ( I assume here that /dev/loop5 is free)
losetup /dev/loop5 root.img
and finally mount it
mount /dev/loop5 temp-mnt
it is probably a good idea to make procfs, dev and sysfs available in
your chrooted environment (this will allow a greater set of tools to
work correctly). To do so:
mount -o bind /proc temp-mnt/proc (这一步是必须的,否则安装java会失败)
mount -o bind /sys temp-mnt/sys
mount -o bind /dev temp-mnt/dev
You now have the image under temp-mnt
and you can copy over
what you want into it. Pay attention to not overfill the image (you can
check with df). If you want to install packages into it, you have few
options:
- chroot temp-mnt
and use apt-get or yum or zypper to install what you want
- you can instruct the package manager program to use a different root (for example both dpkg and rpm uses the --root option)
如果新的系统locale设置有问题,运行apt-get等命令会报错,请参考另一篇文章。
Once your are done modifying the image, you should
must first use 'umount -n temp-mnt/proc'
umount /dev/loop5 (如果umount失败,请参阅另一篇文章)
losetup -d /dev/loop5
分享到:
相关推荐
Eucalyptus的开源实现
Eucalyptus是加利福尼亚大学的Daniel Nurmi等人实现的,是一个用于实现云计算的开源软件基础设施。Eucalyptus是Amazon EC2的一个开源实现,它与EC2的商业服务接口兼容。Eucalyptus是一个面向研究社区的软件框架,它...
云技术开发简洁 Eucalyptus详解
Eucalyptus安装与使用手册,2010.4.30 Eucalyptus 是加利福尼亚大学的 Daniel Nurmi 等人实现的,是一个用于实现云计算的开 源软件基础设施。Eucalyptus 是 Amazon EC2 的一个开源实现,它与 EC2 的商业服务接口兼 容...
eucalyptus安装全过程全新
Eucalyptus安装 Eucalyptus安装 入门 云计算
关于Eucalyptus 3.0.1用户手册
现在有一款开源的项目Eucalyptus(Elastic Utility Computing Architecture for Linking Your Programs To Useful Systems),同样实现了Amazon EC2的功能,由于其开源性,注定了搭建一个私有的云计算平台成为可能.
eucalyptus 最先开源的云计算管理平台,中文安装文档,让你步入云计算 哇哈哈哈哈
NULL 博文链接:https://tingtingego.iteye.com/blog/1206933
一个关于Eucalyptus的中文帮助手册,版本为1.6.2
Eucalyptus的详细安装和详细的配置步骤
云计算之开源Eucalyptus(UEC)入门指南,对于研究开源云平台很有帮助
The Eucalyptus Open-source Cloud-computing System
Eucalyptus2.0云计算平台在Linux上的实现.pdf
Eucalyptus 云平台 Eucalyptus 是用于构建与 Amazon Web Services 兼容的私有云和混合云的开源软件。 要求和技术说明 Eucalyptus 分为五个组件:Cloud Controller、Walrus、Cluster Controller、Storage Controller...
EUCALYPTUS 2.0.2在ECLIPSE下实现修改
EUCALYPTUS 2.0.2在ECLIPSE下实现修改.
CloudStack OpenStack Eucalyptus 比较