Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[other] Multipass cloud-init-config is not updating based on multipassd-vm-instances.json

$
0
0
Hi,

I'm a new user of multipass. I use it on Windows 11 home with Virtualbox(7.0.10-158379), multipass 1.12-2-win.
I created an instance as in the manual without any options except the name.
multipass launch jammy --name test1
I realized later, the instance doesn't receive IP address from my local network. It cannot be reached, just by multipass shell command.
I found this post for a possible solution.
Add ability to add --networks to existing instances #2476
I added this below to the multipassd-vm-instances.json
"extra_interfaces": [
{
"auto_mode": false,
"id": "en0",
"mac_address": "52:54:00:ab:c3:0d"
}
],
Actually it did not matter what was the id name, auto_mode or mac_address. I tried all of them with different values.
It didn't work. Later I found out, the multipass is not updating the cloud-init-config file. It doesn't have the network-config file.
I created another instance with --network name="Ethernet 2" mode=auto
"Ethernet 2" the network interface name on this Windows

multipass launch jammy --name test3 --network name="Ethernet 2" mode=auto

This instance receives IP address from the local network and cloud-init-config file has the proper network-config file.

Question: What I did wrong? How can I add/modify the network interfaces to existing instances?

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>