pe...@easthope.ca wrote:

> Will be happy with telnet or ssh or ftp from the guest to the host. (I
> know telnet and ftp aren't secure but all is within one machine which
> runs shorewall.)  No other machine is involved, for now at least.
> 
> Thanks again,

https://wiki.qemu.org/Documentation/Networking

there are different ways to set up networking in the qemu.
I actually choose to take the "bridge" way so that I can set the IP via DHCP
on the local network (still not sure if it were possible the other way
around). At the end it looked like this

sudo qemu-system-aarch64 -nographic -no-reboot \
    -boot n \
    -machine virt,gic-version=max -m 2048 -cpu cortex-a53 -smp 4 \
    -device virtio-net-pci,netdev=vnet,mac=52:54:00:12:xx:xx \
    -netdev user,id=vnet,type=tap \
    -device virtio-blk-pci,drive=hd \
    -drive if=none,file=swap.qcow2,format=qcow2,id=hd \
    -kernel vmlinuz-4.19.0-13-arm64 \
    -initrd initrd.img-4.19.0-13-arm64 \
    -append "root=/dev/nfs rw \
     nfsroot=192.168.xx.xx:/opt/remote/nfsroot/rpi4b-arm64 ip=dhcp"



Reply via email to