VirtualBox の Ubuntu18.04 にネットワーク設定をしたときのメモ。 ブリッジアダプタを追加した後に起動。以下の設定をし再起動する

/etc/netplan/50-cloud-init.yaml

# This file is generated from information provided by
# the datasource.  Changes to it will not persist across an instance.
# To disable cloud-init's network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    ethernets:
        enp0s3:
            addresses: []
            dhcp4: true
            optional: true
+        enp0s8:
+            addresses: []
+            dhcp4: true
+            optional: true
    version: 2