ESXiにUbuntu22.04サーバをインストールする

## 概要
自宅サーバにスマホアプリのサーバ側の検証用にUbuntu22.04サーバをインストールしました。環境はESXi6.7.0 Update 3です。

## 手順
1. Ubuntuをダウンロードしてきます。
https://jp.ubuntu.com/download
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/7ba99b91-f008-755f-5a42-ea0aa433ab57.png)

2. データストアにアップロードします。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/cdb64641-7948-22b5-6bcb-5d52ac51ac12.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/49e6a05f-d844-44ff-0d6b-ba7adf466354.png)

3. 新規仮想マシンを作成します。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/6dc95961-d4a7-93f5-d78e-a4bbe8f5472b.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/67f67b58-08f7-df26-c45c-a858943e4291.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/a626108c-4489-855d-b17f-ad514e46e0f9.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/57d9e620-5732-64b4-b28b-d8c6fd5aa7eb.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/2751b05a-b14e-1532-c8b1-3ae7c3b17953.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/ebf71c82-126a-4ad7-47dd-40151ffacc3b.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/a60ec73b-d058-a0bd-3986-c4f200d3f2be.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/88f6748c-0935-fac5-5beb-ca26a8173519.png)

4. 仮想マシンを起動します
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/20daf95f-4c49-7cdd-b126-7e48f798016d.png)
そのまま何もせず待てばカウントが進んでインストールとUbuntuの設定が始まります。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/ed361f55-0464-f28c-fe67-7a4ca9a4128d.png)

5. Ubuntuの設定をしていきます。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/bf9f7b3a-7acc-7ba5-52f5-5ee4ae3f41f9.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/8fb8919d-e014-94c3-c4af-594ee3924ef1.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/d63053d9-1e7a-932b-22ed-e046c267ec58.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/22112d63-7f66-aed2-ff2e-ac458c0645a6.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/c6baefb0-71c8-a9d4-d6a4-7f7592843f95.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/bb68a2a2-beaf-6ff7-ae3d-e17dbede9fe0.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/8943aded-1c5c-dfe5-9a17-48875c478939.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/c2968281-9ab8-0308-f2e6-64802e94d9c9.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/541b7b5f-1c20-b90f-b131-1240eab87ba3.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/db9c84b9-388e-a450-eed4-3b8030cd9aef.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/7337a1f4-2aad-3af1-fcf7-663f389002f2.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/e3831bf6-fca2-df8b-820c-7d0b614ab398.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/ca86fef2-562d-b1cc-c9d8-b0f2958c960a.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/92c5677e-00b2-e155-5e09-37aa169292e3.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/69c28867-db2a-f7d7-5213-e0a1a8559802.png)
この画面でEnterを押すとアップデートが始まります。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/5e289040-3260-4675-8e94-7a3abe3c5e32.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/8ce7de35-dcb2-7de3-3cc6-f9270a0587fd.png)

6. アップデートが完了したら再起動する。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/d59b221d-8999-bcba-fefc-a85e84622c3c.png)
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/d9bf1ca8-7eff-3be6-8ff3-a31a4dc5cbc3.png)

7. 再起動後ログイン出来たらインストール完了です。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/5b9e894d-c3f9-2e0d-4200-575cbaa80dc9.png)

8. 一応pingを打っておきます。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/8fabda8a-e6e6-2704-a086-5b7faae8942e.png)

9. sudo apt updateとsudo apt upgradeを実行しておきます。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/d9d16130-3012-098e-0092-15d63d2a9d2e.png)
sudo apt upgradeをしたときに紫の画面が出てきましたがそのままEnterを押しました。
https://rohhie.net/ubuntu22-04-which-services-should-be-restarted/
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/2744334/9f312186-c1ac-3809-c914-20c47c99d238.png)