Debian image IP?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
lencuff
Posts: 9
Joined: 18. Aug 2007, 11:19

Debian image IP?

Post by lencuff »

Not related to VB itself but I have managed to get a VMware image working in VBox now but I can't seem to change the IP address. I've added a line to the /etc/hosts file to change it from the current 174.x.x.x address to one within my own network but it won't change it? I use Unix everyday (Solaris) and I thought this would work!

Any good forums recommended? Or does anyone know the answer?
Cheers,
Len
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

You should read your distro's documentation. IP addresses aren't stored in /etc/hosts, it's stored in /etc/network/interfaces. The hosts file is only used to access specific machines that do not have a DNS entry available. As you don't give any information about the network setup for the Guest, we can't help you. Please provide that.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
lencuff
Posts: 9
Joined: 18. Aug 2007, 11:19

Post by lencuff »

This was a vmware image I was given on a course so no docs at all. Got it all sorted now, just needed to change the interfaces file to the correct IP and netmask.
Cheers,
Len
Post Reply