Sunday, January 30, 2011

Install CentOS with Integration Components in Windows Server 2008 R2 Hyper-V

Hyper-V Linux Integration Services for Linux version 2.1 is a set of drivers that enable synthetic device support in supported Linux virtual machines under Hyper-V. The Linux integration components include support for both the synthetic network controller and synthetic storage controller that have been developed specifically for Hyper-V. These components take advantage of the new high-speed bus, VMBus, which was developed for Hyper-V.


There are following features in Hyper-V Linux Integration Services

  • Driver support for synthetic devices: The Linux integration components include support for both the synthetic network controller and synthetic storage controller that have been developed specifically for Hyper-V. These components take advantage of the new high-speed bus, VMBus, which was developed for Hyper-V.
  • Fastpath Boot Support: Boot devices now take advantage of the storage VSC to provide enhanced performance.
  • Timesync: The clock inside the virtual machine will remain synchronized with the clock on the host.
  • Integrated Shutdown: Virtual machines running Linux can be shut down from either Hyper-V Manager or System Center Virtual Machine Manager, using the “Shut Down” command.
  • Symmetric Multi-Processing (SMP) Support: Supported Linux distributions can use up to 4 virtual processors (VP) per virtual machine.
  • Heartbeat: Allows the host to detect whether the guest is running and responsive.
  • Pluggable Time Source: A pluggable clock source module is included to provide a more accurate time source to the guest.


Prerequisites

  • Download CentOS 5.2, 5.3, 5.4 or 5.5 x86 and x64

1.     At Hyper-V server, login as Administrator.
3.     Download Linux Integration Services for Windows Server 2008 Hyper-V R2 and save it as C:\Temp.
4.     Double-click Linux Integration Services for Windows Server 2008 Hyper-V R2, extract the file to C:\Temp.
5.     Launch Hyper-V Manager.
6.     Create a new virtual machine and install CentOS in the virtual machine.
7.     Power on CentOS, logon as root.
8.     Enter ifconfig.


The network isn’t installed in the CentOS.

9.     Navigate to /etc/yum.repos.d folder.
10.  Enter the following command to list the file:

ll


11.  Enter the following command to rename CentOS-Base.repo to CentOS-Base.repo.bk

mv CentOS-Base.repo CentOS-Base.repo.bk

12.  Enter the following command to modify CentOS-Media.repo:

nano CentOS-Media.repo

13.  Modify the file as the following:


14.  Press Ctrl + O, and then press Ctrl + X.
15.  Insert CentOS installation Disk into CentOS VM.
16.  Enter the CentOS, invoke the following command to create a folder for CDROM:

mkdir /mnt/cdrom


17.  Enter the following command to mount the ISO file:

mount –t iso9660 /dev/cdrom /mnt/cdrom


18.  Enter the following command to verify to be mounted or not:

df


19.  Enter the following command to update Kernel devel:

yum install kernel-devel –y


20.  Enter the following command to update gcc:

yum install gcc –y


21.  Enter the following command to unmount the CertOS DVD.

umount /mnt/cdrom

22.  Insert LinuxIC v2.iso into the CentOS VM.
23.  Enter the following command to mount the ISO file:

mount –t iso9660 /dev/cdrom /mnt/cdrom


24.  Enter the following command to create a folder and copy the cdrom data to it:

mkdir /opt/linux_ic_rtm

cp /mnt/cdrom/* /opt/linux_ic_rtm –R


25.  Navigate to “/opt/linux_ic_rtm” folder, enter the following command:

make


make install


26.  Enter reboot to restart the server.
27.  After the server is restarted, logon as root.
28.  Enter ifconfig.


The Linux Integration Components is installed in the CentOS.

This posting is provided “AS IS” with no warranties, and confers no rights!

Enable reliability and problem history on Windows Server 2008 R2

On Windows Server 2008 R2 and Windows 7, the reliability and problem history don't work. You need to update the KB974431 to fix the problem.

After installed the update, the reliability and problem history of Windows 7 is resumed normal. However, on Windows Server 2008 R2 RTM, we need to modify the following registry.

1. On Windows Server 2008 R2, log in as Administrator.
2. Launch "Registry Editor".
3. Navigate to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Reliability Analysis\WMI".
4. On right pane, double-click "WMIEnable".


5. Under "Value data", enter "1".


6. Click "OK".
7. Close "Registry Editor".
8. Launch "Task Scheduler".
9. Expand "Task Scheduler Library > Microsoft > Windows > RAC".


10. On central pane, right-click "RacTask", select "Properties".
11. On "RacTask Properties" window, select "Triggers" tab.
12. Select "One time", click "Edit".


13. On "Edit Trigger" window, next to "Advanced settings", check "Enabled".


14. Click "OK" twice.
15. Restart the computer.

This posting is provided “AS IS” with no warranties, and confers no rights!

Use a USB key to install Windows 7

Putting the Windows 7 installation on a USB thumb drive has a few advantages—a small USB key is much more convenient for carrying around than a DVD, the OS will actually install much faster, and you can use a USB key to install Windows 7 on systems that do not have a DVD drive, such as a netbook. In fact, you can even install Windows 7 on netbooks that have fairly modest hardware.

1.     Insert the USB to the computer.
2.     At Windows 7, click Start, type cmd.
3.     Right-click cmd, select Run as administrator.
4.     Click Yes.
5.     At Command Prompt, type diskpart and press [Enter].
6.     Type list disk and press [Enter].
7.     Check the computer drives status.
8.     Type sel disk 1 and press [Enter].

Remark:          Where the "1" is actually the corresponding number of your USB drive.

9.     Type clean and press [Enter].
10.  Type Create Partition Primary and press [Enter].



11.  Type active and press [Enter].
12.  Type format fs=fat32 quick and press [Enter].
13.  Type assign and press [Enter].



14.  Copy everything from the Windows 7 installation DVD onto the USB key.
15.  Insert the USB key to a new computer to install the Windows 7.

This posting is provided “AS IS” with no warranties, and confers no rights!

Install XenServer from USB Drive

1.     Launch “Internet Explorer”, go to http://www.citrix.com/lang/English/lp/lp_1688615.asp
2.     Download “XenServer” (1 ISO for installer + 1 ISO for XenServer linux-cd)
4.     Download “UNetBootin”.
5.     Insert and Format a USB stick as FAT
6.     Launch “UNetBootIn


7.     Select “Diskimage”.
8.     Click “”.
9.     Select “XenServer install iso”, click “Open”.
10.  Next to “Drive:”, select USB drive letter.


11.  Click “OK”.


Setup is in progress.

12.  When the setup was completed, press [Exit].
13.  Mount the “XenServer linux-cd”.
14.  Copy “client_install” and “packages.linux” folder to the USB drive.



15.  At USB drive, rename “syslinux.cfg” to “syslinux_cfg.old”.
16.  Rename “\boot\isolinux” to “\boot\syslinux



17.  Rename “\boot\ syslinux\isolinux.cfg” to “\boot\syslinux\syslinux.cfg



The setup was finished.


The original post: http://community.citrix.com/display/ocb/2010/01/17/Install+XenServer+from+USB+Drive

This posting is provided “AS IS” with no warranties, and confers no rights!