MultipassでUbuntu 22.04 LTSを起動しようとすると、エラーが出る。
【エラー文】
「launch failed: Could not start VM: VBoxManage.exe: error: UUID {93c4b138-8354-4f94-a906-9e039d73a4a8} of the medium 'C:\ProgramData\Multipass\data\virtualbox\vault\instances\linux-study\ubuntu-22.04-server-cloudimg-amd64.vdi' does not match the value {0dcf5f73-87f6-4160-baae-64e601103e25} stored in the media registry ('C:\Windows\system32\config\systemprofile\.VirtualBox\VirtualBox.xml')
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MediumWrap, interface IMedium
Waiting for VM "linux-study" to power on...」や
「launch failed: Could not generate a new UUID: Process operation timed out」
などのエラーが確認できました。
解決方法
【手順1】
![スクリーンショット (53).png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F3631159%2F1c086592-1f79-e5eb-0343-43be8c067815.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=0e58f5a28aa7ebc2dd29d3b31ec56ae2)
タスクバー上のネットワークを表示する項目から、接続しているネットワークを選択してください。
【手順2】
![スクリーンショット (54).png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F3631159%2F2705ade0-91c7-b0a5-7484-c69a7482b94e.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=e54d4e87e8f82c08a3a7b04ed7edf746)
「関連設定」→「アダプターのオプションを変更する」を選択します。
【手順3】
![スクリーンショット (55).png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F3631159%2F1f2e521d-261d-cddc-803e-bd46f871a4da.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=1c633c79311f2527aed7cb2bb8a7d2ae)
使用しているネットワークを右クリックし、プロパティを開きます。
【手順4】
![スクリーンショット (56).png](https://qiita-user-contents.imgix.net/https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F3631159%2F11a53faa-d140-5408-dd53-81ca3f405f7c.png?ixlib=rb-4.0.0&auto=format&gif-q=60&q=75&s=23df9c6b2767b503eea5e27f02efb1d1)
「共有タブ」から「インターネット接続の共有」にある「ネットワークのほかのユーザーに、このコンピューターのインターネット接続をとおしての接続を許可する(N)」のチェックボックスを外します。
以上で終了となります。
ネットワーク共有を切っておかないと、同一ネットワークからの接続と判定されて、独立した環境とみなされないのでしょうか。。。?
私もまだまだ勉強中の身ですので、教えていただけると幸いです。