ユーザ用ツール

サイト用ツール


temporary:vagrant

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
temporary:vagrant [2015/05/14 00:38] clownclowntemporary:vagrant [2025/02/16 13:53] (現在) – 外部編集 127.0.0.1
行 263: 行 263:
 </code> </code>
  
-===== プラグイン「sahara」  =====+===== 追加ディスク =====
  
 +「db01-disk001.vdi」という5GBのファイルを作成して、アタッチする。
 +
 +<code>
 +Vagrant.configure(2) do |config|
 +  config.vm.define :db01 do |node|
 +    node.vm.box = "chef/centos-6.6"
 +    node.vm.hostname = "db01.dev"
 +    node.vm.network "private_network", ip: "192.168.56.211"
 +    
 +    node.vm.provider "virtualbox" do |vm|
 +      ext_disk = 'db01-disk001.vdi'
 +      unless File.exists?(ext_disk)
 +        vm.customize ['createhd', '--filename', ext_disk, '--size', 5 * 1024]
 +      end
 +      vm.customize ['storageattach', :id,
 +                    '--storagectl', 'IDE Controller',
 +                    '--port',       1, 
 +                    '--device',     0, 
 +                    '--type',       'hdd', 
 +                    '--medium',     ext_disk]
 +    end
 +  end
 +end
 +</code>
 +
 +===== プラグイン「sahara」  =====
 ==== インストール  ==== ==== インストール  ====
 <code> <code>
行 402: 行 428:
  
 <code> <code>
-# yum install gcc +/etc/init.d/vboxadd setup 
-# yum install perl +Removing existing VirtualBox non-DKMS kernel modules        OK  ] 
-# yum install kernel-devel-2.6.32-504.16.2.el6.x86_64+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                   [FAILED] 
 +(Look at /var/log/vboxadd-install.log to find out what went wrong) 
 +Doing non-kernel setup of the Guest Additions              [  OK  ] 
 +</code> 
 + 
 +<code> 
 +# yum -y install gcc perl kernel-devel-2.6.32-504.23.4.el6.x86_64
 # /etc/init.d/vboxadd setup # /etc/init.d/vboxadd setup
 </code> </code>
temporary/vagrant.1431563886.txt.gz · 最終更新: 2025/02/16 13:50 (外部編集)