@smarkusg
Thanks for the reply
I was referencing this page:
https://wiki.qemu.org/Documentation/Networking------------------------
HERE IS A BRIEF SUMMARY:
------------------------
HOST NETWORK
Note that from inside the guest, connecting to a port on the "gateway" IP address will connect to that port on the host; so for instance "ssh 10.0.2.2" will ssh from the guest to the host.
You can configure User Networking using the -netdev user command line option.
Adding the following to the qemu command line will change the network configuration to use 192.168.76.0/24 instead of the default (10.0.2.0/24) and will start guest DHCP allocation from 9 (instead of 15):
-netdev user,id=mynet0,net=192.168.76.0/24,dhcpstart=192.168.76.9
You can isolate the guest from the host (and broader network) using the restrict option. For example -netdev user,id=mynet0,restrict=y or -netdev type=user,id=mynet0,restrict=yes will restrict networking to just the guest and any virtual devices. This can be used to prevent software running inside the guest from phoning home while still providing a network inside the guest. You can selectively override this using hostfwd and guestfwd options.
Enabling ping in the guest, on Linux hosts
Determine the main group ID (or one supplementary group ID) of the user that will run QEMU with slirp.
In /etc/sysctl.conf (or whatever is appropriate for your host distro), make sure that the whitespace-separated, inclusive group ID range in the net.ipv4.ping_group_range sysctl includes the above group ID.
For example, as root,
add a new group called unpriv_ping:
groupadd unpriv_ping
set this group for a number of users as another supplementary group (note, they will have to re-login):
for U in user1 user2 ... user_n; do
usermod --append --groups unpriv_ping $U
done
then set both sides of the inclusive range in the above sysctl to the numeric ID of the new group:
(
GROUP_ID=$(getent group unpriv_ping | cut -f 3 -d :)
printf 'net.ipv4.ping_group_range = %u %u\n' $GROUP_ID $GROUP_ID \
>> /etc/sysctl.conf
)
sysctl -p
--------------------------------------------------------------
Network HOWTOs
How to get SSH access to a guest
A simplest way is to forward a specific host port to guest port 22. It can be done via:
-device e1000,netdev=net0
-netdev user,id=net0,hostfwd=tcp::5555-:22
The first line creates a virtual e1000 network device, while the second line created one user typed backend, forwarding local port 5555 to guest port 22. Then we can do:
ssh localhost -p 5555
to have SSH access to guest after its network setup (don't forget to turn off firewalls if there is any in the guest or host).
I have to try better but there is something that escapes me and I can not solve.
In practice I have to first for example with:
SSH service status (linux servers)
which port is it using is therefore consequently to use that ?
with AmigaOS ?