網頁

2012年10月28日 星期日

Windows 8 x64 ---- Install CentOS 6.3 x64 on Hyper-V (part 2)

(continue)

Create a new VM
Right-Click the Hyper-V Server next to click New –> Virtual Machine… in menu so that New Virtual Machine Wizard will pop up.
ScreenHunter_17
In Before You Begin page, click Next > button
ScreenHunter_18In Specify Name and Location page, assign a name as “DW-CENTOS-01”, enable Store the Virtual machine in a different location check box next to select a location by clicking Browse… if we don’t want to choose the default path in Hyper-V setting.
ScreenHunter_19In Assign Memory page, correct Startup memory or enable Use Dynamic Memory for this virtual machine check box to improve performance or conform the minimum recommended for the OS.
ScreenHunter_20In Configure Networking page, select a network adapter for this new Virtual machine.
ScreenHunter_21In Connect Virtual Hard Disk page, select Create a virtual hard disk option and assign a Name, Location and Size next to click Next > button
ScreenHunter_22In Installation Options page, select Install an operation system later option next to click Next > button
ScreenHunter_23Click Finish button to complete this New Virtual Machine Wizard
ScreenHunter_24So does that the New VM has already been created now.
ScreenHunter_25
Mount CentOS ISO Image
Select a VM that is created then and click Settings… in Actions panel
ScreenHunter_26In the property of VM settings, select DVD Drive next to click Browse… button
ScreenHunter_27Select a CentOS iso file as “CentOS-6.3-x86_64-bin-DVD1.iso” (# 1) next to click Open button
ScreenHunter_28Click Apply and OK button to close this settings.
ScreenHunter_29So does that we have already mount the bootable CentOS image now.

Install CentOS 6.3 x64Right-click a VM that want to boot it and select Start in menu (or Click Start in Actions panel)
ScreenHunter_30Right-click the selected VM that want to launch the VM Connection application and click Connect… in menu (or Click Connect… in Actions panel)
ScreenHunter_31Click Install or upgrade an existing system
ScreenHunter_33In Disc Found page, click Skip button
ScreenHunter_34In CentOS page, click OK button
ScreenHunter_35In Language Selection page, select English language to use during the installation process next to click OK button
ScreenHunter_36In Keyboard Selection page, select us keyboard for this VM next to click OK button
ScreenHunter_37Click Re-initialize button for the Virtual HD
ScreenHunter_38In Time Zone Selection page, select Asia/Taipei Time zone next to click OK button
ScreenHunter_39In Root Password page, assign Root Password next to click OK button
ScreenHunter_40In Partitioning Type page, select Use entire drive and “sda 130048 MB (ATA Virtual HD)” drive for this installation
ScreenHunter_41In Writing storage configuration to disk page, click Write changes to disk button
ScreenHunter_42In the Package Installation process…
ScreenHunter_43Click Reboot button to restart the VM when the CentOS installation is complete.
ScreenHunter_44Now we can logon CentOS console by root account
ScreenHunter_45
Install Linux Integration Service 3.4 for Hyper-V
For installing a set of CentOS drivers to enable or enhance some function, we need to download Linux Integration Service Version 3.4 for Hyper-V from Microsoft URL http://www.microsoft.com/en-us/download/details.aspx?id=34603 next to save it into the directory. (# 2)
ScreenHunter_46In Hyper-V Manager, click Media –> DVD Drive –> Insert Disk… in VM application
ScreenHunter_47Select the downloaded ISO image as “LinuxICv34.iso” next to click Open button
ScreenHunter_48Run the command “mount /dev/cdrom /media” to mount the ISO file as a virtual CD/DVD drive on the VM.
ScreenHunter_49Use the command as “cd /media/RHEL63” to change to the directory for CentOS 6.3
ScreenHunter_50Run the command “./install.sh” to install the Hyper-V drivers
ScreenHunter_52After installation, reboot it and logon by root account. (# 3)
When we view network status by running the command “ifconfig”, we find out eth0 never appear in the output of this command. In the moment, we need to configure the Hyper-V network adapter in CentOS Linux.
ScreenHunter_53Create a “/etc/sysconfig/network” file
ScreenHunter_57Add a record “NETWORKING=yes” to enable networking.
ScreenHunter_58Create a “/etc/sysconfig/network-scripts/ifcfg-eth0” file
ScreenHunter_59Add some records as the following content.
ScreenHunter_60Modify name server in the “/etc/resolv.conf”
ScreenHunter_64Run the command “/etc/rc.d/init.d/network” restart” to restart network
ScreenHunter_63Run the command “chkconfig network on” to enable network service at boot time.
ScreenHunter_62Run the command “ifconfig” again, so does that network function is normal now.

Reference :
(# 1) We can download the CentOS 6 ISO image from http://www.centos.org
ScreenHunter_02(# 2) The supported guest OS is as follows:
       ● Red Hat Enterprise Linux 5.7, 5.8, 6.0-6.3 x86 and x64
       ● CentOS 5.7, 5.8, 6.0-6.3 x86 and x64
       The detail information can refer to “Linux Integration Service v3.4 Read Me.pdf”
(# 3) After installing Linux Integration Services and rebooting it, the related module will be loaded. We can run the command “/sbin/modinfo hv_vmbus” to get module information for the installed kernel module.
ScreenHunter_54and run the command “/sbin/lsmod | grep hv” to verify all subcomponents are running.
ScreenHunter_56

<<< Windows 8 x64 --- Install & Configure Hyper-V (part 1)
Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.