Can't Apply IPv6 Address to Container

When I try to apply an IPv6 address to a container, I get this failure:

# commit
[ container ]
VyOS had an issue completing a command.

We are sorry that you encountered a problem while using VyOS.
There are a few things you can do to help us (and yourself):
- Contact us using the online help desk if you have a subscription:
- Make sure you are running the latest version of VyOS available at:
- Consult the community forum to see how to handle this issue:
- Join us on Slack where our users exchange help and advice:

When reporting problems, please include as much information as possible:
- do not obfuscate any data (feel free to contact us privately if your
  business policy requires it)
- and include all the information presented below

Report time:      2023-09-28 16:11:44
Image version:    VyOS 1.5-rolling-202309240034
Release train:    current

Built by:         removed
Built on:         Sun 24 Sep 2023 00:34 UTC
Build UUID:       1f433306-4a71-4d71-b6d5-d49a7175e3d4
Build commit ID:  ab114f9533bbac

Architecture:     x86_64
Boot via:         installed image
System type:      bare metal

Hardware vendor:  Protectli
Hardware model:   FW4B
Hardware S/N:     123456789
Hardware UUID:    Unknown

Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/", line 487, in <module>
  File "/usr/libexec/vyos/conf_mode/", line 460, in apply
    cmd(f'systemctl restart vyos-container-{name}.service')
  File "/usr/lib/python3/dist-packages/vyos/utils/", line 155, in cmd
    raise OSError(code, feedback)
PermissionError: [Errno 1] failed to run command: systemctl restart vyos-container-pihole.service
exit code: 1

cmd 'systemctl restart vyos-container-pihole.service'
returned (out):

returned (err):
Job for vyos-container-pihole.service failed because the control process exited with error code.
See "systemctl status vyos-container-pihole.service" and "journalctl -xeu vyos-container-pihole.service" for details.

[[container]] failed
Commit failed

My config is:

name pihole {
     description "pihole dns server"
     environment DNS1 {
     environment DNS2 {
     environment DNS3 {
         value 2606:4700:4700::1113
     environment DNS4 {
         value 2606:4700:4700::1003
     environment DNSMASQ_LISTENING {
         value all
     environment TZ {
         value America/Denver
     environment WEBPASSWORD {
         value removed
     image pihole:latest
     network NET {
+        address fd7b:79ad:2037:2607::2
     restart on-failure
     volume dnsmasq.d {
         destination /etc/dnsmasq.d
         source /config/pihole/dnsmasq.d
     volume log {
         destination /var/log/pihole
         source /config/pihole/log
     volume pihole {
         destination /etc/pihole
         source /config/pihole/etc
 network NET {
     prefix fd7b:79ad:2037:2607::/64

The network saves the subnet fine, but can’t apply to container.
Any ideas?

Does this log show anything helpful?

Try to add another address for example .10
I got this bug any was related if address was assigned to another vm before
But not sure is it the same

It’s happened on two different instances of Vyos. Only when assigning IPv6 address. v4 works. The IPv6 range is internal and definitely not in use elsewhere.

FYI, I have a new build and it still happens. As soon as you try to apply an IPv6 address to a container, it crashes. You can assign an IPv6 prefix to a container network, but you can’t assign an address to a container.

Could you add a bug report?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.