Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1114054

Bug#1017884: reportbug: qemu-system-x86_64 freezes after i access samba server on a windows-xp host

From Michael Tokarev <mjt@tls.msk.ru>
Newsgroups linux.debian.bugs.dist
Subject Bug#1017884: reportbug: qemu-system-x86_64 freezes after i access samba server on a windows-xp host
Date 2022-08-22 09:40 +0200
Message-ID <EXacp-2ftk-21@gated-at.bofh.it> (permalink)
References <EX2HT-2am2-5@gated-at.bofh.it> <EX2HT-2am2-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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: osmakh1@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

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1017884: reportbug: qemu-system-x86_64 freezes after i access samba server on a windows-xp host Usama Makhzoum <osmakh1@gmail.com> - 2022-08-22 01:40 +0200
  Bug#1017884: reportbug: qemu-system-x86_64 freezes after i access samba server on a windows-xp host Michael Tokarev <mjt@tls.msk.ru> - 2022-08-22 09:40 +0200
  Bug#1017884: reportbug: qemu-system-x86_64 freezes after i access samba server on a windows-xp host أسامة مخزوم <osmakh1@gmail.com> - 2022-08-28 15:40 +0200
    Bug#1017884: reportbug: qemu-system-x86_64 freezes after i access samba server on a windows-xp host Michael Tokarev <mjt@tls.msk.ru> - 2022-08-29 11:10 +0200

csiph-web