スポンサーサイト

2018.04.09 Monday
0

    一定期間更新がないため広告を表示しています

    category:- | by:スポンサードリンク | - | - | -

    Vagrantで仮想マシンのメモリサイズを変更する方法

    2017.04.08 Saturday 21:56
    0
      Vagrantで仮想マシンのメモリサイズを変更する方法
      Vagrantfile でMB単位で指定する。以下は2GBに設定した

      Vagrant.configure(2) do |config|
      config.vm.provider "virtualbox" do |vb|
      vb.memory = "2048"
      end
      end
      ↑メモリ割り当てを2Gにしました。

      仮想マシンを起動でメモリサイズ確認。

      -bash-4.2$ free -m
      total used free shared buff/cache available
      Mem: 1840 105 1498 8 236 1599
      Swap: 999 0 999
      -bash-4.2$
      2G割り当てられてました
      category:vagrant | by:ittoocomments(0)trackbacks(0) | -

      windowsで、vagrant環境作成

      2017.03.02 Thursday 22:52
      0
        windowsで、vagrant環境作成

        ★成功パターン
        C:¥vagrant_home¥centos72_machine>cd ../

        C:¥vagrant_home>vagrant box add centos72 C:¥vagrant_home¥vagrant-centos-7.2.box
        ==> box: Box file was not detected as metadata. Adding it directly...
        ==> box: Adding box 'centos72' (v0) for provider:
        box: Unpacking necessary files from: file:///C:/vagrant_home/vagrant-centos-7.2.box
        box: Progress: 100% (Rate: 120M/s, Estimated time remaining: --:--:--)
        The box you're attempting to add already exists. Remove it before
        adding it again or add it with the `--force` flag.

        Name: centos72
        Provider: virtualbox
        Version: 0

        C:¥vagrant_home>vagrant box list
        centos (virtualbox, 0)
        centos72 (virtualbox, 0)

        C:¥vagrant_home>cd centos72_machine

        C:¥vagrant_home¥centos72_machine>vagrant init centos72
        A `Vagrantfile` has been placed in this directory. You are now
        ready to `vagrant up` your first virtual environment! Please read
        the comments in the Vagrantfile as well as documentation on
        `vagrantup.com` for more information on using Vagrant.

        C:¥vagrant_home¥centos72_machine>
        C:¥vagrant_home¥centos72_machine>
        C:¥vagrant_home¥centos72_machine>vagrant up
        Bringing machine 'default' up with 'virtualbox' provider...
        ==> default: Importing base box 'centos72'...
        ==> default: Matching MAC address for NAT networking...
        ==> default: Setting the name of the VM: centos72_machine_default_1488459021404_81388
        ==> default: Clearing any previously set network interfaces...
        ==> default: Preparing network interfaces based on configuration...
        default: Adapter 1: nat
        default: Adapter 2: hostonly
        ==> default: Forwarding ports...
        default: 22 (guest) => 2222 (host) (adapter 1)
        ==> default: Booting VM...
        ==> default: Waiting for machine to boot. This may take a few minutes...
        default: SSH address: 127.0.0.1:2222
        default: SSH username: vagrant
        default: SSH auth method: private key
        default: Warning: Remote connection disconnect. Retrying...
        default: Warning: Remote connection disconnect. Retrying...
        default: Warning: Remote connection disconnect. Retrying...
        default:
        default: Vagrant insecure key detected. Vagrant will automatically replace
        default: this with a newly generated keypair for better security.
        default:
        default: Inserting generated public key within guest...
        default: Removing insecure key from the guest if it's present...
        default: Key inserted! Disconnecting and reconnecting using new SSH key...
        ==> default: Machine booted and ready!
        ==> default: Checking for guest additions in VM...
        default: The guest additions on this VM do not match the installed version of
        default: VirtualBox! In most cases this is fine, but in rare cases it can
        default: prevent things such as shared folders from working properly. If you see
        default: shared folder errors, please make sure the guest additions within the
        default: virtual machine match the version of VirtualBox you have installed on
        default: your host and reload your VM.
        default:
        default: Guest Additions Version: 4.3.30
        default: VirtualBox Version: 5.1
        ==> default: Configuring and enabling network interfaces...
        ==> default: Mounting shared folders...
        default: /vagrant => C:/vagrant_home/centos72_machine

        C:¥vagrant_home¥centos72_machine>
        C:¥vagrant_home¥centos72_machine>
        C:¥vagrant_home¥centos72_machine>vagrant reload
        ==> default: Attempting graceful shutdown of VM...
        ==> default: Clearing any previously set forwarded ports...
        ==> default: Clearing any previously set network interfaces...
        ==> default: Preparing network interfaces based on configuration...
        default: Adapter 1: nat
        default: Adapter 2: hostonly
        ==> default: Forwarding ports...
        default: 22 (guest) => 2222 (host) (adapter 1)
        ==> default: Booting VM...
        ==> default: Waiting for machine to boot. This may take a few minutes...
        default: SSH address: 127.0.0.1:2222
        default: SSH username: vagrant
        default: SSH auth method: private key
        default: Warning: Remote connection disconnect. Retrying...
        default: Warning: Remote connection disconnect. Retrying...
        ==> default: Machine booted and ready!
        ==> default: Checking for guest additions in VM...
        default: The guest additions on this VM do not match the installed version of
        default: VirtualBox! In most cases this is fine, but in rare cases it can
        default: prevent things such as shared folders from working properly. If you see
        default: shared folder errors, please make sure the guest additions within the
        default: virtual machine match the version of VirtualBox you have installed on
        default: your host and reload your VM.
        default:
        default: Guest Additions Version: 4.3.30
        default: VirtualBox Version: 5.1
        ==> default: Configuring and enabling network interfaces...
        ==> default: Mounting shared folders...
        default: /vagrant => C:/vagrant_home/centos72_machine
        default: /home/vagrant => C:/vagrant_home/data
        ==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
        ==> default: flag to force provisioning. Provisioners marked to run always will still run.

        C:¥vagrant_home¥centos72_machine>
        続きを読む >>
        category:vagrant | by:ittoocomments(0)trackbacks(0) | -

        ad
        Calender
          12345
        6789101112
        13141516171819
        20212223242526
        2728293031  
        << May 2018 >>
        Selected entry
        PR
        Category
        Archives
        Recent comment
        • 円マークが自動変換されてる
          aaaaaa
        • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
          66hills
        • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
          ssd
        • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
          max
        • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
          DOM
        • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
          DOM
        • コンピュータ業界の根本的な変化
          cloud
        • コンピュータ業界の根本的な変化
          Dellの仮想化
        • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
          えちごや
        • マクドナルドでYahoo BBモバイルポイント 公衆無線LANサービスがつながらない
          touch
        Recent trackback
        • スマートフォンの法人活用例
          無線LANネットのブログ
        • Yahoo!オークションからのアフィリエイト収入が一気に70%減になってしまい涙目になってる話
          特選情報
        Recommend
        Link
        Profile
        Search
        Others
        Mobile
        qrcode
        Powered
        無料ブログ作成サービス JUGEM