Install and configure Ubuntu server 11.04 10.10 in hyper-V

Source: Internet
Author: User
Tags nameserver

Background

Ubuntu Linux 11.04 has been released. Currently, two Release versions (11.04 and 10.10) are available for ubuntu that can run efficiently in Windows hyper-v ). Because the hype-v ic module has been compiled in the Ubuntu server kernel, you only need to perform simple configuration, enables the kernel to load the hyper-v ic module at startup to run efficiently.

Download and install Media

For Ubuntu Linux 11.04 and 10.10, only the server version includes the hyper-v ic module. Therefore, you need to download the installation ISO for Ubuntu Server:
Http://releases.ubuntu.com/11.04/ubuntu-11.04-server-amd64.iso
Http://releases.ubuntu.com/10.10/ubuntu-10.10-server-amd64.iso

Installation Process

1. In hyper-V, create a VM for Ubuntu server, with 1-4 CPUs, memory greater than MB, Nic, and set to start ISO installation from Downloaded ubuntu.

If You Cannot initialize the VM, enter the patch (windows6.1-kb976932-x64.exe) of Windows Server 2008 R2 SP1 ). : Http://www.microsoft.com/downloads/zh-cn/details.aspx? Displaylang = ZH-CN & familyid = c3202ce6-4056-4059-8a1b-3a9b77cdfdda

2. Install Ubuntu Server properly
3. After the installation is complete, edit the file/etc/initramfs-tools/modules in Ubuntu server and add the configuration line at the end of the file:
Hv_vmbus
Hv_storvsc
Hv_blkvsc
Hv_netvsc
4. Run Update-initramfs and reboot system
# Update-initramfs-u
# Reboot
5. the hyper-v ic takes effect (enable) after the UT is started again. You can use the lsmod command for verification:
# Lsmod | grep hv_vmbus
Hv_vmbus 50431 4 hv_utils, hv_netvsc, hv_blkvsc, hv_storvsc
6. Set the IP address, gateway, and mask. VI/etc/Network/interfaces, add the following content:
Use static IP:
Iface eth0 Inet static
Address 192.168.83.200
Netmask 255.255.255.0
Gateway 192.168.83.2
Auto eth0
Use DHCP:
Auto eth0
Iface eth0 Inet DHCP
7. Add DNS, VI/etc/resolv. conf (New may be required), and add the following content:
Nameserver 192.168.83.2
8. Restart the network:
/Etc/init. d/networking restart

 

Let's take a look at how to configure your own DNS server in Ubuntu 12.04 lts server!

First, we need to create a file/etc/resolvconf/resolv. conf. d/tail:

# Vim/etc/resolvconf/resolv. conf. d/tail

Then, we will write the DNS server we want to add in this file. The format is consistent with the previous/etc/resolv. conf file:

Nameserver 8.8.8.8
Nameserver 8.8.4.4

Enter WQ to save and exit. Next, restart the resolvconf program to make the configuration take effect:

#/Etc/init. d/resolvconf restart

Go to the/etc/resolv. conf file and write the self-added DNS server! This is a perfect solution!

In 12.04, you can also use a simpler method:

Auto eth0
Iface eth0 Inet static
Address 192.168.1.2
Gateway 192.168.1.1
Network 192.168.1.0
Broadcast 192.168.1.255
DNS-nameservers 8.8.8.8 8.8.4.4

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.