Mensagem de erro IP6 dentro do contêiner LXC no proxmox

0

Quando tento ativar a interface de rede eth0 dentro de um contêiner LXC (Fedora 27), o comando mostra as seguintes mensagens de erro:

# ifup eth0
/etc/sysconfig/network-scripts/ifup-ipv6: line 56: /etc/sysconfig/network: No such file or directory
/etc/sysconfig/network-scripts/ifup-aliases: line 116: /etc/sysconfig/network: No such file or directory

No entanto, após o comando ser executado, a rede funciona bem, a configuração do ip4 está corretamente configurada.

# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
    link/ether 02:42:fe:c0:83:f3 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
50: eth0@if51: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 52:ea:9d:d1:91:74 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 172.27.1.3/24 brd 172.27.1.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::50ea:9dff:fed1:9174/64 scope link
       valid_lft forever preferred_lft forever

O contêiner tem a janela de encaixe instalada, então não sei se isso pode estar relacionado ao problema.

O arquivo de configuração do contêiner ( /etc/pve/lxc/110.conf ) contém:

arch: amd64
cores: 4
hostname: server-tools
memory: 4096
nameserver: 1.1.1.1 1.0.0.1 8.8.8.8
net0: name=eth0,bridge=vmbr2,gw=172.27.1.1,hwaddr=52:EA:9D:D1:91:74,ip=172.27.1.3/24,type=veth
onboot: 1
ostype: fedora
rootfs: local:110/vm-110-disk-1.raw,size=60G
searchdomain: qodev.es
swap: 2048
lxc.apparmor.profile: unconfined
lxc.cgroup.devices.allow: a
lxc.cap.drop: 

O arquivo ( /etc/sysconfig/network-scripts/ifcfg-eth0 ):

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=172.27.1.3
NETMASK=255.255.255.0
GATEWAY=172.27.1.1

ATUALIZADO : criei novos contêineres com diferentes sistemas operacionais (Ubuntu e CentOS) e esse problema não acontece.

    
por Roberto 17.04.2018 / 07:37

0 respostas