|
||||||||
|
||||||||
|
|
Công Cụ | Xếp Bài |
03-10-2011, 08:39 PM | #1 | ||||||||||||||||||||||||||||||||
Guest
Trả Lời: n/a
|
Cài đặt máy ảo CentOS trên Vyper-V Server
Cài đặt máy ảo CentOS trên Vyper-V Server
Solution: 1) Creating a Hyper-V server First, create a virtual machine within Hyper-V manager. If yo don't know, please refer to Step by Step Guide to Create Windows Hyper-V Virtual Machine. 2) Adding Legacy Network Adapter CentOS5 doesn't support synthetic deivces. We created an emulated network adapter to access Interate in order to make installation convenient. Select the new VM -> In Actions pane, select Settings... -> In the new VM's setings window, on the left pane under Hardware, click Add Hardware. -> On the right pane under Add Hardware selec Legacy Network Adapter and click Add. Figure 1 The right pane's content will change to Legacy Network Adapther . Drop down Network: list and select External Virtual Network. Click Apply. Now you have an emulated network adapter to be used to access Internet before enable synthetic network adapter. Firgure2 3) Install CentOS 5 On left pane under Hardware, select IDE Control 1 -> DVD Drive. On right pane under Media select proper installation media. We used CentOS DVD image to install, so select Image file : and Browse to the image file and open. Click OK Firgure3 Double click the VM in Hyper-V manger. There would pop up the Virutal Machine Connection Window. On the new VM window, select menu Action -> Start. Now CentOS installation start. Figure4 The intall process is much the same like to install on a physical server. The emulated network adapter should be recognized and should show up as Figure 5.. We would configure it to make installation more convenient. Figure 5 4) Install Linux Service Integration Component Now we'll go through the most exciting part of the installation, Linux IC installation. Donwload Linux Integration Components for Windows Server 2008 Hyper-V to your host server. The URL for the time this article is writen is here Figure6 After extract the ISO file, mount it to the new VM's DVD drive (shows in Figure3). To install the drivers we need the development tools. The easiest way to install those is via Yum.
mkdir -p /mnt/cdrom mount /dev/cdrom /mnt/cdrom cp -rp /mnt/cdrom /opt/linux_ic umount /mnt/cdrom Then let's install it. Please note that if you want to shift to root user before execute this command by running 'su', it may not work. You need to run 'su -'. It will load root user's context completely(Thank you José! for providing your experience.).
When reboot VM you may get error like "kernel panic". It's becuase another kernel was install during update. You can check it out by clicking any key at the very beginning of startup. Figure7 You can select one of them manually each time reboot. But it's annoying.. To solve it, you could modify Grub configuration file, /boot/grub/grub.conf, changing the default to the proper one. default=0 Now everghings are OK. You can reboot the server now. During reboot there would be a new network interface named seth0. It's the new recognized synthetic network adapter. You can configure it and remove the emulated one. http://www.hyper-v-mart.com/Howto/In...p_by_Step.aspx |
||||||||||||||||||||||||||||||||
|
|