Hyper-V UBUNTU 12.04 template settings

Source: Internet
Author: User

Ubuntu 12.04 Template settings

Reference documents
    1. Hyper-V installs Ubuntu

Http://blogs.msdn.com/b/virtual_pc_guy/archive/2012/05/02/ubuntu-12-04-under-hyper-v-on-windows-8.aspx

Https://technet.microsoft.com/zh-cn/library/dn531029.aspx

http://baudlabs.com/how-to-install-hyper-v-integration-services-in-ubuntu-12-04-lts/

Http://www.tuicool.com/articles/BBfUb2

Http://blogs.technet.com/b/mtc_beijing/archive/2011/05/10/hyper-v-ubuntu-server-11-04-10-10.aspx

    1. Ubuntu System Installation

Http://jingyan.baidu.com/article/6dad5075dd615ca123e36e00.html

http://wlx.westgis.ac.cn/867/

    1. Linux Agent Template Installation

Http://technet.microsoft.com/zh-cn/library/jj860429.aspx

System Installation
    1. Create a virtual machine

Select a first-generation virtual machine

Select configuration

Select System version

    1. Start installing virtual machines

Confirm Chinese

Load Build

Host Name

Enter a user name description (just describe the user name that is not real)

Real user Name

Whether

Select Entire disk

Is

Start configuration Disk

Select the first one

Reboot to complete the installation

System Installation Complete

    1. Configure Ubuntu Chinese Support

Install the Chinese font sudo apt-get install language-pack-zh-han*

1. Edit the /var/lib/locales/supported.d/local file and change the contents to read as follows:

en_US. UTF-8 UTF-8
Zh_cn. UTF-8 UTF-8
Zh_cn. GBK GBK
ZH_CN GB2312

2. Locale regeneration:sudo locale-gen

3. Modify the default encoding to ZH_CN. UTF-8

sudo vi/etc/default/locale

The contents are:

Lang= "ZH_CN. Utf-8″
Language= "Zh_cn:zh"
Lc_numeric= "ZH_CN. Utf-8″
Lc_time= "ZH_CN. Utf-8″
Lc_monetary= "ZH_CN. Utf-8″
Lc_paper= "ZH_CN. Utf-8″
Lc_name= "ZH_CN. Utf-8″
Lc_address= "ZH_CN. Utf-8″
Lc_telephone= "ZH_CN. Utf-8″
Lc_measurement= "ZH_CN. Utf-8″
Lc_identification= "ZH_CN. Utf-8″

4. exit, and then re-login in should be OK .

Create a template
    1. View Kernel

Since more than 3.8 of the cores already support hv_balloon, there is no need to upgrade the kernel

    1. Enable Hyper-V IC module

sudo vi/etc/initramfs-tools/modules

Insert

Hv_vmbus

Hv_storvsc

Hv_blkvsc

Hv_netvsc

sudo update-initramfs –u

重启机器sudo shutdown -r now

View Process Lsmod

    1. Install Daemons

# Apt-get Update

# Apt-get Install Hv-kvp-daemon-init

New Installation Source

Vi/etc/apt/sources.list

Add Deb http://archive.ubuntu.com/ubuntu/trusty-proposed Main

# Apt-get Update

# apt-get Install Linux-tools Linux-cloud-tools

# apt-get Install linux-tools-virtual linux-cloud-tools-virtual

    1. Install Agent

Need to install the following Linux agent

We directly convert the proxy file to ISO, which allows Linux to load the CD directly

making ISO method http://jingyan.baidu.com/article/fec4bce224b662f2618d8bb9.html

chmod +x Install

sudo./install Scvmmguestagent.1.0.2.1059.x64.tar

The agent must be installed. He used Linux to create a template, and once the template installation is complete, the agent is automatically deleted.

When you are done, shut down and tap the VHD file

Hyper-V UBUNTU 12.04 template settings

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.