[Lxc-users] LXC and NFS
Trent W. Buck
twb at cybersource.com.au
Fri Jan 7 07:09:41 UTC 2011
I have a working Ubuntu 10.04 host (2.6.32) and guest, using lxc 0.7.3.
When I add this line:
lxc.mount.entry = fs:/home /srv/lxc/luger/home nfs intr,bg
I get this error:
root at omega:~# lxc-start -n luger -f /etc/lxc/luger.conf
lxc-start: Invalid argument - failed to mount 'fs:/home' on '/srv/lxc/luger/home'
lxc-start: failed to setup the mount entries for 'luger'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'luger'
I guess NFS isn't supported by lxc yet? I wish it was.
This workaround (bind mounts) works:
root at omega:~# mount -oro fs:/home /tmp/home
root at omega:~# grep home /etc/lxc/luger.conf
# lxc.mount.entry = /home /srv/lxc/luger/home none bind
lxc.mount.entry = /tmp/home /srv/lxc/luger/home none bind,ro
root at omega:~# lxc-start -n luger -f /etc/lxc/luger.conf
More information about the lxc-users
mailing list