Access host cmd from guest - virtualbox

I'm running Slackware as a guest on Win 7 Virtualbox as host. On the Slack i'm running ssh server which i can access from outside (by port forwarding). Is there a way to issue a commands on host (for e.g. start host's ssh server) via ssh server on guest?

No.
If there is no SSH Server running on your windows machine (the host), there is no way to use ssh from the guest OS...

Related

How to set Virtualbox centos 7 client to share host vpn

I need to access vpn of host from my virtualbox vm centos.
But search and tried several method failed.
Environment:
Host: Win10
VPN: shadowsocks-windows
Virtual box 5.2
Client: Centos 7
Search from google, many set virtualbox to use Bridge mode.
Here I use NAT mode and passed.
Enable shadowsocks to allow local network connection
Set Virtualbox to use NAT network Adapter
Get virtualbox network adapter ip by run cmd in centos consle: $ ip route show
Set Centos network proxy to use virtualbox network adapter ip and shadowsocks server port, by default is 1080
Then enjoy!
The following looks a good answer to the question:
virtualbox guest os through vpn
https://superuser.com/questions/987150/virtualbox-guest-os-through-vpn

Zeppelin on AWS EC2 (Ubuntu instance)

I installed Apache Spark and Zeppelin on an Ubuntu instance running on AWS. Zeppelin is starting fine and when I check the status it is OK:
sudo ./bin/zeppelin-daemon.sh status
Zeppelin is running [ OK ]
But I can not use the "ip address":8090 to see the zeppelin webpage and create notebooks. The IP address I am using is the public one AWS give me (and I changed the port to 8090 in zeppelin-site.xml).
Should I change the server address in the zeppelin-site.xml?
Zeppelin is indeed running on port 8090 on that server, but the port is not accessible externally -- that is, it can only be accessed from the server itself.
No fear! You can use port forwarding to connect to it.
Linux
ssh -i keypair.pem -L 8090:localhost:8090 user#<IP-ADDRESS>
This tells SSH to forward any requests sent to port 8090 on the local computer to the remote machine's localhost:8090. Therefore, you can access Zeppelin via localhost:8090 on your computer.
Here's an example of it in use: Big Data: Amazon EMR, Apache Spark and Apache Zeppelin – Part 2 of 2
PuTTy
If you are using PuTTY to connect to the host, there is a similar command in the Tunnels configuration screen. Redirect 8090 to localhost:8090 on the remote machine.

HDP Sandbox 2.3 on Virtualbox - Guest unable to access host network

I have a HDP 2.3 Sandbox (CentOS) on VirtualBox with Windows host.
I want the sandbox guest machine to access the host network i.e. to access the machines in the company's network that host can access.
I have both the NAT and the host only adapter configured for the VM.
VirtualBox Network Configuration
Host ipconfig shows this
VM Network Settings
After these, i started the sandbox VM, but still i am not able to ping a machine on the host network from the VM.

how to ping guest xp from host ubuntu in virtualbox?

I have a ubuntu in my lap top and install virtualbox. I install an xp as guest in vbox.
I want to have access to guest from host for penetration usage.
#1st try: the guest uses bridge network with ip 192.168.1.103 (assigned static).
I can not access guest form host, when I ping the guest, loosing all packages.
ping 192.168.1.103
But I can access host form guest, when I ping the host.
ping 192.168.1.101
#2nd try: the guest uses an NAT and a Host-Only network.
same as above host can not access the guest:
ping 192.168.56.103
but guest can access the host:
ping 192.168.56.1
who can I access the guest from host?
As you can ping host from the guest, it tells that the connection is working ok both ways (response comes back ok). The problem probably is that XP has not been configured to answer to ping requests so it's silently discarding them. You need to change the settings of the firewall to allow answers to ping.
See for example http://kb.iu.edu/data/aopy.html for details how to enable ping service in different Windows versions with the default firewall.

Connecting to Web Service in VM from client in host

I'm running Ubuntu 10.10 in VirtualBox with Windows 7 as host. I have a java Web Service which I deploy onto a Glassfish3 server in Ubuntu and I want to be able to reach it from the host, according to the VBox documentation I should port forward port 8080 which is the port that my client application connects to on my host. To do this I do the following command in Windows VBoxManage modifyvm Ubuntu --natpf1 glassfish,tcp,,8080,,8080 which should forward my hosts 8080 port to my VM's 8080 port, but it doesn't seem to work when I try to reach it. Any ideas?
Ensure 8080 is not already used by some other process in Windows. Install Guest Additions from the ISO inside Ubuntu. Ensure you are using NAT as the option for networking. Ensure the firewall in Ubuntu does not block incoming requests.