• Vagrantfile文件中加入vb.customize即可

    config.vm.provider "virtualbox" do |vb|
     #   # Display the VirtualBox GUI when booting the machine
     #   vb.gui = true
     #
     #   # Customize the amount of memory on the VM:
         vb.memory = "4096"
         vb.cpus = "2"
         vb.name = "ubuntu_192.168.56.2"
         vb.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]
     end
Last modification:February 17, 2022
如果觉得我的文章对你有用,请随意赞赏