Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 0 down vote accepted

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

auto eth0
iface eth0 inet static
    address 192.168.1.217
    gateway 192.168.1.1
    netmask 255.255.255.0 
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
add comment

Your Answer

 
discard

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.