我正在 openvz VPS 上尝试 juj。当我尝试juju bootstrap时,它说:
uploading tools for series [precise trusty]
Logging to /home/danialbehzadi/.juju/local/cloud-init-output.log on remote host
Bootstrapping Juju machine agent
Starting Juju machine agent (juju-agent-danialbehzadi-local)
但是机器日志有一个关于Module msr not found和no kvm container possible的错误:http : //paste.ubuntu.com/9505262/
juju 状态如何:
environment: local
machines:
"0":
agent-state: started
agent-version: 1.20.14.1
dns-name: localhost
instance-id: localhost
series: trusty
state-server-member-status: has-vote
services: {}
例如,如果我输入:
juju部署wordpress
juju 状态将更改为:
environment: local
machines:
"0":
agent-state: started
agent-version: 1.20.14.1
dns-name: localhost
instance-id: localhost
series: trusty
state-server-member-status: has-vote
"1":
agent-state-info: 'error executing "lxc-create": lxc: call to cgmanager_move_pid_abs_sync(freezer)
failed: invalid request; Container already exists'
instance-id: pending
series: trusty
services:
wordpress:
charm: cs:trusty/wordpress-1
exposed: false
relations:
loadbalancer:
- wordpress
units:
wordpress/0:
agent-state: pending
machine: "1"
OpenVZ 不是真正的 VPS,而是一个高级容器。这具有便宜的优点,因为您没有虚拟化开销。然而,这也意味着你能用它做的事情是有限的。
此限制会阻止您创建 LXC 容器。具体在这种情况下,问题之一是没有加载 msr 内核模块,并且您没有加载它的权限。
这在基于容器的虚拟服务器上是很正常的,因为内核在所有虚拟服务器之间共享。能够更改内核将是一个非常大的安全风险......