Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Ubuntu latest server edition installed as VM on Hyper-V.

I get the command line, but need to install GUI desktop for which i need to have network available on ubuntu.

From the Hyper-V VM console, it shows that my Virtual network is configured for the VM, but from LinuxVM cmd-line unable to ping.

I have 1 NIC with LAN and static IPs available on the Host Windows 2008 R2 Server.

My question is how to configure network (LAN or static IP) on Ubuntu VM ?

share|improve this question
up vote 1 down vote accepted

For static IP, add to /etc/network/interfaces something like

auto eth0
iface eth0 inet static
share|improve this answer
Ok cool. I tried to open this file in vi. its weird, unable to edit, or give space delete characters. its making me nuts. I am able to type all characters on cmdline, so its no probs with keyboard (was detected correctly as us) – Munish Goyal Jan 25 '11 at 8:25
Are you editing it as root or via sudo? Or maybe you're not familiar with vi? You should press i to enable editing – Joril Jan 25 '11 at 8:28
ok, i did without sudo. even after pressing 'i' cannot use SPACE key. i have some exp. with vi in past. it is looking weird here. – Munish Goyal Jan 25 '11 at 8:44
Try using nano or pico, they are less picky :) – Joril Jan 25 '11 at 8:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.