[libvirt-users] Hotplug of disk devices in LXC failed with libvirt of version 1.0.2

Gao feng gaofeng at cn.fujitsu.com
Mon Jul 15 09:32:06 UTC 2013


On 07/15/2013 05:18 PM, hzguanqiang wrote:
> Hi, Gao Feng
> 
> I've tried what you said, but still exists the problem:
> 
> ubuntu at lxc:~$ vir attach-disk instance-0000002c   /dev/dm-0 sdb
> error: Failed to attach disk
> error: Unable to create device /proc/10366/root/dev/sdb: Permission denied
> 
> I think finding what it means by saying 'Unable to create device /proc/10366/root/dev/sdb: Permission denied' is the key. 
> But anyway, thanks for your help!
> 

Do you have <idmap> configured for your lxc domain?
I just posted a patchset to fix the problem that failed to create device when user namespace enabled.

BTW, does it work well if you directly write the configuration to the xml of lxc domain?

Thanks




More information about the libvirt-users mailing list