I have setup multipass running lxd on macOS and brew install lxc
on host to remote connect. I am able to lxc list
from macOS host but ping
containersgives no route to host
. Just wondering if lxc remote supports routes to remote containers?
Steps to reproduce:
prerequisites: macOS
Download multipass
Install lxc on macOS host
brew install lxc
Start multipass container
multipass launch -c 2 -m 4g -d 50g -n lxc
set up multipass lxc (maybe setup within same subnet)
multipass shell lxc
lxd init
lxc config set core.https_address 0.0.0.0
lxc config set core.trust_password password
exit
lxc remote connect
lxc remote add multipass <multipass list, ip>
lxc remote switch multipass
lxc launch ubuntu:20.04 -n primary
lxc list
Output:
+---------+---------+----------------------+-----------------------------------------------+-----------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+---------+---------+----------------------+-----------------------------------------------+-----------+-----------+
| primary | RUNNING | 192.168.64.51 (eth0) | fd42:5b00:d239:7527:216:3eff:fe4e:58d4 (eth0) | CONTAINER | 0 |
+---------+---------+----------------------+-----------------------------------------------+-----------+-----------+
ping
PING 192.168.64.51 (192.168.64.51): 56 data bytes
Request timeout for icmp_seq 0
ping: sendto: No route to host
Request timeout for icmp_seq 1
ping: sendto: Host is down
Request timeout for icmp_seq 2
ping: sendto: Host is down
Request timeout for icmp_seq 3