Le 01/12/2014 04:11, Bruce Dubbs a écrit :

Let's say you are on machine A and want to run qemu (virtual system C) on machine B. If you want to ssh into the qemu system, how do the network packets get forwarded from A to C? The only way I could see to do that is via a bridge on B that has both the ip addresses for B and C.

Use port forwarding:

launch qemu (on machine B) with:
-net user,vlan=0,hostfwd=tcp::2222-10.0.2.9:22
(this needs the VM to be configured with a static IP, 10.0.2.9 in this example)

then use ssh <user>@<B address or B name> -p 2222 (on machine A)

where <user> is username on C machine. You can change 2222 to any value above 1024, which is not in use on your computer.

Pierre

--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to