Samba shares mounted on my Fedora 40 host machine do not seem to be accessible from my Boxes Windows 7 Guest.
They are accessible from other Windows machines on my network.
I am avoiding links in this post as this is my first post, but am happy to post them on request.
Any help you are able to give would be much appreciated.
What I did and what happened
In F40 host created Boxes Win 7 guest virtual machine from Virtual Box .vdi file, using Boxes add function and choosing to add from image file. Worked fine.
Installed Spice guest tools, inc Webdav shared folders. Guest tools worked fine. Webdav shared folders proved limited for my uses - sharing very large files and directories did not work.
So installed Samba in F40 host from command line, and edited config file to create shared folder. Also added my account as Samba user.
Checked my hostname with hostname from command line ‘mx.localdomain’. (The mx is a bit wierd probably come from the .vdi file being created under mx linux?)
Checked this was accessible from other Windows (11) machines on my home network, it was, on address ‘\mx.localdomain\datapart1’.
Tried to access share from guest using same address. ‘Windows cannot access \mx.localdomain\datapart1’ (code: 0x80004005, unknown error).
Ran ipconfig to find ip address of guest, found 192.168.124.4. So guessed VM had set up virtual network 192.168.24.x and tried \192.168.124.2/3\datapart1.Same error.
What I tried to fix it
Assumed Boxes had created virtual NAT mode network. Felt best solution probably to change network to fully bridged mode, so the VM would b a first class member of my home network and I could gain access from/to it, and manage it accordingly.
Installed Virtual Machine Manager to give more control than Boxes over network settings
Opened QEMU/KVM user session and was able to run my Win 7 Boxes VM, called ‘w7ox32’
Hoped that in QEMU/KVM User Session - Connection Details window, Virtual Networks tab the connection used by the VM would be displayed and I could change the mode to bridged (as I have before using VMware).
But no connection showed, though checking the W7ox32 on QEMU/KVM User Session/View/Details/NICs information the VM seemed to be using the /etc/libvirt/qemu/networks/default.xml settings.
Noted warning about direct editing of this file, and Red Hat documentation seeming to suggest only two network modes ‘routed’ and ‘nat’ were valid for this file, fully bridged mode requiring other changes (?to a domain file?) and thought I had better take advice
Tried a few other things suggested from posts on the web, including checking that a bridge existed and was enabled, but no luck with them either. Can post details on request)
System Details
Software: Fedora 40 Gnome default interface, last updated about 1 week ago, running from USB. Added BTRFS assistant, Samba, Gparted, Bridge-utils, Virtual Machine Manager
Computer: Dell 8300 3.4 Ghz with 16G RAM, several hard disks and some resources (inc some VMs) on USB (v2.x)s.
Network. Unifi wireless and wired/homeplug-based. Unifi so/ho Router and network management software. DHCP: 192.168.1.x/24.
Thanks very much progress I think. Still cannot access, but in the guest the Windows Explorer error has changed to 0x80070043. “The network name cannot be found”
Bit wierd as it can be found by other physical Windows computers on the network!
Ah it’s ok with the mx.localdomain, and shows the datapart1 share, together with a home share. But it cannot access the datapart1 share, though that share is accessible from a physical (Windows 11) computer on the network.
[Edit]. OK, solved the rest myself - I had not mounted the share today. It was mounted when I tested from the other computer yesterday. Now I have access thanks very much indeed.
BTW is it easy to put this VM in totally bridged mode? So it gets it’s IP from my router and is a full member of the wider network. That would be preferrable if easy to achieve, but not essential.
The howto documentation is a bit scattered, but the short version is that you create a bridge device using for example nm-connection-editor and attach your physical ethernet device to that bridge.
Then you can create the bridge connection in the client configuration.
@ Villy. Thanks very much Villy. I’ll create a separate topic tomorrow and refer to your very useful post in it if I may.
@ Vladislav. Just to say that I have checked and the business problems I was trying to resolve - no large directory/file access using Webdav shared folders, and difficulty in controlling drive mappings - are fuly resolved using the Samba networking your help allowed me to implement. So you have resolved a major headache for me, thank you very much indeed.