我正在尝试为 LXC 创建一个新的配置文件。
我这样做了;
root@nagri:/home/nagri# curl -s -k --cert ~/.config/lxc/client.crt --key ~/.config/lxc/client.key -X POST -d '{
"name": "testing",
"description": "Some description string",
"config": {
"limits.memory": "2GB"
},
"devices": {
"kvm": {
"type": "unix-char",
"path": "/dev/kvm"
}
}
}' https://localhost:8443/1.0/profiles/testing | jq .
{
"type": "sync",
"status": "Success",
"status_code": 200,
"metadata": null
}
输出是成功的,但profile
实际上没有被创建。
root@nagri:/home/nagri# curl -s --unix-socket /var/lib/lxd/unix.socket a/1.0/profiles -X GET | jq
{
"type": "sync",
"status": "Success",
"status_code": 200,
"metadata": [
"/1.0/profiles/docker",
"/1.0/profiles/lxd-nginx"
]
}
日志也不显示任何错误或警告。 /var/log/lxd/lxd.log
t=2016-09-07T16:22:18+0530 lvl=info msg=handling ip=127.0.0.1:49796 method=POST url=/1.0/profiles/testing
我犯了什么罪?请帮忙。