[pve-devel] [PATCH 1/5] vm_start : attach loop devices for non rootfs mountpoint

Alexandre DERUMIER aderumier at odiso.com
Tue Aug 18 06:51:14 CEST 2015


>>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" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>
Cc: "pve-devel" <pve-devel at 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? 



More information about the pve-devel mailing list