首页 > vagrant box在linux在打包,但是到了windows上就用不了

vagrant box在linux在打包,但是到了windows上就用不了

有人遇到过类似问题么?

PS: 问题已解决,在Vagrant的官方mailing list 中找到了答案, 因为我的Mac是64位的,而我的windows是32位的,所以导致了如下错误,修复办法为在vagrantfile中做如下修改:

config.vm.provider "virtualbox" do |vb|
  #   # Display the VirtualBox GUI when booting the machine
     vb.gui = false
     vb.customize [ 'modifyvm', :id,
     "--hwvirtex", "off",
     '--cpus', 1,
     '--memory', 800,
     '--nicpromisc2', 'allow-all']
  #
  #   # Customize the amount of memory on the VM:
  #   vb.memory = "1024"
   end

Provider 是 virtualbox 吗?
如果是的话,请检查一下虚拟机是不是可以正常启动。方法有两个:

方法1. 在 Vagrantfile 中增加如下内容,然后 vagrant up

rubyconfig.vm.provider "virtualbox" do |vb|
  vb.gui = true
end

方法2. 打开机器上的 Virtualbox 软件, 然后直接启动。

多唠叨一下:一般都解决不了… Windows 的同学还会莫名其妙的找不到之前创建的虚拟机(重新 import…),莫名其妙的不能启动 Virtualbox。

【热门文章】
【热门文章】