[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Virtual Machines: Newbie / novice questions



On 15/05/17 02:27, Thomas Schmitt wrote:
For my VMs which shall be operated without graphics screen, i let qemu
forward a host port (here 4567) to port 22 of the guest, where a SSH
server will be set up by installation to offer login:
  qemu-system-x86_64 ... \
                     -net nic -net user,hostfwd=tcp::4567-:22

And if you want QEMU to listen only on localhost and not allow remote network connections, this becomes:

qemu-system-x86_64 ...
    -net nic -net user,hostfwd=tcp:127.0.0.1:4567-:22

Kind regards,

--
Ben Caradoc-Davies <ben@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand


Reply to: