Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9261633
  • 博文数量: 1669
  • 博客积分: 16831
  • 博客等级: 上将
  • 技术积分: 12594
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 07:23
个人简介

柔中带刚,刚中带柔,淫荡中富含柔和,刚猛中荡漾风骚,无坚不摧,无孔不入!

文章分类

全部博文(1669)

文章存档

2023年(4)

2022年(1)

2021年(10)

2020年(24)

2019年(4)

2018年(19)

2017年(66)

2016年(60)

2015年(49)

2014年(201)

2013年(221)

2012年(638)

2011年(372)

分类: 云计算

2014-05-30 10:17:02

warden 安装

分类: CloudFoundry 59人阅读 评论(0) 收藏 举报

warden的安装方法 只需要参考 warden的帮助文档:getting_started.ubuntu.md

第一次安装后,启动warden,进入命令行成功,但是执行任何命令都是失败的。

错误信息:

  file=mnt/dev/tty
mknod -m 666 $file c 5 0
chown root:tty $file    

在这些mknod的时候一直报找到不到 文件 mnt/dev/tty. 

仔细研究了一下warden的源码 :正常情况下 /tmp/warden/rootfs  这个目录下是应该存在一个 完整的root fs ,但是发现自己的安装目录缺少一些,检查安装过程,发现执行脚本

             sudo bundle exec rake setup[config/linux.yml]

需要很长时间,需要下载很多文件,之前,这边还没有下载完,就开始启动warden,报错。。。。

。 

Retrieving aptitude
I: Validating aptitude
W: Retrying failed download of 
I: Retrieving aptitude
I: Validating aptitude
I: Retrieving base-files
I: Validating base-files
I: Retrieving base-passwd
I: Validating base-passwd
I: Retrieving bash
I: Validating bash
I: Retrieving bsdutils
I: Validating bsdutils
I: Retrieving busybox-initramfs
I: Validating busybox-initramfs
I: Retrieving bzip2
I: Validating bzip2

 

 

附件:

## Install the right kernel

If you are running Ubuntu 10.04 (Lucid), make sure the backported Natty
kernel is installed. After installing, reboot the system before
continuing.

```
sudo apt-get install -y linux-image-generic-lts-backport-natty
```

## Install dependencies

```
sudo apt-get install -y build-essential
sudo apt-get install -y debootstrap
sudo apt-get install -y quota
```

## Setup Warden

Run the setup routine, which compiles the C code bundled with Warden and
sets up the base file system for Linux containers.

```
sudo bundle exec rake setup[config/linux.yml]
```

> If `sudo` complains that `bundle` cannot be found, try `sudo
> env PATH=$PATH` to pass your current `PATH` to the `sudo` environment.

The setup routine sets up the file system for the containers at the directory
path specified under the key: `server -> container_rootfs_path` in the
config file: config/linux.yml.

## Run Warden

```
sudo bundle exec rake warden:start[config/linux.yml]
```

## Interact with Warden

```
bundle exec bin/warden
```

阅读(686) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~