22 replies [Last post]
Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 7 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

I got a new computer recently and it came with Vista (apparently you can't get XP anymore as all the CDs were sent back to MS when Vista came out) which means that the only way I can test IE6 pages now is to use a VM. That works fine when I'm just opening HTML files, but does anyone know how you go about setting up the VM so that it connects to the web server running on the host machine?

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Tags:
Phreestyle
Phreestyle's picture
Offline
Enthusiast
Australia
Last seen: 6 years 46 weeks ago
Australia
Timezone: GMT+8
Joined: 2007-05-12
Posts: 235
Points: 6

Hi Tyssen, Tyssen wrote:I

Hi Tyssen,

Tyssen wrote:
I got a new computer recently and it came with Vista (apparently you can't get XP anymore as all the CDs were sent back to MS when Vista came out) which means that the only way I can test IE6 pages now is to use a VM.

It is possible apparently (though a bit of a nighmare) to downgrade to XP with your existing Vista license. Here is a link to the M$ take on this situation. You can find other info by Googling 'Downgrade Vista'. The link is a PDF, so be aware.
http://download.microsoft.com/download/5/f/4/5f4c83d3-833e-4f11-8cbd-699b0c164182/royaltyoemreferencesheet.pdf

It is possible to link your VirtualPC to your host machine, as i currently run a similar set up.

However, I've just got to take a client out to lunch, so will be out for an hour or so, but then I'll try to remember how I set it up.

Cheers

Life's a journey. Enjoy the trip.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 46 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Tyssen I've just gone

Tyssen I've just gone through the exact same problem, working for a new startup we had Vista on the new workstations and when setting up mine and trying to replicate my testing environment i.e install IE6 found that I couldn't run the tredsoft standalones. Installed VirtualPC 2007 along with the dev XP/IE6 image from MS and could access my local machine using file protocol but although the virtualpc registered as a machine on our local lan could never access my local server or the lan dev server.

In the end I went through the setup new network (likely not necessary) then edited the hosts file on the virtual OS and, I think , most importantly unchecked the default use proxy server in the internet connection settings of IE6, after all these stages I could at last navigate the entire network via http and see all the workgroup machines in network neighborhood.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Phreestyle
Phreestyle's picture
Offline
Enthusiast
Australia
Last seen: 6 years 46 weeks ago
Australia
Timezone: GMT+8
Joined: 2007-05-12
Posts: 235
Points: 6

Okay, first a couple of

Okay, first a couple of provsios. I'm running XP on my host machine. I don't know if the security settings on Vista will have any effect on your setup. Also, I run 2K3 on my Virtual PCs, but that shouldn't make any difference.

In the virtual machine console.
1. settings>networking
2. On the adapter 1 dropdown, select the NIC installed on your host machine
3. Click okay

In your virtual machine.
1. configure the proxy settings in IE to connect to your proxy server.
2. configure your tcp/ip stack so the VPC is on the same network as your host machine.
3. Ping the host machine. Hopefully, you will be good to go.

After that you need to navigate via IE to your own Apache root folder. Fingers crossed, it should work.

Life's a journey. Enjoy the trip.

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 10 years 10 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

I realise you aren't using

I realise you aren't using VMWare, perhaps the same options exist. VMWare has three network options:
- Share host connection (NAT)
- Connect directly to physical network (bridged)
- Connect only to host.

The bridged connection gives the VM a presence on the same network as the host.

Fwiw, its my understanding that M$ VM options are considered poor relations to others. You may want to try XenExpress, VMWare Workstation or VMWare Server

You should also be able to get XP preinstalled, http://www.channelregister.co.uk/2007/09/28/microsoft_xp_deadline/, in the UK both HP and Dell still offer machines with XP.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 7 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Chris..S wrote:You should

Chris..S wrote:
You should also be able to get XP preinstalled

I could've done that locally by getting a machine custom built but the place I bought it from was offering 40 months interest free. Smile

So I've managed to be able to access my local sites after changing the proxy settings inside IE but when I'm using the proxy server for my LAN, I can't browse anything on the Internet. It's not that big a deal cos I can just turn the setting off and on but is there a way to have them running at the same time?

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 10 years 10 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

Does this help? Also this

Does this help?

Also this tutorial.

Phreestyle
Phreestyle's picture
Offline
Enthusiast
Australia
Last seen: 6 years 46 weeks ago
Australia
Timezone: GMT+8
Joined: 2007-05-12
Posts: 235
Points: 6

Tyssen wrote:

Tyssen wrote:

So I've managed to be able to access my local sites after changing the proxy settings inside IE but when I'm using the proxy server for my LAN, I can't browse anything on the Internet. It's not that big a deal cos I can just turn the setting off and on but is there a way to have them running at the same time?

I'm a little confused - is this occuring (or not) on the host, the guest or both?

In theory, the Virtual PC (as long as it is configured appropriately) should function like any other client on the network. How are IP addresses being assigned? DHCP or static?

Life's a journey. Enjoy the trip.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 7 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Chris..S wrote:Does this

Chris..S wrote:
Does this help?

I don't have the option they talk about in that link.

Chris..S wrote:
Also this tutorial.

That one made my head hurt. :?

Phreestyle wrote:
I'm a little confused - is this occuring (or not) on the host, the guest or both?

In theory, the Virtual PC (as long as it is configured appropriately) should function like any other client on the network. How are IP addresses being assigned? DHCP or static?

It's happening on the guest, not the host. And IP addresses are static (I think - server config isn't my strong point).

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Phreestyle
Phreestyle's picture
Offline
Enthusiast
Australia
Last seen: 6 years 46 weeks ago
Australia
Timezone: GMT+8
Joined: 2007-05-12
Posts: 235
Points: 6

Sorry Tyssen, I'm unable to

Sorry Tyssen, I'm unable to replicate the issues you're having, so any input I give is in the realm of speculation. Also, I'm not very familiar with Vista.

There are two areas I would look at:
1. a MAC address conflict - brought about by two machines using the same physical network interface. This may be causing conflicts if your ip addresses are dynamically assigned.

2. Firewall configuration - I removed the firewall completely from my VPC and configured an exception on my host when I set the VPCs up.

I guess it depends how much trouble you want to go to.

I would be really interested to know if you get the issues sorted.

Cheers

Life's a journey. Enjoy the trip.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 7 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

I'm revisiting this topic

I'm revisiting this topic because I got migrated to ADSL2+ last week and now the fix I used before (setting the proxy server address inside the guest's internet options to be that of the host machine) no longer works. Apart from the increased speed, the other change was that I was on a dynamic IP address, now I'm on a static one.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Triumph (not verified)
Anonymous's picture
Guru

Tyssen wrote:I'm revisiting

Tyssen wrote:
I'm revisiting this topic because I got migrated to ADSL2+ last week and now the fix I used before (setting the proxy server address inside the guest's internet options to be that of the host machine) no longer works. Apart from the increased speed, the other change was that I was on a dynamic IP address, now I'm on a static one.

Do you have a router between th ADSL2+ and one or more computers? I'm just asking because when I run VPC the virtual machines show up on the DHCP client list on my router. Maybe they can be accessed via their name or possibly their IP.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 7 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Yeah, I've got a

Yeah, I've got a modem/router which the host PC is connected to. I was able to use the IP for the host computer before, but now that's not working.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 46 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

As we're revisiting things

As we're revisiting things can you try running through my previous post and trying some of what I've mentioned , to get my vpc running I had to ensure that it wasn't running proxied, if things are still unresolved, when I get to work I'll copy down my settings and post them .

The fact that you have switched to fixed IP should make no difference to matters as that should just be a fixed public IP what occurs within your network should remain roughly the same, unless of course you are dealing with BT as I am who have a different method of IP addressing from the rest of the world.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 7 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Right, well that's really

Right, well that's really annoying. Somehow the IP address of my host computer got changed from ....2 to ....3. So there's me banging my head against the wall trying all manner of things because I just assumed the IP address of the host computer would be the same. :? Does the last digit of the IP address have anything to do with the port number on the back of the router? Because the PC's still plugged into number 2.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 46 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

No that shouldn't matter

No that shouldn't matter.

Same thing happened to me with dhcp address changing like that and never was quite sure why it happened, one thing that can be done, while remaining NATed, is to set a range of fixed internal IPs e.g 192.168.0.100 - 110 that will be assigned and always remain the same using some form of 'address reservation' that ensures a certain machine receives the same LAN IP each time

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 7 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Related but slightly

Related but slightly different question: how do you get Linux virtual machines to connect to servers set up on the host machine?

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Phreestyle
Phreestyle's picture
Offline
Enthusiast
Australia
Last seen: 6 years 46 weeks ago
Australia
Timezone: GMT+8
Joined: 2007-05-12
Posts: 235
Points: 6

Hi Tyssen,

Hi Tyssen,

You just need to ensure that all your machines (both virtual and real) are on the same network. Ie, the network portion of your server and clients IP addresses must be the same. Your subnet mask differentiates which part of the ip is network and which part is individual.

eg.
10.8.4.x (10.8.4. = network; x = client)*

255.255.255.0 ( indicates that the first three octets of the IP are network)

10.8.4.254 (= ip address of your default gateway - ie your router)

Your actual IP addresses will be different than my examples, but the principle is the same.

*Each client must have a different number between 1 and 254

Life's a journey. Enjoy the trip.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 7 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Yeah, I've got the IP

Yeah, I've got the IP addresses sorted. But what do you configure in Linux to tell it which addresses it should be looking for?

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 10 years 10 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

Which what who?

Which what who? Shock

To alter domains from remote addresses to local addresses, or to set up specific names for other machines on your local network, edit your /etc/hosts file. Its the same format as the similar file, \windows\system32\driver\etc\hosts, in windows.

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 8 years 7 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Chris..S wrote:edit your

Chris..S wrote:
edit your /etc/hosts file

Right, that's what I wanted to know. I'm a complete Linux newbie so didn't know that's what I was s'posed to be looking for.

My next problem though is that I've found the file, but I don't have write access permissions to edit it. I'm running Knoppix (cos it includes both Konqueror and Iceweasel [Firefox]) as a virtual machine.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

Chris..S
Chris..S's picture
Offline
Moderator
Last seen: 10 years 10 weeks ago
Timezone: GMT+1
Joined: 2005-02-22
Posts: 6078
Points: 173

You need to have root

You need to have root permissions to edit it. "su" or "sudo su" to swap from your current user to root. For "su" you need to know the root password. For "sudo su" your user needs to be in the sudoers file with permissions to do 'most anything, and you need your own password.

You may want to try Ubuntu. Its a snip to set up and can run both of those too.

Triumph (not verified)
Anonymous's picture
Guru

I don't know if this has

I don't know if this has anything to do with your issue but I was having trouble connecting to a Virtual machine on my vista box (I needed to run XP for a legacy web app that uses an access 2003 database...boo and Vista just will not connect via Jet ODBC)

It used to be visible on my dhcp list until I moved the vista box to a static IP out of the range of the dhcp list (so I could get to it from the outside world and the ip would remain fixed). Now the virtual pc being on an out of range IP'd computer didn't show up anywhere (not even on the vista machine).

Under the vpc settings -> networking the network adapter was set to "Shared Networking (NAT)" so I switched the network adapter to my actual ethernet adapter and I set a fixed IP under the TCP/IP panel. After rebooting the virtual machine I could access it via its new fixed IP.