I emulate XP on a debian amd64 PC with tap, since years :
qemu-system-x86_64 -enable-kvm -uuid
564d6522-2227-cda9-d1c7-390c71f68dbe -drive
driver=qcow2,file=/home/nous/qemu/xp/TOLL-XPVM.qcow2 -net
nic,model=rtl8139,macaddr=00:0C:29:B6:8D:BE -net
tap,ifname=tap0,script=no -net user -vga vmware -m 2G -smp 3 -rtc
base=localtime -no-acpi -cpu host
with :
sysctl net.ipv4.ip_forward=1
tunctl -t tap0 -u nous
ip address add 192.168.164.1/24 dev tap0
ip link set tap0 up
iptables -t nat -A POSTROUTING -o wlp1s0 -j MASQUERADE
iptables -I FORWARD 1 -i tap0 -j ACCEPT
iptables -I FORWARD 1 -o tap0 -m state --state RELATED,ESTABLISHED -j ACCEPT
But after a reinstall on bullseye, XP and network seem ok , but access
access to //10.0.2.4/qemu works no more (with a french Windows message).
Maybe it could be a samba problem(4.11.5), so I have tried to add
"client min protocol = CORE", suspecting a smb1, smb2 problem but nochange.
Any idea welcome...
PC