Raudi
Expert
Expert

vCenter 6.7 Backup not working when IPv6 enabled

Hello,

i just upgraded my test environment to vCenter 6.7 and tested the new Backup Task, but it don't work.

In /var/log/vmware/applmgmt/backup.log i found:

ERROR: BackupManager encountered an exception: While reading from '/etc/systemd/network/10-eth0.network' [line  7]: option 'gateway' in section 'Network' already exists

And the file looks like that:

root@srv10 [ /var/log/vmware/applmgmt ]# cat /etc/systemd/network/10-eth0.network

[Match]

Name=eth0

[Network]

Gateway=2a02:xxxx:xxxx:xxxx::250

Gateway=192.168.99.1

Address=2a02:xxxx:xxxx:xxxx::20/64

Address=192.168.99.20/24

IPv6AcceptRouterAdvertisements=false

DHCP=no

[DHCP]

UseDNS=false

It must be a bug in the backup function...

Kind regards

Stefan

0 Kudos
3 Replies
prividen1
Contributor
Contributor

And in the case of multiple static routes as well:

2019-01-02T21:18:42.750 [MainProcess:PID-44597] ERROR: BackupManager encountered an exception: While reading from '/etc/systemd/network/10-eth0.network' [line 17]: section 'Route' already exists

0 Kudos
Ashish2201
Contributor
Contributor

Hi,

This issue is because backup reads line by line and if it found anything duplicate it will give an error.

For get this resolved comment the line [Route] -> #[Route] and change gateway and destination to Gateway0, Destination0 and so on.

The /etc/systemd/network/10-eth0.network file should look like

#[Route]

Gateway0=x.x.x.x

Destination0=x.x.x.x

#[Route]

Gateway1=x.x.x.x

Destination1=x.x.x.x

#[Route]

Gateway2=x.x.x.x

Destination2=x.x.x.x/24

Note: If gateway does not provide proper connectivity, replace GatewayX with GATEWAY X=0.0.0.0

With Regards

Ashish

0 Kudos
BrianCunnie
Contributor
Contributor

Hi Raudi, I was able to get it to work with a clever use of the [Address] and [Route] sections; here's my /etc/systemd/network/10-eth0.network. Yes, I rebooted after I made the changes, yes, I was able to ping6 2600:: and ping 8.8.8.8 after reboot. Yes I was able to successfully kick off a completed backup. Here's a good source for the layout of the file: https://wiki.archlinux.org/index.php/Systemd-networkd#network_files

[Match]

Name=eth0

[Network]

Address=10.0.9.67/24

Gateway=10.0.9.1

IPv6AcceptRouterAdvertisements=false

DHCP=no

Domains=

[Address]

Address=2601:646:100:69f0::67/64

[Route]

Gateway=2601:646:100:69f0:20d:b9ff:fe48:9249

[DHCP]

UseDNS=false

0 Kudos