Cracked Edition Windows 7 (Ultimate Edition) installs and uses the Vagrant Unified development environment

Source: Internet
Author: User

Reference Baidu Experience: http://jingyan.baidu.com/article/ 5553fa82c158bb65a23934be.html, in advance to the Win7 after the three files to restore, otherwise it will lead to VirtualBox start failure, the specific reasons did not delve into, please the small partners to find information on their own.

1. Download and install Oracle VirtualBox

2. Download and install vagrant

3. Download the official box, or the box you have packaged

: http://downloads.vagrantup.com/Follow the prompts step by step installation.

In addition, you have to download the official encapsulated base image:
Ubuntu Precise VirtualBox Http://files.vagrantup.com/precise32.box
Ubuntu Precise VirtualBox Http://files.vagrantup.com/precise64.box

If you want to mirror other systems, you can download them here: http://www.vagrantbox.es/

4. Add box to the local environment that has been downloaded or packaged

Vagrant box Add Mybox path/to/box/precise64.box (where mybox represents the newly defined box name, followed by the box path for download completion)

5. Initialize and start box

Create a startup directory BOXES,CD boxes,vagrant Init mybox,vagrant up

You will see that the terminal shows the start-up process, and after the boot is complete, we can login to the virtual machine with SSH, and the rest of the steps are to configure the various environments and parameters you want to run in the virtual machine.

Vagrant ssh # SSH Login

Cd/vagrant # Switch to the development directory, which is the path/to/boxes on the host

Initialization settings for 6.vagrant

After the Vagrant initialization succeeds, a configuration file is generated in the initialized directory Vagrantfile , which can be customized by modifying the configuration file.

Vagrant By default is to use port mapping method to map the port of the virtual machine locally to achieve similar http://localhost:80 access, this way, it is troublesome to open and modify the port when you have to edit. In comparison, the host-only mode appears to be much more convenient. Open Vagrantfile , remove and save the comments from the following line # :

config.vm.network :private_network, ip: "192.168.33.10"

Restart the virtual machine so that we can 192.168.33.10 access the machine, you can change the IP to another address, as long as there is no conflict on the line.

7. Packaging Unified Box Environment

When you have configured your development environment, exit and shut down the virtual machine. To package the development environment in the terminal:

$ vagrant package

After the package is finished, a file is generated in the current directory package.box , which is passed to other users, and other users can get an identical development environment simply by adding the box and initializing their own development directory.

8. Common Command Collection

$ vagrant init # 初始化 $ vagrant up # 启动虚拟机 $ vagrant halt # 关闭虚拟机 $ vagrant reload # 重启虚拟机 $ vagrant ssh # SSH 至虚拟机 $ vagrant status # 查看虚拟机运行状态 $ vagrant destroy # 销毁当前虚拟机

For more information, please refer to the official documentation http://docs.vagrantup.com/v2/cli/index.html

Cracked Edition Windows 7 (Ultimate Edition) installs and uses the Vagrant Unified development environment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.