воскресенье, 4 января 2015 г.

Не удается примонтировать Яндекс.Диск через webdav в VPS

# mount -t davfs https://webdav.yandex.ru /mnt/yandex.disk/
Please enter the username to authenticate with server
https://webdav.yandex.ru or hit enter for none.
  Username: username
Please enter the password to authenticate user username with server
https://webdav.yandex.ru or hit enter for none.
  Password:  pass
/sbin/mount.davfs: can't open fuse device
/sbin/mount.davfs: trying coda kernel file system
/sbin/mount.davfs: no free coda device to mount

1. Проверяем, загружен ли модуль fuse на хост-ноде:
# lsmod | grep fuse
fuse                   92980  0
если ничего не выводится, то его надо включить:
# modprobe fuse

2. Дать доступы контейнеру:
# vzctl set $CTID --devnodes fuse:rw --save
# vzctl set $CTID --devices c:10:229:rw --save

После этого перезагрузить VPS, и попробовать смонтировать заново:
# vzctl restart $CTID
# mount -t davfs https://webdav.yandex.ru /mnt/yandex.disk/

Комментариев нет: