Control: tag -1 + moreinfo Control: severity -1 normal
22.08.2022 02:30, Usama Makhzoum wrote:
Package: qemu-system-x86 Version: 1:7.0+dfsg-7+b1 Severity: important X-Debbugs-Cc: osma...@gmail.com I use qemu as the following: /usr/bin/qemu-system-x86_64 -soundhw ac97 -machine accel=kvm -m 1033 -cdrom windowsxp.iso -hda windowsxp.img -boot once=d,menu=off -net nic,model=rtl8139 -net user -net user,smb="/path/to/shared/folder/inside/my/home" -rtc base=localtime -name "Windows XP x32"
You have: -net nic,model=rtl8139 -net user -net user,smb=... The -net thing comes in pairs (one is guest side, another is host side). You have 3 of them, and the last one is not paired with the guest side. I suspect this is your problem - qemu does not know how to handle the unpaired -net user. The whole -net syntax is obsolete - partly because of this common misunderstanding and partly because whole architecture behind -net is wrongly designed. You should use -netdev..-device instead of -net..-net. (Unfortunately, many old guides in the internet still suggest to use -net, but this is something we can't change in a moment). Now, you use both -net user,smb=... which redirects ports used by windows networking to custom samba instance with its own configuration, with nothing shared from host samba. Yet you attach your smb.conf file. Why? I suggest you to use -netdev..-device syntax (which has, among other things, detection of disconnected halves like you have now) as a start. Personally I see no reason to try to debug issues coming from -net..-net. Thanks, /mjt