How can I create a VM in Vagrant with VirtualBox with two CPUs?

后端 未结 3 1555
耶瑟儿~
耶瑟儿~ 2021-01-31 01:31

On Windows 7 64 bit trying to start up a VM (Ubuntu 32 bit). I\'m having trouble getting my VM to show two cores despite adding the modify vm command in my Vagrantf

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-31 01:49

    It seems you have not mentioned which provider you are using. As of Vagrant 1.7 many VM providers (such as VirtualBox, HyperV) supports the following configuration in your Vagrantfile:

    config.vm.provider "virtualbox" do |v|
      v.memory = 1024
      v.cpus = 2
    end
    

    Check out the specific provider you are using in the vagrant documentation.

提交回复
热议问题