| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

Multipass

提供: MyMemoWiki
2020年11月12日 (木) 16:10時点におけるPiroto (トーク | 投稿記録)による版 (→‎ドライバをVirualBoxに変更)
ナビゲーションに移動 検索に移動


Tips

現在選択されているドライバを確認する

  1. $ sudo multipass get local.driver
  2. hyperkit

ドライバをVirualBoxに変更

  1. $ sudo multipass set local.driver=virtualbox
  2. $ sudo VBoxManage list vms
  3. Password:
  4. "microk8s-vm" {d90718db-3795-4116-825f-cffe4a2f0fea}
  1. $ VBoxManage list bridgedifs | grep ^Name:
  2. Name: en0: Wi-Fi (AirPort)
  3. Name: en1: Thunderbolt 1
  4. Name: bridge0
  5. Name: p2p0
  6. Name: awdl0
  7. Name: llw0
  8.  
  9. $ sudo VBoxManage modifyvm microk8s-vm --nic2 bridged --bridgeadapter2 en0
  • インスタンスを立ち上げて新しいNICの名前(enp0s8)を得る
  1. $ multipass exec microk8s-vm ip link | grep DOWN
  2. 3: enp0s8: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
  • 新しいNIC(enp0s8)の設定
  1. multipass exec -- microk8s-vm sudo bash -c "cat > /etc/netplan/60-bridge.yaml" <<EOF
  2. network:
  3. ethernets:
  4. enp0s8: # this is the interface name from above
  5. dhcp4: true
  6. dhcp4-overrides: # this is needed so the default gateway
  7. route-metric: 200 # remains with the first interface
  8. version: 2
  9. EOF
  10. $ multipass exec microk8s-vm sudo netplan apply