warden 安装

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 http://us.archive.ubuntu.com/ubuntu/pool/main/a/aptitude/aptitude_0.4.11.11-1ubuntu10_amd64.deb
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
```

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值