Multipass
Tips
現在選択されているドライバを確認する
$ sudo multipass get local.driver hyperkit
ドライバをVirualBoxに変更
$ sudo multipass set local.driver=virtualbox $ sudo VBoxManage list vms Password: "microk8s-vm" {d90718db-3795-4116-825f-cffe4a2f0fea}
$ VBoxManage list bridgedifs | grep ^Name: Name: en0: Wi-Fi (AirPort) Name: en1: Thunderbolt 1 Name: bridge0 Name: p2p0 Name: awdl0 Name: llw0 $ sudo VBoxManage modifyvm microk8s-vm --nic2 bridged --bridgeadapter2 en0
- インスタンスを立ち上げて新しいNICの名前(enp0s8)を得る
$ multipass exec microk8s-vm ip link | grep DOWN 3: enp0s8: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
- 新しいNIC(enp0s8)の設定
multipass exec -- microk8s-vm sudo bash -c "cat > /etc/netplan/60-bridge.yaml" <<EOF network: ethernets: enp0s8: # this is the interface name from above dhcp4: true dhcp4-overrides: # this is needed so the default gateway route-metric: 200 # remains with the first interface version: 2 EOF $ multipass exec microk8s-vm sudo netplan apply
© 2006 矢木浩人