SMB client setup

  1. Install samba-client and cifs-utils:
    $ yum install samba-client cifs-utils
  2. List shares:
    $ smbclient -L \10.196.35.254 -N
  3. 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.
  4. Since SELINUX is enabled, virt bools need to be set:
    $ setsebool -P virt_use_nfs on
    $ setsebool -P virt_use_samba on