[pve-devel] [Feature request] add disk for lxc from the API and WebUI

lyt_yudi lyt_yudi at icloud.com
Thu Nov 12 16:01:19 CET 2015


hi,all

current, add disk for the lxc from cli. like this

# cat /etc/pve/lxc/100.conf
arch: amd64
cpulimit: 2
cpuunits: 1024
hostname: test
memory: 2048
net0: bridge=vmbr0,hwaddr=F2:07:24:D6:DE:28,ip=172.16.1.100/12,name=eth0,type=veth
onboot: 1
ostype: centos
rootfs: local:100/vm-100-disk-1.raw,size=16G
swap: 2048
lxc.mount.entry: /dev/sdb dev/sdb none bind,mode=1777,create=file 0 0
lxc.mount.entry: /dev/sdc dev/sdc none bind,mode=1777,create=file 0 0
lxc.mount.entry: /dev/sdd dev/sdd none bind,mode=1777,create=file 0 0
lxc.mount.entry: /dev/sde dev/sde none bind,mode=1777,create=file 0 0
lxc.cgroup.devices.allow: b 8:16 rwm
lxc.cgroup.devices.allow: b 8:32 rwm
lxc.cgroup.devices.allow: b 8:48 rwm
lxc.cgroup.devices.allow: b 8:60 rwm 

if can add like this feature, pretty good!

Whether the planned? 

thanks .

lyt_yudi
lyt_yudi at icloud.com



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20151112/498c25a3/attachment.htm>


More information about the pve-devel mailing list