I’m having trouble connecting with Samba through Windows 10. My HA installation is running on a Virtualbox VM (windows 10 pro machine). I can’t connect to Samba with the host machine, nor the other windows machines inside the network. I tried the usual things:
- Setting the encryption level to 40- or 56-bits on the advanced sharing options
- Enabling the SMB1.0/CIFS setting
I know there are many Samba connection topics on this forum, but I believe this has something to do with the subnet, which might differ between the pc’s on the network and the Home Assistant installation on the VM. This is my SAMBA log:
[INFO] Read hostname: hassio Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED No builtin backend found, trying to load plugin tdbsam_open: Converting version 0.0 database to version 4.0. tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file. tdb(/var/lib/samba/winbindd_idmap.tdb): tdb_open_ex: could not open file /var/lib/samba/winbindd_idmap.tdb: No such file or directory tdb(/var/lib/samba/account_policy.tdb): tdb_open_ex: could not open file /var/lib/samba/account_policy.tdb: No such file or directory account_policy_get: tdb_fetch_uint32_t failed for type 1 (min password length), returning 0 account_policy_get: tdb_fetch_uint32_t failed for type 2 (password history), returning 0 account_policy_get: tdb_fetch_uint32_t failed for type 3 (user must logon to change password), returning 0 account_policy_get: tdb_fetch_uint32_t failed for type 4 (maximum password age), returning 0 account_policy_get: tdb_fetch_uint32_t failed for type 5 (minimum password age), returning 0 account_policy_get: tdb_fetch_uint32_t failed for type 6 (lockout duration), returning 0 account_policy_get: tdb_fetch_uint32_t failed for type 7 (reset count minutes), returning 0 account_policy_get: tdb_fetch_uint32_t failed for type 8 (bad lockout attempt), returning 0 account_policy_get: tdb_fetch_uint32_t failed for type 9 (disconnect time), returning 0 account_policy_get: tdb_fetch_uint32_t failed for type 10 (refuse machine password change), returning 0 Added user hassio. nmbd version 4.8.4 started. Copyright Andrew Tridgell and the Samba Team 1992-2018 Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED added interface enp0s3 ip=10.0.2.15 bcast=10.0.2.255 netmask=255.255.255.0 making subnet name:10.0.2.15 Broadcast address:10.0.2.255 Subnet mask:255.255.255.0 making subnet name:UNICAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0 making subnet name:REMOTE_BROADCAST_SUBNET Broadcast address:0.0.0.0 Subnet mask:0.0.0.0 load_lmhosts_file: Can’t open lmhosts file /etc/samba/lmhosts. Error was No such file or directory daemon_ready: STATUS=daemon ‘nmbd’ finished starting up and ready to serve connections smbd version 4.8.4 started. Copyright Andrew Tridgell and the Samba Team 1992-2018 Registered MSG_REQ_POOL_USAGE Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED Processing section “[config]” Processing section “[addons]” Processing section “[ssl]” Processing section “[share]” Processing section “[backup]” added interface enp0s3 ip=10.0.2.15 bcast=10.0.2.255 netmask=255.255.255.0 INFO: Profiling support unavailable in this build. No builtin backend found, trying to load plugin tdb(/var/lib/samba/registry.tdb): tdb_open_ex: could not open file /var/lib/samba/registry.tdb: No such file or directory daemon_ready: STATUS=daemon ‘smbd’ finished starting up and ready to serve connections waiting for connections check_for_master_browser_fail: Forcing election on workgroup WORKGROUP subnet 10.0.2.15 send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 10.0.2.15 send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 10.0.2.15 send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 10.0.2.15 send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 10.0.2.15 send_election_dgram: Sending election packet for workgroup WORKGROUP on subnet 10.0.2.15 run_elections: >>> Won election for workgroup WORKGROUP on subnet 10.0.2.15 <<< become_local_master_browser: Starting to become a master browser for workgroup WORKGROUP on subnet 10.0.2.15 ***** Samba name server HASSIO is now a local master browser for workgroup WORKGROUP on subnet 10.0.2.15 *****
And the config (I messed a bit with the allowed hosts, but frankly I have no clue what I was doing):
{
“workgroup”: “WORKGROUP”,
“username”: “user”,
“password”: “pass”,
“interface”: “enp0s3”,
“allow_hosts”: [
“10.0.0.0/8”,
“172.16.0.0/12”,
“192.168.0.0/16”,
“10.0.2.0/16”,
“10.0.2.15”,
“0.0.0.0”
]
}
The 10.0.2.15 subnet of Samba doesn’t seem familiar with other devices on my network. Does anyone have a clue how to check this?
Looking forward to your response!