Common vlan with no host privileges

2024-10-23 Thread Narcis Garcia

In a Debian 12 host (Qemu 7.2.13), not using superuser privileges,
I launch VM1:
$ qemu-system-x86_64 -name "Windows XP" (...)
-device rtl8139,netdev=net0
-netdev user,id=net0,smb=/home/_all/public
-netdev socket,id=vlan-winxp,mcast=230.0.0.1:1234
-device rtl8139,netdev=vlan-winxp
and VM2:
$ qemu-system-x86_64 -name debian10
-device rtl8139,netdev=net0
-netdev user,id=net0,smb=/home/_all/public
-netdev socket,id=vlan-winxp,mcast=230.0.0.1:1234
-device virtio-net-pci,netdev=vlan-winxp

Then in guest VM1 first (default) NIC acquires address 10.0.2.15/24 and 
I configure manually second NIC to have address 192.168.139.1/24
In guest VM2 first (default) NIC also acquires address 10.0.2.15/24 and 
I configure manually second NIC to have address 192.168.139.139/24


From VM1 I ping to 192.168.139.139 with result "Timeout"
From VM2 I ping to 192.168.139.1 with result "Destination Host Unreachable"

My goal is to make a Windows XP (VM1) access old Samba in Debian 10 
(VM2), and VM2 accesses to host smb/qemu resource. Both guests should 
reach WAN/Internet through user net (virtual gateway 10.0.2.2)


My questions:
1. What do I need to add to command line so communications between 
guests works?
2. Is there some documentation about fd= and localaddr= parameters I 
found on web comments? What are they intended for?


Thank you.

--
Narcis Garcia



Re: QEMU, Windows 11, and Raspios

2024-10-23 Thread G.W. Haywood

Hi there,

On Mon, 21 Oct 2024, Jakob Bohm via wrote:

On 2024-10-19 14:09, G.W. Haywood wrote:

On Fri, 18 Oct 2024, Ignacio wrote:


I am currently using a laptop that is running Windows 11 and I have
downloaded QEMU. However, I cannot figure out how to use QEMU to emulate
Raspios. Raspios does not use a .iso, but instead a .img. I was wondering
if there is a way around this or if I am complicating this process.


There surely is a way.  The two data formats you mention are different
because they are used for different purposes.

[Snipped Long ranty description of everything but how to use the files with 
qemu ]


Apologies if you found my post ranty.  It was intended to help with an
understanding of the differences between ISO files and filesystem image
files.  Nothing more.


The rant got a lot of details wrong, so don't use it.


Apologies too if there were mistakes in my rant.  In fact it was just
a draft, which I sent by accident - and from the wrong email address.
If you would be kind enough to mark with an 'X' any details which you
found to be wrong, even if it helps no-one else it may help me to get
things clearer in my mind and hopefully avoid misleading anyone else.

Thank you.

--

73,
Ged.

Re: Common vlan with no host privileges

2024-10-23 Thread Narcis Garcia
+ Is there some way to just make guests have their simple SLIRP scenario 
and each one sees a single NIC with dynamically acquired 10.0.2.15 and 
10.0.2.16 IP addresses in same unified guests network?



El 23/10/24 a les 21:03, Narcis Garcia ha escrit:

In a Debian 12 host (Qemu 7.2.13), not using superuser privileges,
I launch VM1:
$ qemu-system-x86_64 -name "Windows XP" (...)
 -device rtl8139,netdev=net0
 -netdev user,id=net0,smb=/home/_all/public
 -netdev socket,id=vlan-winxp,mcast=230.0.0.1:1234
 -device rtl8139,netdev=vlan-winxp
and VM2:
$ qemu-system-x86_64 -name debian10
 -device rtl8139,netdev=net0
 -netdev user,id=net0,smb=/home/_all/public
 -netdev socket,id=vlan-winxp,mcast=230.0.0.1:1234
 -device virtio-net-pci,netdev=vlan-winxp

Then in guest VM1 first (default) NIC acquires address 10.0.2.15/24 and 
I configure manually second NIC to have address 192.168.139.1/24
In guest VM2 first (default) NIC also acquires address 10.0.2.15/24 and 
I configure manually second NIC to have address 192.168.139.139/24


 From VM1 I ping to 192.168.139.139 with result "Timeout"
 From VM2 I ping to 192.168.139.1 with result "Destination Host 
Unreachable"


My goal is to make a Windows XP (VM1) access old Samba in Debian 10 
(VM2), and VM2 accesses to host smb/qemu resource. Both guests should 
reach WAN/Internet through user net (virtual gateway 10.0.2.2)


My questions:
1. What do I need to add to command line so communications between 
guests works?
2. Is there some documentation about fd= and localaddr= parameters I 
found on web comments? What are they intended for?


Thank you.



--
Narcis Garcia