SMB client setup
- Install samba-client and cifs-utils:
$ yum install samba-client cifs-utils
- List shares:
$ smbclient -L \10.196.35.254 -N
- Set uid and gid on
mount:
$ mount -t cifs -o vers=2.1,username='sambaTest',password='<password>' \ ,uid=107,gid=107 //10.196.35.254/test001 /mnt/test001
Notes:- The test setup utilizes SMB 2.1.
- The uid must be set to 107 (qemu) to avoid failures on virsh attach.
- Since SELINUX is enabled, virt bools need to be
set:
$ setsebool -P virt_use_nfs on $ setsebool -P virt_use_samba on