In order to see network adapter you need to type ifconfig -a Click Host-Only Networks if you don't see a host only network click + icon to add one.Click File > Preferences > Networks Under NAT Networks if you don't see a NAT Network click on + icon to add NAT Network.Click Adapter 2 and choose Host Only Adapter.Click Settings > Network Click Adapter 1 and choose Bridged Adapter.So my solution was to add a second network adapter. Opened up Wireshark and it just wasn't finding VM. I tried Port forwarding as well and no joy. If I tried Host Only Adapter then that would allow me to SSH to machine but couldn't access the Internet. If I tried NAT or Bridge I could access the Internet but couldn't connect via SSH. In my case I had Ubuntu Server 14 VM running on a Windows 8 Desktop in Windows 2008 domain. My resolution was similar to Roman T's however I needed to add a few extra steps. In the output you should have line like this one: 0 0 ACCEPT tcp - * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 ctstate NEW ![]() In the VM type this command to show you the iptables, VM # iptables -nvL INPUT Next you neet to make sure that you are not blocking port 22 in your firewall/iptables, I can not believe so, but check it out anyway. You can test if the service work correctly by trying to ssh to it from the VM it self, VM # ssh 127.0.0.1 This tell as we have a service/process with PID(2361) called sshd (OpenSSH daemon) listening to port 22. If you get ant result, then make sure you have a ssh service running on the VM, in the terminal on your VM type as root, VM # netstat -lnpt | grep 22 ![]() In this case my IP address will by 10.0.2.15,įirst try to make sure you can communicate on a basic level with VM, open a terminal window on your host, and try to ping the VM HOST # ping 10.0.2.15 ![]() (and no 127.0.0.1 is not the machine IP address) VM # ip addr showġ: lo: mtu 16436 qdisc noqueue state UNKNOWN First you need to decide if your VM connected to your host machine via a bridge connection or via a NAT, but ether way you'll need to put the VM IP address in putty to be able to connect to ip, in the VM terminal run this command to show you the machine IP address
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |