On Wed, 2 Jul 2025, Brook Milligan wrote:

Does the user running QEMU matter beyond being able to read the files (disks, 
network device, etc.)?


It does, in some cases. For instance, if QEMU is setup to use "user" networking
(`-netdev user,id=net0,hostfwd=tcp::5555-:22', say), so that you can run it
as any user, then you'll find that inside the VM, ping(8) doesn't work because:

1. QEMU is running as a regular user.

2. ping(8) needs to run as root, so,

3. QEMU does its best by transforming ICMP requests into UDP echo (port 7)
   packets, which of course won't return any replies from most sites these days.

Just an FYI.

-RVP

Reply via email to