virtual host networking problem

Custom / CUSTOM
October 2, 2014 at 12:42:52
Specs: linux virtual client - Windows host, 2.401 GHz / 2047 MB
I've got this setup; a regular virtual Linux client in a Windows 7 host

I had Bridged network setup, but I don't like the fact the IP of the client (Linux) follows the one of the host. Meaning; it changes a lot.

So, I need a fixed IP. Got that, using Host-Only setup ... but :
I also want to run X-tools on that Linux client. I don't want to setup a GUI on Linux, so I wanted to use my Windows host as the X DISPLAY.

But, the Linux client cannot connect to the host, on network level. If I set that IP in Linux, he cant forward X tools to my Windows. I cannot ping from Linux to Windows.

I guess that is normal, in the chosen setup. When I had bridged network, doing that was no problem.

So, question is; how do I get both:
- fixed IP in Linux
- able to use X-tools on Windows (which should mean to ping from Linux to Windows)

Thanks


See More: virtual host networking problem

Report •

#1
October 2, 2014 at 14:35:40
You need to give more details.

What VM software are you using?
How does your computer get its IP address? From a home router or directly from the ISP?
How exactly are you connected to the Internet?
Why does you computer's address change?
What network range does you host computer use?
Is this your own network or a work or college one?

The IP address of a VM client using bridged networking shouldn't "follow" that of the host; it just presents the host's network card to the VM which can then set it to a fixed or dynamic address independently of how the host is using it. This does assume that you control the addresses on the range that you are using. For example, if you were trying to do this on a work network you would have to ask the network administrator to give you a fixes address to use.


Report •

#2
October 2, 2014 at 15:07:12
I'm not familiar with x-tools, and correct me if I'm wrong, but it sounds like it (x-tools) is some kind of Linux application and you want to run it under windows.........is this correct?

It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.

***William Henley***


Report •

#3
October 3, 2014 at 10:42:59
> I'm not familiar with x-tools, and correct me if I'm wrong, but it sounds like it (x-tools) is some kind of Linux application and you want to run it under windows.........is this correct?

X-server is Linux/Unix client/server software that can send graphical output to any network client, even if running Windows. A Windows client needs to run some tool like MobaXterm.


Report •

Related Solutions

#4
October 3, 2014 at 10:47:53
> What VM software are you using?

VirtualBox

> How does your computer get its IP address? From a home router or directly from the ISP?

From a router

> How exactly are you connected to the Internet?

The Windows machine via the router
The Linux virtual machine doesn't need to be connected

> Why does you computer's address change?

Cause I log on to different physical networks

> Is this your own network or a work or college one?

My own, and a corporate one


Report •

#5
October 3, 2014 at 10:58:55
-> The IP address of a VM client using bridged networking shouldn't "follow" that of the host; it just presents the host's network card to the VM which can then set it to a fixed or dynamic address independently of how the host is using it. This does assume that you control the addresses on the range that you are using. For example, if you were trying to do this on a work network you would have to ask the network administrator to give you a fixes address to use.

By "following" I meant to say he is using a similar IP than the one of the host, not the same one of course. On the home network I'm the admin, but the router is just distributing IP's, whereas on the corporate network it's some DNS server.


Report •

#6
October 3, 2014 at 14:08:34
X-server is Linux/Unix client/server software that can send graphical output to any network client, even if running Windows. A Windows client needs to run some tool like MobaXterm.

So I guess this leads me to my next question which is, why aren't you just doing this under Lilnux rather than a VM inside Windows?

Seems like a whole lot of extra messing around to get at the software you need. Could you not just have a second Linux computer in your office?

Or alternatively, create a bootable Linux/UNIX based DVD with x-tools on it and just boot to it when you need to run x-tools and then save the results to a flash drive, the HDD or send them to another network client?

It matters not how straight the gate,
How charged with punishments the scroll,
I am the master of my fate;
I am the captain of my soul.

***William Henley***


Report •

#7
October 3, 2014 at 14:18:15
So you want to fix the IP address although you are using different networks. The VM doesn't need to connect to anything other than the host machine. New information and an altogether different problem.

Solution: Use bridging and set up an additional IP address on you computer's network adapter, say 10.0.0.1. Set the IP address of your VM to 10.0.0.2. (This assumes that neither your home nor work networks use that range - if they do just pick a unique range that differs from the other networks). You should then be able to ping 10.0.0.2 from the host machine. If that doesn't work (without actually trying it I'm pretty sure it should) then you may need to set up a static route on your computer for the 10.0.0.2 device.

In other words, you just set up a private network that connects just the two devices.


Report •

#8
October 21, 2014 at 09:29:28
That may work, but that means I have to change a computer I don't own (corporate laptop) and maybe lacking administrator rights as well. Additionally, during that setup, I won't have any usable network, but especially the fact that I maybe mess up my laptop's network connection in the long run, I don't like that too much. I know you just "have to reset an IP", but I've been down that road again, 1001 network properties. One wrong and nothing works.

Changing the client as much as you want, but the host has to remain untouched.


Report •

#9
October 21, 2014 at 09:32:30
So, the whole concept of virtual software, preventing needing to actually setup a physical machine, or making a multi-boot, is the best idea if you want to test some Linux.

Yes, before virtual software existed, that was true. And, I did all that, both installing Linux and setting up multi-boot Windows/Linux.

Let's get back to the ninetees ! Where's my Linux CD-ROM ?


Report •

#10
October 21, 2014 at 09:33:40
Oh yeah, got a solution. When starting up, I just adapt my /etc/hosts to the IP I have at that moment. End of story. Not manually, but via script.

message edited by tvc


Report •

#11
October 22, 2014 at 03:09:40
VMware has better features to manage networking.
VMplayer 4.0 Is still free for home users.

Report •

#12
November 29, 2014 at 13:17:03
Does it run Vbox images ?

You know, there is a difference between VMW and Vbox, but I'm not going to switch every time there's an issue with either one, cause very likely the images are not compatible, and thus I'll need to rebuild images.

No ?

Unless you say that VMW is better ON EVERY LEVEL compared to VBox, I may reconsider, when I start a new project.

message edited by tvc


Report •

Ask Question