1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

minikubeのVMから別VMのディレクトリをマウント

Posted at

前提

Kubernetes実践入門 3.7.3 「ストレージの準備」
がしたい

  • minikubeのvm driverはVirtualBox
  • 別VMもVirtualBox
  • OSはUbuntu19.04

手順

NFSサーバは書籍に書いてあるとおりのセットアップで問題ない

sudo apt update
sudo apt install nfs-kernel-server
sudo mkdir /share
sudo chmod 777 /share
sudo vi /etc/exports
/share *(rw,insecure)

minikubeのVMからマウントするとき別VMのIPアドレスが必要

sudo mount -t nfs <別VMのIP>:/share /mnt/share

このとき別VMのネットワーク設定で、ホストオンリーアダプターを有効化しておき、
上記コマンドではホストオンリーアダプターのIPアドレスを指定する。

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?