Article ID: 116982, created on Aug 28, 2013, last review on May 1, 2014

  • Applies to:
  • Virtuozzo containers for Linux

Symptoms

It is impossible to assign IPv6 address to the container:

    [root@pvcfl ~]# vzctl set 100500 --ipadd  2604:c680:a890:8320::1 --save
    Adding IP addresses: 2604:c680:a890:8320::1
    mkdir: cannot create directory `/etc/sysconfig/network-scripts': No such file or directory
    bash: line 471: /etc/sysconfig/network-scripts/ifcfg-venet0: No such file or directory
     ERROR: Can't write to file /etc/sysconfig/network-scripts/ifcfg-venet0
    Deleting IP addresses: 2604:c680:a890:8320::1

Cause

Directory /etc/sysconfig/network-scripts/ doesn't exist inside of container, or it is a broken link:

    ~#  ls -la /vz/root/100500/etc/sysconfig | grep ^d
    **ls: cannot access /vz/root/100500/etc/sysconfig/network-scripts: No such file or directory
    ls: cannot access /vz/root/100500/etc/sysconfig/readonly-root: No such file or directory
    ls: cannot access /vz/root/100500/etc/sysconfig/netconsole: No such file or directory
    ls: cannot access /vz/root/100500/etc/sysconfig/networking: No such file or directory**
    drwxr-xr-x  7 root root 4096 Aug  8 13:49 .
    drwxr-xr-x 58 root root 4096 Aug  8 13:49 ..
    drwxr-xr-x  2 root root 4096 Dec  7  2011 cbq
    drwxr-xr-x  2 root root 4096 Dec  8  2011 console
    drwxr-xr-x  2 root root 4096 Dec  8  2011 modules
    **d?????????  ? ?    ?       ?            ? networking**
    **d?????????  ? ?    ?       ?            ? network-scripts**

Resolution

To Resolve this issue you need to update OS template cache:

    ~# vzpkg update cache %ostemplate%

Search Words

/redhat-add_ip.sh

ipv6

Can't write to file /etc/sysconfig/network-scripts/ifcfg-venet0

d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223 e8e50b42231236b82df27684e7ec0beb

Email subscription for changes to this article
Save as PDF