Cloud OSS - Hyper-V Service Manager | How to Create Guest OS (Linux) Templates in Hyper-V |
---|
...
37) Choose your preferred Language and Keyboard layout. Once you choose, click on Next.
Fig 43. Preferred language
Fig 44. Preferred keyboard layout
38) In the Type of Devices page, select "Basic Storage Devices" and click on Next. In the pop-up window, click on "Yes, discard any data".
...
40) Click on the "Configure Network" button and edit the "System eth0" network interface. Configure the IPv4 settings so that you can access the template later on.
Note | ||
---|---|---|
| ||
Configure the IPv4 settings of your choice in the highlighted fields, as shown in the example below. |
Fig 48. Network configuration
Fig 49. System etho network settings
41) Select the appropriate time zone and click on "Next". In the following screen set a "Root" password.
Fig 50. Time settings
Fig 51. Setting root password
42) In the following screen select "Use All Space" and click on "Next". In the pop-up window, click on "Write changes to disk".
Fig 52. Partitioning
Fig 53. Write changes to disk
43) Choose installation type (Since this is going to be a server template, we choose the "Basic Server" option). The installation process will begin once we click on "Next".
...
44) When the installation process is over, click on "Reboot".
Fig 56. Rebooting upon successful installation
4. Preparing the Virtual Machine for Template
...
46) While the Virtual Machine is turned off, go to VMM console, right click on the VM and click on Properties.
Fig 58. Setting VM's Properties
47) Go to Hardware Configuration, click on the "Legacy Network Adapter" and then click on Remove in order to remove it. In the pop-up window click on Yes.
...
49) Turn the Virtual Machine on and login as root. By default CentOS and Oracle Linux do not enable the network adapter on startup. If you run the command "ifconfig" you will only find the loopback adapter listed.
Fig 62. Running ifconfig
50) Also, by default the first adapter will be eth0. However, if we attempt to enable it by using the "ifconfig eth0 up" command we will receive a "no such device" error message as shown in the figure below:
Fig 63. Attempting to bring etho interface up
Note | ||
---|---|---|
| ||
This is because eth0 is assigned to the legacy adapter we just removed. In order to fix this we need to clear the existing adapter rules, and update the configuration file for eth0. |
...
67) In the Identity tab, Specify machine name for this VM clone and click on "Next".
Fig 81. Specifying clone machine name
68) In the Configure Hardware tab click on Availability below Advanced and check the "Make this Virtual Machine High Available" option. Click on Next
...
76) Select Library in SCVMM console on the bottom left. On the upper left of the SCVMM console, right click on Templates and choose "Create VM Template".
Fig 91. Creating a VM Template
77) In the Select Source tab, choose "Use an existing VM template or a virtual hard disk stored in the library" and click on Browse.
...
78)Select the VHD file you pasted in step 75. Click on OK and then click on Next.
Fig 93. Selecting VHD file from the Library
79) In the Identity tab, specify VM template's name, choose Generation 1 from the drop-down list and click on Next.
Fig 94. Specifying VM Template name and Generation
80) In the Configure Hardware tab, in Cloud Capability Profile section, check Hyper-V.
Fig 95. Select Cloud Capability Profile
81) Set Memory to at least 1024 MB and click on Next.
...
Fig 96. Specify VM Template Memory
82) In the In the Configure Operating System Settings tab, select "linux os profile" for "Guest OS profile" and select "CentOS Linux 6 (64 bit)" for "Operating system", in the dropdown menu (for Oracle Linux select "Oracle Linux 6 (64 bit)"). Click on Next.
...
select "Create new Linux operating system customization settings" from the Guest OS profile drop-down list. In the Operating System drop-down list, select "CentOS Linux 6 (64bit)" and click on Next.
Fig 97. Specify Operating system
83) In the Select Library Server tab, select the appropriate library server and click on Next. In the Select Path tab, click on Browse to select the path on the Library Server to save the template and click on Next.
...
Application Configuration tab and in the SQL Server Configuration tab click on Next.
Fig 98.
...
Application Configuration
...
Fig 99.
...
SQL Server Configuration
84) View your "Summary" configuration settings and In the Summary tab, click on "Create".
Fig 100. Creating a VM Template
...