UTM

Apple Silicon Mac์—์„œ VM์„ ์‹คํ–‰ํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ด์ฃผ๋Š” UTM์„ ์†Œ๊ฐœํ•ฉ๋‹ˆ๋‹ค.

Ubuntu ์„ค์น˜๋ฒ•

  • ์ด๋ฏธ์ง€ ๋‹ค์šด๋กœ๋“œ
    • x86_64
    • arm64
    • Ubuntu server๊ฐ€ ๊ถŒ์žฅํ•˜๋Š” ์šฉ๋Ÿ‰์„ 25 GB์ž…๋‹ˆ๋‹ค.
sudo apt update

# ssh ์„ค์น˜๋Š” ๊ธฐ๋ณธ
sudo apt install openssh-server
sudo systemctl status ssh

# ssh ๋ฐฉํ™”๋ฒฝ ์„ค์ •
sudo ufw allow ssh
sudo ufw status

# ifconfig ๋ช…๋ น์–ด๊ฐ€ ์—†๋Š” ๊ฒฝ์šฐ
sudo apt install net-tools


# ๊ณต์œ ํด๋” ์„ค์ •
mkdir -p /media/helloworld
cd /media/helloworld
sudo chown -R $USER /media/helloworld
sudo mount -t 9p -o trans=virtio share /media/helloworld -oversion=9p2000.L

# ์žฌ๋ถ€ํŒ…์‹œ์—๋„ ๋งˆ์šดํŠธ๋˜๋„๋ก ์„ค์ •
sudo vim /etc/fstab
share /media/helloworld 9p trans=virtio,version=9p2000.L,rw,_netdev,nofail 0 0
# ๊ทธ๋ž˜ํ”ฝํ™˜๊ฒฝ์ด ํ•„์š”ํ•œ๊ฒฝ์šฐ
sudo apt-get install -y --no-install-recommends ubuntu-desktop
sudo add-apt-repository ppa:mozillateam/ppa

# desktop ๋ชจ๋“œ๋กœ ์ „ํ™˜
startx

ref