I have an address of 10.1.1.24 which is my IP to the internet.
I have made a profile as follows:
config:
user.network-config: |
version: 2
ethernets:
eth0:
addresses:
- 10.1.1.24/24
nameservers:
addresses: [1.1.1.1, 8.8.8.8, 9.9.9.9]
routes:
- to: 0.0.0.0/0
via: 10.1.1.1
on-link: true
description: Video-Streaming LXD profile
devices:
eth0:
ipv4.address: 10.1.1.24
nictype: routed
parent: eth0
type: nic
root:
path: /
pool: my-storage-pool
type: disk
sharedDir:
path: /root/video_streaming
source: /vid_data/
type: disk
name: video-streaming
used_by:
- /1.0/instances/video-streaming
I then create a container with:
lxc launch ubuntu:22.04 jelly -p MyAboveProfile
It then creates a Veth device on the container host which doesn’t have the 10.1.1.24 IP. It has a Veth device like so:
24: veth3ee85faf@if23: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether ea:c0:18:ae:fc:4d brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 169.254.0.1/32 scope global veth3ee85faf
valid_lft forever preferred_lft forever
inet6 fe80::e8c0:18ff:feae:fc4d/64 scope link
valid_lft forever preferred_lft forever
My ip r looks like this on the host:
default via 10.1.1.1 dev eth0 proto static
10.1.1.0/24 dev eth0 proto kernel scope link src 10.1.1.236
10.1.1.24 dev veth3ee85faf scope link
and in the container it:
default via 169.254.0.1 dev eth0
default via 10.1.1.1 dev eth0 proto static onlink
169.254.0.1 dev eth0 scope link
And when I ping from it I get this:
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 169.254.0.1 icmp_seq=1 Packet filtered
From 169.254.0.1 icmp_seq=2 Packet filtered
Everytime I try to remove this VEth device from, the host it removed the Eth device from the container. I tried to follow the instructions here but it hasn’t worked.
Ideally I don't want no interface on the host for that IP and just use the Container if possible but every time I goto delete the hosts Veth interface it removed the one in the container.
What am I doing wrong?
Thank