Ubuntu 12.04 Template settings
Reference documents
- 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
- Ubuntu System Installation
Http://jingyan.baidu.com/article/6dad5075dd615ca123e36e00.html
http://wlx.westgis.ac.cn/867/
- Linux Agent Template Installation
Http://technet.microsoft.com/zh-cn/library/jj860429.aspx
System Installation
- Create a virtual machine
Select a first-generation virtual machine
Select configuration
Select System version
- 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
- 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
- View Kernel
Since more than 3.8 of the cores already support hv_balloon, there is no need to upgrade the kernel
- 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
- 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
- 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