LoginSignup
0
0

More than 5 years have passed since last update.

OpenVzコンテナでsshfs

Last updated at Posted at 2014-12-10

参考

ホスト側の設定

ContainerIDを335とする。

hostの/dev/fuseを確認
# ls -l /dev/fuse
crw-rw---T 1 root fuse 10, 229 Dec 10 09:08 /dev/fuse
  • キャラクタ型のデバイス、major: 100, minor:229

ということがわかる。

vzctl set 335 --devices c:10:229:rw --save
vzctl exec 335 mknod /dev/fuse c 10 229

以下追記される。

/etc/pve/openvz/335.conf
+ DEVICES="c:10:229:rw "
要コンテナ再起動
# 再起動しない場合
crw------- 1 root root 10, 229 12月 12 15:50 /dev/fuse
# 再起動後
crw-rw-rw- 1 root root 10, 229 12月 12 15:55 /dev/fuse

コンテナ側

sshfs server1:/srv/ /home/user/sshfs/server1
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0