`
wuhuizhong
  • 浏览: 684356 次
  • 性别: Icon_minigender_1
  • 来自: 中山
社区版块
存档分类
最新评论

Getting Started with Vagrant on Windows

 
阅读更多

安装MsysGit

 

安装Vagrant

使用vagrant

进入Git CMD

 

输入命令初始化
F:\vm\test>vagrant init ubuntu/trusty64
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.

 

启动虚拟机

F:\vm\test>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/trusty64' could not be found. Attempting to find and in
stall...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'ubuntu/trusty64'
    default: URL: https://atlas.hashicorp.com/ubuntu/trusty64
==> default: Adding box 'ubuntu/trusty64' (v20151021.0.0) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/20151021.0.0/providers/virtualbox.box
    default: Progress: 100% (Rate: 465k/s, Estimated time remaining: --:--:--)
==> default: Successfully added box 'ubuntu/trusty64' (v20151021.0.0) for 'virtualbox'!
==> default: Importing base box 'ubuntu/trusty64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: Setting the name of the VM: test_default_1446369912024_55763
==> 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: Forwarding ports...
    default: 22 => 2222 (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: Connection timeout. 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 installedon
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 4.3.10
    default: VirtualBox Version: 5.0
==> default: Mounting shared folders...
    default: /vagrant => F:/vm/test
   
These base boxes live in your %userprofile%/.vagrant.d/boxes folder.
You can list all installed boxes by typing vagrant box list.
You can delete boxes with vagrant box remove box/name

 

F:\vm\test>vagrant box list
ubuntu/trusty64 (virtualbox, 20151021.0.0)

分享到:
评论

相关推荐

    Pro.Vagrant.1484200748

    Chapter 1: Getting Started with Vagrant Chapter 2: Four Web Frameworks in Four Minutes Chapter 3: The States of VM Chapter 4: Default Configuration and Security Settings of the Guest VM Chapter 5: ...

    Hands-On DevOps with Vagrant azw3

    Title: Hands-On DevOps with Vagrant Author: Alex Braunton Length: 232 pages Edition: 1 Language: English Publisher: Packt Publishing Publication Date: 2018-10-17 ISBN-10: 1789138051 ISBN-13: ...

    Data Wrangling with JavaScript

    With a growing ecosystem of tools and libraries available, and the flexibility to run on many platforms (web, desktop and mobile), JavaScript is a terrific ...Appendix C Getting started with Vagrant

    windows-2016-vagrant, Windows Server 2016/10/20 19 Vagrant.zip

    windows-2016-vagrant, Windows Server 2016/10/20 19 Vagrant 这是一个 Windows Server 2016基地Vagrant使用包装机。用法安装 VirtualBox,包装机, packer-provisioner-windows-update插件插件和 vagrant 。 如果...

    vagrant 2.2.6 windows + vagrant-centos-7.zip

    "vagrant 2.2.6 windows + vagrant-centos-7.zip"的标题表明我们将讨论如何在Windows系统上安装Vagrant 2.2.6,并导入一个预配置的CentOS 7虚拟机镜像。 首先,`vagrant_2.2.6_x86_64.msi`是Vagrant 2.2.6的Windows...

    vagrant 2.2.0 windows_64位

    vagrant_2.2.0_x86_64.msi Vagrant for windows 64位最新版 管理虚拟机环境的工具 官网原版

    Creating Development Environments with Vagrant(PACKT,2ed,2015)

    Vagrant is an open source ...Finally, you’ll gain an insight into Vagrant Cloud, which is a suite of web services built into Vagrant that allows you to remotely view applications on a Vagrant instance.

    vagrant安装包2.2.19 windows

    这个安装包将帮助用户在Windows上搭建Vagrant环境,以便进一步安装和配置Homestead,这是一个预设的Vagrant Box,专为Laravel框架的开发而设计。 首先,让我们详细了解一下Vagrant。Vagrant是由HashiCorp公司开发的...

    vagrant-windows-update:用于安装Windows更新的Vagrant插件

    Vagrant Windows Update供应商 这是一个Vagrant插件,用于安装Windows更新。 注意:此功能仅在Vagrant 2.0.3和Windows Server 2016中进行了测试。...vagrant provision --provision-with windows-update 要进行

    Pro Vagrant(Apress,2015)

    This book will take you from basic usage and getting started, to provisioning with Shell, Puppet, and Chef. You will see how to use Vagrant in real-life scenarios, so that you can start to use ...

    最新版windows vagrant_2.2.9_x86_64.zip

    这个压缩包 "windows vagrant_2.2.9_x86_64.zip" 包含了 Vagrant 的安装文件 "vagrant_2.2.9_x86_64.msi",用于在 Windows 操作系统上安装此工具。 1. **Vagrant 简介**: Vagrant 是基于 Ruby 开发的,它通过提供...

    最新版vagrant_2.2.19_x86_64位 Windows安装包.zip

    这个“最新版vagrant_2.2.19_x86_64位 Windows安装包.zip”是专为64位Windows系统设计的Vagrant 2.2.19版本的安装压缩包,旨在简化在Windows平台上部署和操作虚拟机的过程。 Vagrant的核心概念是基于Box的虚拟化,...

    vagrant-Windows7-IE9:Vagrant-windows 7

    流浪者-Windows7-IE9 带有 Internet Explorer 的 Windows 7 ###使用步骤启动: vagrant up SUSPEND: vagrant suspend 恢复(从之前的暂停状态): vagrant resume 停止: vagrant halt DESTROY(删除下载的框): ...

    Windows版64位 vagrant_2.2.5_x86_64.zip

    这个“Windows版64位 vagrant_2.2.5_x86_64.zip”文件是专为Windows操作系统设计的64位Vagrant 2.2.5版本的安装包。下面我们将详细探讨Vagrant的核心功能、工作原理以及如何在Windows环境下安装和使用Vagrant。 1. ...

    vagrant-windows-domain:连接并从域中删除Windows Vagrant框

    流浪汉Windows域插件 一个Vagrant插件,使您将Windows Vagrant框与Windows域的连接和断开连接变得轻而易举。 在vagrant up -除非提供凭据,否则它将提示用户输入其域凭据,并将来宾添加到域中,包括在不干扰其他配置...

    vagrant-windows-sysprep:作为配置步骤运行Windows sysprep的Vagrant插件

    Vagrant Windows Sysprep预配器 这是sysprep Windows的Vagrant插件。 注意仅在Vagrant 2.2.7,Windows Server 2016/2019和Windows 10 1809上进行了测试。 安装 vagrant plugin install vagrant-windows-sysprep ...

    sample-vagrant-windows

    属性钥匙类型描述默认['sample-vagrant-windows']['培根'] 布尔值是否包括培根真的用法sample-vagrant-windows::default 在节点的run_list包含sample-vagrant-windows : { " run_list " : [ " recipe[sample-...

Global site tag (gtag.js) - Google Analytics