QEMU built-in smb server problem with winXP guest
After upgrading: When trying to connect a qemu smb share from a windows XP host, I get the following error:
No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.
I'm using the following parameter to qemu-system-x86_64 :
-net user,net=192.168.0.0/24,smb=/home/tokr/vm/share
In the guest I'm trying to map: \\192.168.0.4\qemu
I'm guessing the default for connecting to SMB has changed to something not supported by windows XP, but I can't find any way to configure the built-in SMB server.
Update:
Adding min protocol = NT1
to the [global]
section of the smb.conf
fixes the connection issue.
But how can I change the QEMU automatically generated smb.conf
file ?
Update 2:
You can't. It is hardcoded in QEMU, - ugly scripting required.
Solution 1:
Not pretty, but does work.
qemu-system-x86_64 ... -net user,net=192.168.0.0/24,smb=/home/tokr/vm/share ... &
#Fix smb.conf file
sleep 2
sed -e 's/\[qemu\]/min protocol = NT1\n\[share\]/' -i /tmp/qemu-smb.*/smb.conf