0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu ServerをVirtual Boxでインストールした時にすること

0
Posted at

はじめに

Ubuntu ServerをVirtual Boxにインストールした時にすることの備忘録です。

インストール前

ネットワークのアダプター2に「ホストオンリーアダプター」を追加する。

インストール後

タイムゾーンを変更する

sudo timedatectl set-timezone 'Asia/Tokyo'

アダプター2を固定IPに変更する

$ cd /etc/netplan
$ ls
50-cloud-init.yaml
$ sudo cat 50-cloud-init.yaml
network:
  version: 2
  ethernets:
    enp0s3:
      dhcp4: true
    enp0s8:
      dhcp4: true

50-cloud-init.yamlを以下のように変更すると、192.168.56.200に固定される。

network:
  version: 2
  ethernets:
    enp0s3:
      dhcp4: true
    enp0s8:
      dhcp4: false
      addresses:
        - 192.168.56.200/24

変更後、以下のコマンドを実行する。

$ sudo netplan apply
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?