Automated deployment of Microsoft private Cloud Sharing (R2) 6-linux

Source: Internet
Author: User

Windows Server R2 support for Linux is becoming more and more SCVMM2012 R2 deploying Linux (such as CentOS) is more valuable, such as supporting dynamic memory, running more efficiently, and so on.

There's a big difference between deploying Linux and Windows in SCVMM2012 R2, do you think "next" is going to work? That's impossible.

===== Pre-condition ========

Novice deployment of Linux through SCVMM2012 R2 failure, the main reason is not aware that Linux needs to install the corresponding components of VMM, according to Microsoft's Web site information, you may know that as long as the list of Linux version, the basic is supported, do not need to manually install the guest components, such as CentOS6.4, CentOS6.5, and red Hat, some specific versions of SuSE, and so on, are directly installed and will be supported.

But these support are still limited in comparison to Windows virtual machines, but at least dynamic memory support is good. If you want to deploy through a template like SCVMM2012 R2 and windows, you need to be aware that there is something you must install.

======linux installation Process ============

Let's review (and possibly learn) the process of making Linux templates

    1. Install a Linux virtual machine normally, then install the required software until the installation is considered complete.
    2. When you turn off the virtual machine, do you think you will have the option to make a template in SCVMM2012 R2? That's impossible.
    3. Go to the disk directory where the virtual machine resides, and copy the VHD files of the virtual machine to the library server.
    4. Refreshing the library server
    5. See this new VHD file, based on this, make a VM template.
    6. A fixed IP cannot be used during deployment, and deployment fails.


======= Yes, that would have been a failure ======================

What is the problem? Out in the 1th step, a key link is missing.

First we will log on to this Linux host and run the following command in turn: (SCVMM2012 R2 environment. )

After the installation is complete, open the VMM console and use the console connection for the underlying configuration. By default, when the CentOS installation is complete, the network card is not turned on, and you need to manually turn on the NIC function. Enter "Vi/etc/sysconfig/network-scripts/ifcfg-eth0" in the console, open the configuration file for the default network card, and modify "Onboot=no" to "Onboot=yes". After the modification is complete, press "ESC" → ":" → "w" → "q" to save the file.

650) this.width=650; "src=" Http://www.ny9s.com/wp-content/uploads/2014/05/051214_0826_1.png "style=" border:0px; margin:0px auto;padding:0px; "alt=" 051214_0826_1.png "/>

Enter service network Restart to restart the network service so that the modified configuration file takes effect. Then enter "Ifconfig", through the results of feedback, check the current virtual machine to obtain the IP address, the IP address obtained here is 192.168.136.111,

650) this.width=650; "src=" Http://www.ny9s.com/wp-content/uploads/2014/05/051214_0826_2.png "style=" border:0px; margin:0px auto;padding:0px; "alt=" 051214_0826_2.png "/>


Enter the installation directory of the SCVMM2012 R2 " c:\Program Files\Microsoft System Center 2012\virtual Machine Manager\agents\linux "Under, at this time can see 3 files, find a way to get these three files to a Web server, here I put is fs.contoso.com, in fact, if you understand the command, directly copied into the virtual machine can also.

650) this.width=650; "src=" Http://www.ny9s.com/wp-content/uploads/2014/05/051214_0826_3.png "style=" border:0px; margin:0px auto;padding:0px; "alt=" 051214_0826_3.png "/>

Then Linux executes the following command in turn:


wget fs.contoso.com/install.sh

wget fs.contoso.com/ Scvmmguestagent.1.0.2.1014.x64.tar

#↓ Span style= "Border:0px;margin:0px;padding:0px;color: #FF0000; font-size:18px;" >32 bit linux,

#wget Fs.contoso.com/scvmmguestagent.1.0.2.1014.x86.tar

chmod +x install.sh

./install.sh Scvmmguestagent.1.0.2.1014.x64.tar

#↓ Span style= "Border:0px;margin:0px;padding:0px;color: #FF0000; font-size:18px;" >32 bit linux,

#./install.sh Scvmmguestagent.1.0.2.1014.x86.tar


After successful completion, and then shut down the virtual machine, continue to complete the next step, at this time the deployed virtual machine can be SCVMM2012 R2 used to change the computer name, change the IP address.

But there is not a problem, the mechanism of the deployment of virtual machines are not DNS ...

In the following chapter we say this thing

High-end mystery Microsoft private Cloud Communication Group "236804566" real-name friends sharing


This article from "Nine Uncle-Enterprise informatization process" blog, please be sure to keep this source http://jiushu.blog.51cto.com/972756/1409964

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.