[SOLVED] Error adding CIFS storage via IPv6

MoxBob

Member
Aug 4, 2020
3
0
6
54
Hi,

I'm trying to add a CIFS storage using the IPv6 address of the remote host and I'm getting the following error using GUI and CLI:

create storage failed: error during cfs-locked 'file-storage_cfg' operation: mount error: mount error: could not resolve address for [IPV6ADDRESS]: Unknown error

CLI-command used:
pvesm add cifs TestSMB --server IPV6ADDRESS --share remote --username USER --password PASS

However, if I'm mounting the share directly on the host machine using
mount -t cifs -o username=USER //IPV6ADDRESS/remote /media/mountpoint/
it works fine w/o errors. So the problem does not seem to be on the CIFS side

The --smbversion option did not help either.

I'm running: pve-manager/6.2-10/a20769ed (running kernel: 5.4.44-2-pve)

Maybe someone has a hint?

Thanks,

B.
 
Last edited:
does it work if you add an entry to '/etc/hosts' with a name for the ip6 address?
how do you provide the ip6 address? (with '[' ']')?
 
Hi Stoiko,

"IPv6" and 'IPv6' give the same error.

[IPv6] gives: 400 Parameter verification failed. server: invalid format - value does not look like a valid server name or IP address

It actually works if I put the IPv6 in the hosts and use the name, so thanks.

But this is a bug I would say?

Thx,


B.