temporary:vagrant
                差分
このページの2つのバージョン間の差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
| temporary:vagrant [2014/01/20 09:01] – 外部編集 127.0.0.1 | temporary:vagrant [2025/02/16 13:53] (現在) – 外部編集 127.0.0.1 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ====== Contents  | ||
| - | |||
| ====== vagrant  | ====== vagrant  | ||
| 行 265: | 行 263: | ||
| </ | </ | ||
| - | ===== プラグイン「sahara」   | + | ===== 追加ディスク  | 
| + | 「db01-disk001.vdi」という5GBのファイルを作成して、アタッチする。 | ||
| + | |||
| + | < | ||
| + | Vagrant.configure(2) do |config| | ||
| + | config.vm.define :db01 do |node| | ||
| + |     node.vm.box = " | ||
| + |     node.vm.hostname = " | ||
| + |     node.vm.network " | ||
| + |      | ||
| + |     node.vm.provider " | ||
| + |       ext_disk = ' | ||
| + |       unless File.exists? | ||
| + |         vm.customize [' | ||
| + | end | ||
| + |       vm.customize [' | ||
| + |                     ' | ||
| + |                     ' | ||
| + |                     ' | ||
| + |                     ' | ||
| + |                     ' | ||
| + | end | ||
| + | end | ||
| + | end | ||
| + | </ | ||
| + | |||
| + | ===== プラグイン「sahara」  | ||
| ==== インストール  | ==== インストール  | ||
| < | < | ||
| 行 383: | 行 407: | ||
| VM, run `vagrant status NAME`. | VM, run `vagrant status NAME`. | ||
| + | ===== Tips ===== | ||
| + | ==== Failed to mount folders  | ||
| + | |||
| + | < | ||
| + | ==> cen: Mounting shared folders... | ||
| + |     cen: /vagrant => C:/ | ||
| + | Failed to mount folders in Linux guest. This is usually because | ||
| + | the " | ||
| + | the guest additions are properly installed in the guest and | ||
| + | can work properly. The command attempted was: | ||
| + | |||
| + | mount -t vboxsf -o uid=`id -u vagrant`, | ||
| + | vagrant /vagrant | ||
| + | mount -t vboxsf -o uid=`id -u vagrant`, | ||
| + | |||
| + | The error output from the last command was: | ||
| + | |||
| + | / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | # / | ||
| + | Removing existing VirtualBox non-DKMS kernel modules  | ||
| + | Building the VirtualBox Guest Additions kernel modules | ||
| + | The headers for the current running kernel were not found. If the following | ||
| + | module compilation fails then this could be the reason. | ||
| + | The missing package can be probably installed with | ||
| + | yum install kernel-devel-2.6.32-504.23.4.el6.x86_64 | ||
| + | |||
| + | Building the main Guest Additions module  | ||
| + | (Look at / | ||
| + | Doing non-kernel setup of the Guest Additions  | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | # yum -y install gcc perl kernel-devel-2.6.32-504.23.4.el6.x86_64 | ||
| + | # / | ||
| + | </ | ||
temporary/vagrant.1390208500.txt.gz · 最終更新: 2025/02/16 13:50 (外部編集)
                
                