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>
    ★ここからはいろいろとエラーでてたパターン
    C:¥vagrant_home>vagrant box add vagrant-centos-7.2.box
    ==> box: Box file was not detected as metadata. Adding it directly...
    A name is required when adding a box file directly. Please pass
    the `--name` parameter to `vagrant box add`. See
    `vagrant box add -h` for more help.

    C:¥vagrant_home>
    C:¥vagrant_home>
    C:¥vagrant_home>vagrant box add C:¥vagrant_home¥vagrant-centos-7.2.box
    ==> box: Box file was not detected as metadata. Adding it directly...
    A name is required when adding a box file directly. Please pass
    the `--name` parameter to `vagrant box add`. See
    `vagrant box add -h` for more help.

    C:¥vagrant_home>vagrant box add vagrant-centos-7.2.box --name centos72
    ==> 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: 92.3M/s, Estimated time remaining: --:--:--)
    ==> box: Successfully added box 'centos72' (v0) for 'virtualbox'!

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

    C:¥vagrant_home>
    C:¥vagrant_home>cd centos72_machine

    C:¥vagrant_home¥centos72_machine>
    C:¥vagrant_home¥centos72_machine>
    C:¥vagrant_home¥centos72_machine>vagrant init centos72_machine
    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>vagrant up
    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Box 'centos72_machine' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
    ==> default: Box file was not detected as metadata. Adding it directly...
    ==> default: Adding box 'centos72_machine' (v0) for provider: virtualbox
    default: Downloading: centos72_machine
    default:
    An error occurred while downloading the remote file. The error
    message, if any, is reproduced below. Please fix this error and try
    again.

    Couldn't open file /C:/vagrant_home/centos72_machine/centos72_machine

    C:¥vagrant_home¥centos72_machine>cd ..

    C:¥vagrant_home>
    C:¥vagrant_home>vagrant up
    A Vagrant environment or target machine is required to run this
    command. Run `vagrant init` to create a new Vagrant environment. Or,
    get an ID of a target machine from `vagrant global-status` to run
    this command on. A final option is to change to a directory with a
    Vagrantfile and to try again.

    C:¥vagrant_home>
    C:¥vagrant_home>cd centos72_machine

    C:¥vagrant_home¥centos72_machine>rm Vagrantfile
    'rm' は、内部コマンドまたは外部コマンド、
    操作可能なプログラムまたはバッチ ファイルとして認識されていません。

    C:¥vagrant_home¥centos72_machine>vagrant box add centos C:¥vagrant_home¥vagrant-centos-7.2.box
    ==> box: Box file was not detected as metadata. Adding it directly...
    ==> box: Adding box 'centos' (v0) for provider:
    box: Unpacking necessary files from: file:///C:/vagrant_home/vagrant-centos-7.2.box
    box: Progress: 100% (Rate: 105M/s, Estimated time remaining: --:--:--)
    ==> box: Successfully added box 'centos' (v0) for 'virtualbox'!

    C:¥vagrant_home¥centos72_machine>vagrant up
    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Box 'centos72_machine' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
    ==> default: Box file was not detected as metadata. Adding it directly...
    ==> default: Adding box 'centos72_machine' (v0) for provider: virtualbox
    default: Downloading: centos72_machine
    default:
    An error occurred while downloading the remote file. The error
    message, if any, is reproduced below. Please fix this error and try
    again.

    Couldn't open file /C:/vagrant_home/centos72_machine/centos72_machine

    C:¥vagrant_home¥centos72_machine>vagrant up
    A Vagrant environment or target machine is required to run this
    command. Run `vagrant init` to create a new Vagrant environment. Or,
    get an ID of a target machine from `vagrant global-status` to run
    this command on. A final option is to change to a directory with a
    Vagrantfile and to try again.

    C:¥vagrant_home¥centos72_machine>
    C:¥vagrant_home¥centos72_machine>
    C:¥vagrant_home¥centos72_machine>vagrant box add centos C:¥vagrant_home¥vagrant-centos-7.2.box
    ==> box: Box file was not detected as metadata. Adding it directly...
    ==> box: Adding box 'centos' (v0) for provider:
    box: Unpacking necessary files from: file:///C:/vagrant_home/vagrant-centos-7.2.box
    box: Progress: 100% (Rate: 95.1M/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: centos
    Provider: virtualbox
    Version: 0

    C:¥vagrant_home¥centos72_machine>
    C:¥vagrant_home¥centos72_machine>
    C:¥vagrant_home¥centos72_machine>vagrant up
    A Vagrant environment or target machine is required to run this
    command. Run `vagrant init` to create a new Vagrant environment. Or,
    get an ID of a target machine from `vagrant global-status` to run
    this command on. A final option is to change to a directory with a
    Vagrantfile and to try again.

    C:¥vagrant_home¥centos72_machine>
    C:¥vagrant_home¥centos72_machine>vagrant init centos72_machine
    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: Box 'centos72_machine' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
    ==> default: Box file was not detected as metadata. Adding it directly...
    ==> default: Adding box 'centos72_machine' (v0) for provider: virtualbox
    default: Downloading: centos72_machine
    default:
    An error occurred while downloading the remote file. The error
    message, if any, is reproduced below. Please fix this error and try
    again.

    Couldn't open file /C:/vagrant_home/centos72_machine/centos72_machine
    category:vagrant | by:ittoocomments(0)trackbacks(0) | -

    スポンサーサイト

    2019.09.17 Tuesday 22:52
    0
      category:- | by:スポンサードリンク | - | - | -
      Comment








         
      Trackback
      この記事のトラックバックURL

      ad
      Calender
      1234567
      891011121314
      15161718192021
      22232425262728
      2930     
      << September 2019 >>
      Selected entry
      PR
      Category
      Archives
      Recent comment
      • パス指定 SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-4: truncated ¥xXX escape
        久米隆文
      • 円マークが自動変換されてる
        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サービスがつながらない
        えちごや
      Recent trackback
      • スマートフォンの法人活用例
        無線LANネットのブログ
      • Yahoo!オークションからのアフィリエイト収入が一気に70%減になってしまい涙目になってる話
        特選情報
      Recommend
      Link
      Profile
      Search
      Others
      Mobile
      qrcode
      Powered
      無料ブログ作成サービス JUGEM