Install and configure UbuntuServer in Hyper-V

Source: Internet
Author: User
Background UbuntuLinux has released version 11.04. Currently, Ubuntu, which can run efficiently in WindowsHyper-V, has two release versions (11.04 and 10.10 ). Because the Hype-VIC module has been compiled in the kernel of javastuserver, you only need to perform simple configuration so that the kernel can run efficiently by loading the Hyper-VICmodule at startup. Download and install media UbuntuLinu

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

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Related Article

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.