網頁

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)

2012年10月24日 星期三

Windows 8 x64 --- Install & Configure Hyper-V (part 1)

In the past, we need to install Windows Server version next to switch to it from the client version if we want to do lab in Microsoft Hyper-V virtualization. It is not convenient for us due to the normal operation will use Client platform as Windows XP/Vista/7. This is why we also install other virtualization product as VirtualBox on our system for the future testing!
Until Windows 8 release, we can easy to use it without any effort because its learning curve will be down due to the behavior is like the previous Windows Server 2008 or 2008 R2 Hyper-V. (# 1)
Before installing it, we need to check oneself hardware specification whether can conform the Hyper-V limitation.
That is
           (1). the memory at least have 4 GB (or later)
           (2). the CPU support 64 bit Second Level Address Translation (SLAT).  (# 2)
When the above requirement is ready, we will prepare to install Hyper-V software.
In Windows 8 Profession version, the Hyper-V has already built-in the system but never is enabled by default.

How to enable it in Windows 8?Simply click Control Panel –> Programs –> Turn Windows features on or off
ScreenHunter_02In Windows Features page, enable Hyper-V check box so that subordinated components as Hyper-V Management Tools, Hyper-V Platform and so on will be selected as well.
ScreenHunter_03After clicking OK button, the system will automatically search the related files and install it then.
ScreenHunter_04By clicking Restart now button to reboot the PC for finish installing the requested changes.
ScreenHunter_05Now we have already install Hyper-V on windows 8 x64 version.
ScreenHunter_06
After installing it, we will do the related configuration of the Hyper-V for installing CentOS 6.3 x64 later.
In the Actions panel, click Hyper-V Settings…ScreenHunter_07To select the special path to store virtual hard disk files
ScreenHunter_65and virtual machine configuration files
ScreenHunter_66In Actions panel, click Virtual Switch Manager
ScreenHunter_09For creating new “External” Virtual network switch, select External next to click Create Virtual Switch button so that the Virtual Switch Properties will show up.
ScreenHunter_10In the Virtual Switch Property, assign a Name or write down some information in Notes, select Connection type as External network option, network adapter and so on.
ScreenHunter_11Click Yes button
ScreenHunter_12In changing process
ScreenHunter_13If it is successful, we can see the original network adapter status is disabled and just enabled the Hyper-V Extensible Virtual Switch check box in its property.
ScreenHunter_15A new Hyper-V Virtual Ethernet Adapter will be created and own network function.
ScreenHunter_16Until now, we have already finish the basic setting in Hyper-V. In next article, we will begin to install CentOS on it.

Reference
(# 1) There are some new features include in Windows Server 2012 Hyper-V that not include in Windows 8 Hyper-V as
  • Remote FX capability to virtualize GPUs (software GPU in RDP 8)
  • Live VM migration
  • Hyper-V Replica
  • SR-IOV networking
  • Synthetic fibre channel.
       The information refer to Client Hyper-V Survival Guide

(# 2) What CPU support SLAT?


2012年10月18日 星期四

MailArchiva --- Install OpenSource MailArchiva v1.9.13 on CentOS 6.3 x64 (part 2)

(continue)
In Host machine, I will download an open source software “MailArchiva 1.9.13” from sourceforge web site.
ScreenHunter_01Save this file to local path as E:\My Utility\Application\mail\Archive\MailArchiva\OSE\
ScreenHunter_02In Guest VM, click Devices –> Shared Folders… for creating or modifying shared folders.
ScreenHunter_03In Settings page, click Add Shared Folders button
ScreenHunter_04Switch to Other… in Folder Path field next to select a directory that it include the MailArchiva software.
ScreenHunter_05Click OK button if we don’t want to change Folder Name or other attributes.
ScreenHunter_06So does that the Guest VM has already added a shared folder now.
ScreenHunter_07Create a directory “/sf_OSE” to use as mount point next to mount the share folder and explore it. We will see the MailArchiva software in CentOS platform.
ScreenHunter_07Create a directory “mailarchiva_dist” for locating the extracted files from a compressed file
ScreenHunter_31ScreenHunter_32Execute an install script and bypass any registration except for memory in the setup process
ScreenHunter_35We can do the command chkconfig –list | grep iptables to realize which run level enable iptables daemon when CentOS start up (# 1).
ScreenHunter_07In the current run level (# 2), we can view firewall status by command /etc/init.d/iptables status ScreenHunter_01and temporarily stop iptables daemon by command /etc/init.d/iptables stop (# 3)
ScreenHunter_03So does that we can open MailArchiva management by web browser.
ScreenHunter_06
Reference
(# 1) If we want to specify which startup service will be disable on which run level, we can execute the command chkconfig --level 35 iptables off to disable iptables automatically on system boot.
ScreenHunter_09(# 2) How to know what run level am I in? By command as /sbin/runlevel or who –r to know what happen.
ScreenHunter_08(# 3) After stop iptables daemon and view status again, we can find out the firewall is not running now.
ScreenHunter_04

2012年10月13日 星期六

MailArchiva --- Install VirtualBox Guest Additions on CentOS 6.3 x64 (part 1)

Recently, I want to install MailArchiva software on Linux platform for testing replaced bad disk. I will use the virtualization and select the Virtualbox application because it is free on commercial environment. After installing CentOS 6.3 x64 version as Guest VM, I find out the file shared function is not working because the VirtualBox Guest Additions need to be installed on Guest VM.

How to install VirtualBox Guest Additions on CentOS 6.3 x64?At first, switch to yum repository for adding Virtualbox repository
ScreenHunter_01Install wget by yum if it never is installed
ScreenHunter_03Get Virtualbox repository
ScreenHunter_01In VirtualBox management, click Devices –> Install Guest Additions… in menu
ScreenHunter_02Make and mount VirtualBox Guest Additions device next to begin to install Guest Additions
ScreenHunter_05The installation result will fail and it give us some informationScreenHunter_06We also can look at /var/log/vboxadd-install.log in detail.
ScreenHunter_20Make sure it is the up-to-date kernel so that update Kernel next to reboot it (# 1)ScreenHunter_08Install the related packages as make, gcc, kernel, perl and so on.
ScreenHunter_17ScreenHunter_14ScreenHunter_21Add KERN_DIR environment variable
ScreenHunter_12Install Guest Additions again and the result is successful. (# 2)
ScreenHunter_26Reboot guest system so that the VirtualBox Guest Additions installation is ready now.

Reference
(#1) What version is before update Kernel
ScreenHunter_04       What version is after update Kernel
ScreenHunter_11(#2)  Due to never install GUI mode so that the window system drivers don’t need to be installed now.
Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.