>>AFAIK we write the LXC conf file at create time, and when we do 'pct start'.
>>So there is no real need to rewrite it again in pre-start hook?

I don't write it again in pre-start hook.
(I only move activate volumes code to pre-start hook , and keep write lxc 
config in vm_start) : (patch 4/5)



----- Mail original -----
De: "dietmar" <diet...@proxmox.com>
À: "aderumier" <aderum...@odiso.com>
Cc: "pve-devel" <pve-devel@pve.proxmox.com>
Envoyé: Mardi 18 Août 2015 06:32:20
Objet: Re: [pve-devel] [PATCH 1/5] vm_start : attach loop devices for non 
rootfs mountpoint

> I Think I can solve lxc.cgroup.devices.allow, by simply writing 
> /sys/fs/cgroup/devices/lxc/VMID/devices.list 
> in hook. 
> 
> So, I can move the activate part to pre_start hook. 

AFAIK we write the LXC conf file at create time, and when we do 'pct start'. 
So there is no real need to rewrite it again in pre-start hook? 
_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to