Skip to content

Instantly share code, notes, and snippets.

@dodola
Created November 13, 2022 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dodola/e901cc89ac24abd115741742835f5618 to your computer and use it in GitHub Desktop.
Save dodola/e901cc89ac24abd115741742835f5618 to your computer and use it in GitHub Desktop.
Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/jammy64"
config.vm.provider "virtualbox" do |vb|
vb.memory = 8192
vb.cpus = 2
end
end
@dodola
Copy link
Author

dodola commented Nov 13, 2022

使用方法:

  1. 安装virtualbox 和 vagrant 工具,可以参照 https://github.com/hashicorp/vagrant
  2. 保存这个文件到一个文件夹中
  3. 在这个文件夹下执行 vagrant up 会自动创建好虚拟机
  4. 使用vagrant ssh 进入虚拟机
    虚拟机配置是2核8g 上面的参数可以修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment