Jump to content

Lost access to samba from windows 10 VM


Recommended Posts

I lost samba access after a VM switch to another VM.

 

I shut down windows 10 vm, booted up a MacOS VM and shut it down after 10 minutes. Rebooted windows 10 VM and lost access to all samba shares (both private and globally shared)

 

Restarted array - rebooted server - still no access...

 

Connectivity is fine - ip is acquired - internet access - unraid webui access uninterrupted. Writing this post from my VM right now.

 

No special samba config - latest version of unraid - had problems with with samba in 6.10 that was temporarily fixed with 6.10.2

 

My win 10 laptop and ipad have samba access with no problems in r/w.

 

Diagnostics attached. If anyone has any idea what's going on.

tower-diagnostics-20221206-1516.zip

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm' id='1'>
  <name>Windows 10 Gaming</name>
  <uuid>1ceb4865-fde4-e203-e636-5d4d56568f8a</uuid>
  <description>GamingVM</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Windows 10" icon="windows.png" os="windows10"/>
  </metadata>
  <memory unit='KiB'>13107200</memory>
  <currentMemory unit='KiB'>13107200</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>8</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='4'/>
    <vcpupin vcpu='1' cpuset='12'/>
    <vcpupin vcpu='2' cpuset='5'/>
    <vcpupin vcpu='3' cpuset='13'/>
    <vcpupin vcpu='4' cpuset='6'/>
    <vcpupin vcpu='5' cpuset='14'/>
    <vcpupin vcpu='6' cpuset='7'/>
    <vcpupin vcpu='7' cpuset='15'/>
    <emulatorpin cpuset='1,9'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-i440fx-7.1'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/1ceb4865-fde4-e203-e636-5d4d56568f8a_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv mode='custom'>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
      <vendor_id state='on' value='none'/>
    </hyperv>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'>
    <topology sockets='1' dies='1' cores='4' threads='2'/>
    <cache mode='passthrough'/>
    <feature policy='require' name='topoext'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='hypervclock' present='yes'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/cache/domains/Windows 102/vdisk1.img' index='1'/>
      <backingStore/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <alias name='virtio-disk2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <controller type='usb' index='0' model='qemu-xhci' ports='15'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:e3:1f:69'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/0'/>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-1-Windows 10 Gaming/org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='mouse' bus='ps2'>
      <alias name='input0'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input1'/>
    </input>
    <audio id='1' type='none'/>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x0b' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev0'/>
      <rom file='/mnt/user/domains/1050tiGamingvbios_edited.rom'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x0b' slot='0x00' function='0x1'/>
      </source>
      <alias name='hostdev1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x0c' slot='0x00' function='0x3'/>
      </source>
      <alias name='hostdev3'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/>
    </hostdev>
    <memballoon model='none'/>
  </devices>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+100</label>
    <imagelabel>+0:+100</imagelabel>
  </seclabel>
</domain>

 

Edited by kolofotias
Link to comment

What error message is Windows giving?

 

How are you attempting access?    WIndows Explorer?  Mapped Drive?

 

Is the server--- Tower ---showing up under 'Network' in Windows Explorer?   If it does, what happens if you click on it?  

 

What happens if you use this address       \\192.168.1.200     in the address bar of Windows Explorer? 

 

Is your server set up to be the Local Master?   Settings   >>>   SMB   >  Workgroup Settings

 

 

Link to comment

Windows

error occurred while connecting to X: network drive as in screenshot

 

Mapped drives with IPs, +1 symlink folder

 

Tower is showing up in network discovery - not able to access it though

 

Nothing with \\192.168.1.200 on address bar

 

Yes it's set as LM as in screenshot 

 

Routing table seems a little weird to me but never checked it before

 

Everything runs under opewnrt dhcp service that works fine for local clients.

 

Tried to delete credentials and rebooted - No access - it won't even ask for my login credentials when trying to access. SMBv1 disabled - enabled no difference.

 

ipconfig with either virtio or vmxnet3

 

Ethernet adapter Ethernet Instance 0 2:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::532e:22fb:4a9e:964%12
   IPv4 Address. . . . . . . . . . . : 192.168.1.110
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1

Unknown adapter Local Area Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

 

Capture.JPG

 

 

Capture2.JPG

 

 

Capture3.JPG

Edited by kolofotias
Link to comment

Open a Command prompt window (on the Windows10 computer and type:

net use * /delete

 

Also check to see that you have reserved the IP address (\\192.168.1.200) for your server on your router.  

 

Also try to access  \\TOWER  in Windows Explorer. 

 

BTW, MS has turned off client access to servers as a 'guest' client.  This means that you must have a valid SMB user login on a server to gain access even to 'public' shares on a server! 

Link to comment

Strange

 

net use * /delete gives me:

 

C:\WINDOWS\system32>net use * /delete
There are no entries in the list.

 

Cannot right click the netdrives to delete them

 

\\TOWER  gives me same error 0x80070035

 

Complete meltdown of samba access and it's something to do with the VM.

 

Will fire up macOS vm to see if I can get access from there.

 

Link to comment

chkdsk and dism with no issues....

Deleted entries in regedit for my netdrives also. Still there...with red X. cannot remove them.

 

Just got destroyed by a simple reboot....

 

Will probably have to make a new vm with same disk hoping that i won't lose my setups and try again.

 

If it's windows I will format and do a fresh install. If it's unraid network setup it may be resolved.

 

What else should i check before?

Edited by kolofotias
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...