尝试在本地环境中使用 juju。这是我的 ~/.juju/environments.yaml 文件:
environments:
sample:
type: local
control-bucket: juju-a14dfae3830142d9ac23c499395c2785999
admin-secret: 6608267bbd6b447b8c90934167b2a294999
default-series: oneiric
juju-origin: distro
data-dir: /home/matteo/juju
路径 /home/matteo/juju 存在。但是当我输入 juju bootstrap 时,输出如下:
2011-10-16 00:07:32,367 INFO Bootstrapping environment 'sample' (type: local)...
2011-10-16 00:07:32,367 INFO Checking for required packages...
2011-10-16 00:07:32,650 INFO Starting networking...
too many values to unpack
2011-10-16 00:07:32,897 ERROR too many values to unpack
提前谢谢了!
编辑:
重新启动我的电脑后,它显示:
2011-10-17 00:02:13,850 INFO Bootstrapping environment 'sample' (type: local)...
2011-10-17 00:02:13,850 INFO Checking for required packages...
2011-10-17 00:02:14,142 INFO Starting networking...
errore: Impossibile avviare la rete default
errore: Requested operation is not valid: network is already active
Command '['virsh', 'net-start', 'default']' returned non-zero exit status 1
2011-10-17 00:02:14,176 ERROR Command '['virsh', 'net-start', 'default']' returned non-zero exit status 1
答案1
两个独立的问题。
libvirt 要求用户属于 libvirt 组。遗憾的是,安装了 libvirt 包的登录 shell/桌面会话在下次登录之前不会激活该组。最简单的做法就是注销/登录。
我们在发布时遇到了一些本地化问题。修复程序
已进入我们的审核队列,本周末应该可以从 ppa 获得。该修复程序已在 PPA 中发布。 https://bugs.launchpad.net/juju/+bug/873335