I have installed Multipass in a MacbookPro Laptop and created an Ubuntu VM. I also installed lxc client and lxc remote add ubuntuvm 192.168.64.10
. I tried adding with the 10.189.6.1 IP for the VM bridge but i didnt manage. I have created an lxc container and installed prometheus and grafana.
Inside the VM curl to the prometheus works
curl http://localhost:9090/
<a href="/graph">Found</a>.
curl http://10.189.6.81:9090/
<a href="/graph">Found</a>.
but curl from the Host has error
curl http://10.189.6.81:9090/
curl: (7) Failed to connect to 10.189.6.81 port 9090 after 6 ms: Couldn't connect to server
also trying to ping 10.189.6.1 to the Multipass Ubuntu VM using the default bridge lxdbr0
created at
lxd init
but when i ping 192.168.64.10 host bridge it works.
the same applies to trying to ssh into the multipass VM.
multipass info ubuntuvm
Name: ubuntuvm
State: Running
IPv4: 192.168.64.10
10.189.6.1
Release: Ubuntu 23.04
Image hash: 1e35473cea5e (Ubuntu 23.04)
CPU(s): 1
Load: 0.05 0.02 0.00
Disk usage: 12.9GiB out of 96.9GiB
Memory usage: 1.1GiB out of 7.7GiB
Mounts: --
lxc ls
+-----------+---------+---------------------+-----------------------------------------------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+-----------+---------+---------------------+-----------------------------------------------+-----------+-----------+
| metrics | RUNNING | 10.189.6.81 (eth0) | fd42:b872:2802:c310:216:3eff:fe94:be08 (eth0) | CONTAINER | 0 |
+-----------+---------+---------------------+-----------------------------------------------+-----------+-----------+
how can i solve this?