VirtualBox: Host can not SSH to Guest - windows-10

i'm having some issue with m VirtualBox installation, 6.1.22.
I have a VM with SUSE (SL12P1) for 64bit as a guest operative system, I have already installed the extension package and I'm trying to reach the guest from the host-system (Windows10) using ssh.
I have set the network adapter as "Bridge", in this way the guest has a 192.168.120.x IP, which i verified with ifconfig while the host has an IP of 192.168.120.y.
I can ping the guest from the host, but I cannot ssh the guest from the host system.
Notice that:
The firewall has been disabled
I have enabled Hyper-V virtualization.
I have tried setting the network adapter as NAT, and use port forwarding, but the ssh does not work either

The firewall for SuSE was active by default, after disabling it everything worked.

Related

not able to access virtual machine centos from other computers

I have setup apache on centos 7 vm inside ubuntu host. I can access the webserver my giving ip of guest on the host fine. But, If I try to access it from another computer on the network , it does not work. I cannot even ping to my guest vm ip from other computers.there is no firewall in centos and no selinux.please advise.I am using KVM
Check your route
apache2 restrictions
/etc/sysconfig/network-scripts/ifcfg-??
when you say you can access do you mean when on the host you can access the host? if this is the case can you ping out? alot of info is missing to determine what is wrong
if it is and I am guessing the configuration on the network device make sure to systemctl restart network when you are done

How to install whm,cPanel in my laptop?

I want to install whm & cpanel in my laptop. I install centOs 6.4 using oracle virtualBox as per instruction/iso in http://www.comunidadhosting.com/t/tutorial-de-como-instalar-cpanel-en-localhost.18879/.
After install it i check IP and it show me 10.0.2.15 . but my main problem is I am not able ping to guest machine from my host. When I ping from my guest to host machine then it's working fine , and host get internet access also.
I use NAT in networking.
Can any body tell me what is the problem and how to solve it ?
You need to check if you have a bridged connection OR a NAT connection with the outside host network. Both should have the same network connection and IP may be same/different.
And, if you have done this, then you need to disable the firewall on the guest-machine side so that your host machine could connect to the VM.
Your ping may then be failing because of getting blocked by the VM's firewall.

Cannot access ubuntu server from other machines other than the machine which is hosting the virtual machine which is my ubuntu server

I created a ubuntu server on vmware. I am using it as a file server. I can access it if I am connecting through the machine which hosts the virtual machine. I am not able to do it from other machines which are on the same network. Thanks in advance!
First of all make sure in the setting of the virtual machine that it is in Bridged Adaptor type connectivity.
Give a static ip to the virtual machine using
sudo ifconfig eth0 10.0.0.100 netmask 255.255.255.0
the above is an example. You got what I mean.
3.Third, Try pinging the virtual machine with the base machine running the vbox to make sure they are connected.
ping ipaddress-basemachine
4 . Now if everything is working fine from there then connect with this virtual machine with other base machine using Remote Desktop Viewer or any other similar application.
Specify, the ip-address of the vbox and username, password. It will be able to connect with it now.
5 . If it still is not able to then try to check the firewall rules on both the virtual box machine and the base machine running the vbox using the command
iptables -L

Moving a VirtualBox .vdi Linux machine to a new host computer

I've been happily using an Ubuntu 12.04 VM as a webserver with a static IP running on VirtualBox on my Windows 7 machine for a few months (working on it from the host computer, bridged network connection, accessing via SSH from host and sharing folders through windows).
In /etc/network/interfaces, I've got:
address 192.168.1.112
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 194.168.4.100 194.168.8.100
I tried creating a new VM with it on my Win7 laptop by copying across the .vdi and creating a new VirtualBox machine with it, then changing the static IP to 192.168.1.116, but I'm not getting any network... It can't ping anything, when I try to SSH into the VM, it says "connection rejected" and it doesn't show up anywhere in my Windows network.
Can anyone shed any light?
"Perryg" on the VirtualBox forums solved it:
Edit the /etc/udev/rules.d/70-persistent-net.rules, or you can delete the rules and Linux will configure it on the next boot.
That's all there was to it.

Accessing guest (Ubuntu) localhost from host (Windows)

Is there any way to access guest's localhost through a browser inside the host? I am running Ubuntu with Virtualbox on Win7.
You can configure network interface for guest system. E.g. bridge should help you.
Or you can use port forwarding through NAT.
Look at official docs to more info.

Resources