我正在 openvz VPS 上尝试 juj。当我尝试juju 引导程序它说:
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)
但机器日志有一个错误未找到模块 msr和无法使用 kvm 容器: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"
答案1
OpenVZ 不是真正的 VPS,而是一个高级容器。它的优点是价格便宜,因为您无需承担虚拟化开销。然而,这也意味着您能用它做的事情有限。
此限制阻止您创建 LXC 容器。具体来说,在这种情况下,问题之一是 msr 内核模块未加载,并且您没有权限加载它。
在基于容器的虚拟服务器上,这很正常,因为内核在所有虚拟服务器之间共享。能够更改内核将是一个非常大的安全风险...