使用 Vagrant 给老mac续命

超详细的 Vagrant 上手指南

配置虚拟机

如何在 Ubuntu 20.04/22.04 上安装 Node 版本管理工具 nvm

SSH to Vagrant from VScode

ubuntu升级git

ubuntu安装git并配置SSH Key

vagrantfile 配置文件

config.vm.box = "ubuntu/focal64"


config.vm.network "forwarded_port", guest: 3000, host: 3000

config.vm.synced_folder ".", "/vagrant_data"

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"

end