Varinder Singh

Virtiual Machine

November 7, 2008 · Leave a Comment

Today’s SYA710 Lab was about Virtual Machine. It was a nice experience while setup as FreeBSD virtual machine & configure that virtual machine so that user should be able to login to matrix account.

Host fedora machine is set to forward packets
ip 192.168.122.1
#echo 1 > /proc/sys/net/ipv4/ip_forward

Then setup NAT Table
iptables -t nat -A POSTROUTING -o eth1 -J MASQUERADE

Virtual Machine
192.168.122.2
Add route on virtual machine to fedora

route add 0.0.0.0 192.168.122.1.

its working
I was able to ssh FreeBsd virtual machine from host machine as well as from another machine from network by setting up tunnel. (Prof Raymond Chain who Helps alot)

the command was

ssh -L 9022:192.168.122.2:22 joker@142.204.141.189

the X window was working.
Thanks to prof Raymond chain & Johan Selmys

Categories: Uncategorized
Tagged: