syqhcc
V2EX  ›  Vagrant

vagrant up 报错,不得已来此请教。

  •  
  •   syqhcc · Jan 20, 2015 · 8944 views
    This topic created in 4142 days ago, the information mentioned may be changed or developed.
    OverlordsMac:centos7 a$ vagrant up
    Bringing machine 'default' up with 'virtualbox' provider...
    ==> default: Importing base box 'centos7'...
    ==> default: Matching MAC address for NAT networking...
    ==> default: Setting the name of the VM: centos7_default_1413296838672_81673
    ==> default: Fixed port collision for 22 => 2222. Now on port 2200.
    ==> default: Clearing any previously set network interfaces...
    ==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    ==> default: Forwarding ports...
    default: 22 => 2200 (adapter 1)
    ==> default: Booting VM...
    ==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2200
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...

    ==============================================
    此问题折腾一个下午,精疲力尽吐血三升。
    一直启动不了,该怎么办?
    8 replies    2015-02-20 01:34:29 +08:00
    CoX
        1
    CoX  
       Jan 20, 2015 via iPhone
    用VBox直接启动一下看看是不是停在启动界面了
    jiyee
        2
    jiyee  
       Jan 20, 2015 via iPhone
    ==> default: Fixed port collision for 22 => 2222. Now on port 2200.

    会不会因为这个,Vagrantfile指定一下试试
    bengol
        3
    bengol  
       Jan 20, 2015 via iPad
    跟我一样。后来我把它们都删除了
    phpcxy
        4
    phpcxy  
       Jan 20, 2015 via iPad
    GUI,看看有没有报具体错误信息
    emric
        5
    emric  
       Jan 20, 2015
    先确定在 VirtualBox GUI 能不能开机.
    如果出现错误, 将 VirtualBox 退回到 4.3.12 版本.
    因为 4.3.13 及以上版本启用了硬件加速, 部分 Windows 机器并不兼容.
    syqhcc
        6
    syqhcc  
    OP
       Jan 20, 2015
    @emric Thx~。我看过一个帖子,说需要CPU虚拟化。硬件加速是指「CPU虚拟化」吗?
    HowardMei
        7
    HowardMei  
       Jan 21, 2015
    先试试:
    config.vm.boot_timeout = 360
    不行再加上:
    INTNET_NAME = [*('A'..'Z')].sample(8).join
    config.vm.provider "virtualbox" do |virt|
    ## Don't boot with headless mode so we can observe the start up process
    virt.gui = true
    ## Give the virtual machine a name
    #virt.name = config.vm.hostname
    #virt.customize ["modifyvm", :id, "--name", config.vm.hostname]
    ## Use VBoxManage to customize the VM:
    ## Give the internal network/cluster its own namespace to avoid conflicts
    virt.customize ["modifyvm", :id, "--nic2", "intnet", "--intnet2", "#{INTNET_NAME}"]
    ## Fix for slow external network connections
    virt.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
    virt.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
    ## Adjust total ram MB
    virt.customize ["modifyvm", :id, "--memory", 1024]
    ## Adjust video ram MB
    virt.customize ["modifyvm", :id, "--vram", 128]
    ## Adjust number of cpus cores
    virt.customize ["modifyvm", :id, "--cpus", 2]
    ## Adjust CPU utilization cap (percentage)
    virt.customize ["modifyvm", :id, "--cpuexecutioncap", 80]
    end
    elegzg
        8
    elegzg  
       Feb 20, 2015
    @bengol 那不是丢失虚拟机了么?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2691 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 190ms · UTC 15:42 · PVG 23:42 · LAX 08:42 · JFK 11:42
    ♥ Do have faith in what you're doing.