Is CENTOS 5.1 now supported?
-
2008年6月2日 7:57Hello
I am using RC1. is CentOS 5.1 now fully supported? i want to move my linux physical server to a virtual machine and i have heard some talks on these forums in the past that they have had CentOS problems. I will be using the x86 edition.
Chris D
回答
-
2008年6月2日 14:04所有者
CentOS is not a supported guest OS. That being said, it does work. :)
This posting is provided "AS IS" with no warranties, and confers no rights.- 回答としてマーク Mike Sterling [MSFT]Owner 2008年6月2日 14:04
すべての返信
-
2008年6月2日 14:04所有者
CentOS is not a supported guest OS. That being said, it does work. :)
This posting is provided "AS IS" with no warranties, and confers no rights.- 回答としてマーク Mike Sterling [MSFT]Owner 2008年6月2日 14:04
-
2008年6月2日 19:01I am using CentOS 5.1 i386 with the integration components.
This site was helpful: http://jehupc.exblog.jp/
although I used the latest kernel-xen available via yum, 2.6.18-53.1.21.el5xen. You may need to manually edit /boot/grub/grub.conf if you use the newer kernel, changing /x2v-32.gz to /x2v-pae.gz.
I've also tried OpenSUSE 11.0 RC1 (i586) with no luck: the included Xen kernel (2.6.25.4) will not boot properly, claiming that there is a problem with transitioning to ACPI shortly after loading the kernel. -
2008年7月5日 13:30
Hi mwheeler0,
im trying to get centos 5.1 (nor cent os 5.2) to run, i have tried new xen kernels, also older one as per the Japanese site (kernel-xen-2.6.18-53.el5.i686.rpm) and it just hangs on "INIT: version 2.86 booting"... it doesnt crash as i can see the cursor flashing but it doesnt do anything.
I have been running hyper V RC1 and also the recent RTM but same problem on all.
Any ideas?
Many thanks,
Chris -
2008年7月7日 19:01
Did you install the hypercall adapter using ./setup.pl x2v /boot/grub/grub.conf? Also, is the right menu entry being chosen at system boot? I've had to manually set the default in grub.conf every time.
I've upgraded to Hyper-V RTM and CentOS 5.2 i386, and am now running 2.6.18-92.1.6.el5xen with the RC2 integration components.
This is my grub.conf entry:
title CentOS (2.6.18-92.1.6.el5xen)
root (hd0,0)
kernel /x2v-pae.gz
module /vmlinuz-2.6.18-92.1.6.el5xen ro root=/dev/VolGroup00/LogVol00 ide0=noprobe ide1=noprobe hda=noprobe hdb=noprobe hdc=noprobe hdd=noprobe
module /initrd-2.6.18-92.1.6.el5xen.img -
2008年7月9日 9:02
Hi, not sure what i changed but now it works! I installed from the DVD (rather than net install), installed the xen kernel and then it worked. One question though, i boot with the pae xen kernel and not the pv2 kernel as per miwheeler0's advice... what is pae and what is the difference?
Please see complete steps below:1) install cent os 5.2 from dvd, i updated the system also with yum # yum clean all # yum makecache # yum clean all # yum clean metadata # yum update 2) install xen kernel and drivers # yum install kernel-xen # mkdir /mnt/cdrom # mount /dev/cdrom /mnt/cdrom/ # cp /mnt/cdrom/* /opt/linux_ic/ -r # /opt/linux_ic/setup.pl x2v /boot/grub/grub.conf 3) manually edit /boot/grub/grub.conf so it looks like this #boot=/dev/hda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-92.1.6.el5xen) root (hd0,0) kernel /x2v-pae.gz module /vmlinuz-2.6.18-92.1.6.el5xen ro root=/dev/VolGroup00/LogVol00 module /initrd-2.6.18-92.1.6.el5xen.img 4) install development tools # yum install gcc kernel-xen-devel 5) reboot machine # reboot 6) next time it boots install the drivers # /opt/linux_ic/setup.pl drivers
Full steps on what i tried below:[root@localhost ~]# uname -a Linux localhost.localdomain 2.6.18-92.1.6.el5 #1 SMP Wed Jun 25 13:49:24 EDT 2008 i686 i686 i386 GNU/Linux [root@localhost ~]# [root@localhost ~]# yum install kernel-xen Loading "fastestmirror" plugin Determining fastest mirrors * base: ftp.halifax.rwth-aachen.de * updates: centosl.centos.org * addons: ftp.halifax.rwth-aachen.de * extras: ftp.halifax.rwth-aachen.de Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package kernel-xen.i686 0:2.6.18-92.1.6.el5 set to be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: kernel-xen i686 2.6.18-92.1.6.el5 updates 15 M Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 15 M Is this ok [y/N]: y Downloading Packages: (1/1): kernel-xen-2.6.18- 100% |=========================| 15 MB 05:02 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: kernel-xen ######################### [1/1] Installed: kernel-xen.i686 0:2.6.18-92.1.6.el5 Complete! [root@localhost ~]# mkdir /mnt/cdrom [root@localhost ~]# mount /dev/cdrom /mnt/cdrom/ mount: block device /dev/cdrom is write-protected, mounting read-only [root@localhost ~]# cp /mnt/cdrom/* /opt/linux_ic/ -r [root@localhost linux_ic]# ./setup.pl x2v /boot/grub/grub.conf Checking for XEN Virtualization install...done. Installing Linux integration components (x2vshim) for Hyper-V... Backing up /boot/grub/grub.conf...done. Updating /boot/grub/grub.conf...done. Copying X2V shim...done. *** The x2vshim has been installed successfully. You will need to reboot. *** [root@localhost boot]# ls /boot config-2.6.18-92.1.6.el5 symvers-2.6.18-92.el5.gz config-2.6.18-92.1.6.el5xen System.map-2.6.18-92.1.6.el5 config-2.6.18-92.el5 System.map-2.6.18-92.1.6.el5xen grub System.map-2.6.18-92.el5 initrd-2.6.18-92.1.6.el5.img vmlinuz-2.6.18-92.1.6.el5 initrd-2.6.18-92.1.6.el5xen.img vmlinuz-2.6.18-92.1.6.el5xen initrd-2.6.18-92.el5.img vmlinuz-2.6.18-92.el5 lost+found x2v-32.gz message x2v-pae.gz symvers-2.6.18-92.1.6.el5.gz xen.gz-2.6.18-92.1.6.el5 symvers-2.6.18-92.1.6.el5xen.gz xen-syms-2.6.18-92.1.6.el5 [root@localhost boot]# [root@localhost boot]# cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-92.1.6.el5xen) root (hd0,0) kernel /boot/x2v-32.gz module /vmlinuz-2.6.18-92.1.6.el5xen ro root=/dev/VolGroup00/LogVol00 module /initrd-2.6.18-92.1.6.el5xen.img title CentOS (2.6.18-92.1.6.el5) root (hd0,0) kernel /vmlinuz-2.6.18-92.1.6.el5 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.18-92.1.6.el5.img title CentOS (2.6.18-92.el5) root (hd0,0) kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.18-92.el5.img [root@localhost boot]# [root@localhost ~]# cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-92.1.6.el5xen) root (hd0,0) kernel /x2v-pae.gz module /vmlinuz-2.6.18-92.1.6.el5xen ro root=/dev/VolGroup00/LogVol00 module /initrd-2.6.18-92.1.6.el5xen.img title CentOS (2.6.18-92.1.6.el5) root (hd0,0) kernel /vmlinuz-2.6.18-92.1.6.el5 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.18-92.1.6.el5.img title CentOS (2.6.18-92.el5) root (hd0,0) kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.18-92.el5.img [root@localhost ~]# /opt/linux_ic/setup.pl drivers Checking if required components are installed... No kernel-devel or kernel-source package installed. You must install this package before installing the drivers. [root@localhost ~]#uname -a Linux localhost.localdomain 2.6.18-92.1.6.el5xen #1 SMP Wed Jun 25 14:54:06 EDT 2008 i686 i686 i386 GNU/Linux [root@localhost ~]# /opt/linux_ic/setup.pl drivers Checking if required components are installed... No kernel-devel or kernel-source package installed. You must install this package before installing the drivers. [root@localhost ~]# [root@localhost ~]# yum install kernel-devel Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: ftp.halifax.rwth-aachen.de * updates: centosl.centos.org * addons: ftp.halifax.rwth-aachen.de * extras: ftp.halifax.rwth-aachen.de base 100% |=========================| 1.1 kB 00:00 updates 100% |=========================| 951 B 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 1.1 kB 00:00 Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package kernel-devel.i686 0:2.6.18-92.1.6.el5 set to be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: kernel-devel i686 2.6.18-92.1.6.el5 updates 4.8 M Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 4.8 M Is this ok [y/N]: y Downloading Packages: (1/1): kernel-devel-2.6.1 100% |=========================| 4.8 MB 01:41 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: kernel-devel ######################### [1/1] Installed: kernel-devel.i686 0:2.6.18-92.1.6.el5 Complete! [root@localhost ~]# /opt/linux_ic/setup.pl drivers Checking if required components are installed... No gcc package installed. You must install this package before installing the drivers. [root@localhost ~]# yum install gcc Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: ftp.halifax.rwth-aachen.de * updates: centosl.centos.org * addons: ftp.halifax.rwth-aachen.de * extras: ftp.halifax.rwth-aachen.de Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package gcc.i386 0:4.1.2-42.el5 set to be updated --> Processing Dependency: libgomp.so.1 for package: gcc --> Processing Dependency: cpp = 4.1.2-42.el5 for package: gcc --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc --> Processing Dependency: libgomp = 4.1.2-42.el5 for package: gcc --> Running transaction check ---> Package cpp.i386 0:4.1.2-42.el5 set to be updated ---> Package glibc-devel.i386 0:2.5-24 set to be updated --> Processing Dependency: glibc-headers = 2.5-24 for package: glibc-devel --> Processing Dependency: glibc-headers for package: glibc-devel ---> Package libgomp.i386 0:4.1.2-42.el5 set to be updated --> Running transaction check ---> Package glibc-headers.i386 0:2.5-24 set to be updated --> Processing Dependency: kernel-headers for package: glibc-headers --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers --> Running transaction check ---> Package kernel-headers.i386 0:2.6.18-92.1.6.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: gcc i386 4.1.2-42.el5 base 5.2 M Installing for dependencies: cpp i386 4.1.2-42.el5 base 2.7 M glibc-devel i386 2.5-24 base 2.0 M glibc-headers i386 2.5-24 base 610 k kernel-headers i386 2.6.18-92.1.6.el5 updates 846 k libgomp i386 4.1.2-42.el5 base 82 k Transaction Summary ============================================================================= Install 6 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 11 M Is this ok [y/N]: y Downloading Packages: (1/6): libgomp-4.1.2-42.e 100% |=========================| 82 kB 00:00 (2/6): cpp-4.1.2-42.el5.i 100% |=========================| 2.7 MB 00:14 (3/6): kernel-headers-2.6 100% |=========================| 846 kB 00:15 (4/6): gcc-4.1.2-42.el5.i 100% |=========================| 5.2 MB 00:59 (5/6): glibc-devel-2.5-24 100% |=========================| 2.0 MB 00:11 (6/6): glibc-headers-2.5- 100% |=========================| 610 kB 00:02 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: libgomp ######################### [1/6] Installing: cpp ######################### [2/6] Installing: kernel-headers ######################### [3/6] Installing: glibc-headers ######################### [4/6] Installing: glibc-devel ######################### [5/6] Installing: gcc ######################### [6/6] Installed: gcc.i386 0:4.1.2-42.el5 Dependency Installed: cpp.i386 0:4.1.2-42.el5 glibc-devel.i386 0:2.5-24 glibc-headers.i386 0:2.5-24 kernel-headers.i386 0:2.6.18- 92.1.6.el5 libgomp.i386 0:4.1.2-42.el5 Complete! [root@localhost ~]# /opt/linux_ic/setup.pl drivers [root@localhost ~]# /opt/linux_ic/setup.pl drivers Checking if required components are installed...done. Installing Linux integration components (vmbus, enlightened scsi and network drivers) for Hyper-V... Building vmbus driver...An error has occured during the setup! Please view the drvinstall.err for more details. [root@localhost ~]# [root@localhost linux_ic]# cat ./drvinstall.err make: *** /lib/modules/2.6.18-92.1.6.el5xen/build: No such file or directory. Stop. make[1]: *** [default] Error 2 make: *** [base] Error 2 [root@localhost 2.6.18-92.1.6.el5xen]# yum install kernel-xen-devel Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: ftp.halifax.rwth-aachen.de * updates: centosl.centos.org * addons: ftp.halifax.rwth-aachen.de * extras: ftp.halifax.rwth-aachen.de Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package kernel-xen-devel.i686 0:2.6.18-92.1.6.el5 set to be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: kernel-xen-devel i686 2.6.18-92.1.6.el5 updates 4.8 M Transaction Summary ============================================================================= Install 1 Package(s) Update 0 Package(s) Remove 0 Package(s) Total download size: 4.8 M Is this ok [y/N]: y Downloading Packages: (1/1): kernel-xen-devel-2 100% |=========================| 4.8 MB 02:15 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing: kernel-xen-devel ######################### [1/1] Installed: kernel-xen-devel.i686 0:2.6.18-92.1.6.el5 Complete! [root@localhost linux_ic]# ./setup.pl drivers Checking if required components are installed...done. Installing Linux integration components (vmbus, enlightened scsi and network drivers) for Hyper-V... Building vmbus driver...done. Building storvsc driver...done. Building netvsc driver...done. Installing vmbus driver...done. Installing storvsc driver...done. Installing netvsc driver...done. Updating module dependencies. This may take a while...done. Installing various udev rules and scripts...done. Updating initrd image... Backing up /boot/initrd-2.6.18-92.1.6.el5xen.img to /boot/initrd-2.6.18-92.1.6.el5xen.img.backup0 Done. Updated /boot/initrd-2.6.18-92.1.6.el5xen.img Installing vmbus startup script... *** The drivers have been installed successfully.*** [ OK ] [root@localhost ~]# uname -a Linux localhost.localdomain 2.6.18-92.1.6.el5xen #1 SMP Wed Jun 25 14:54:06 EDT 2008 i686 i686 i386 GNU/Linux [root@localhost ~]# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:560 (560.0 b) TX bytes:560 (560.0 b) seth0 Link encap:Ethernet HWaddr 00:15:5D:02:06:14 inet addr:192.168.2.138 Bcast:192.168.2.255 Mask:255.255.255.0 inet6 addr: fe80::215:5dff:fe02:614/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:74 errors:0 dropped:0 overruns:0 frame:0 TX packets:65 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:8606 (8.4 KiB) TX bytes:8828 (8.6 KiB) Would be nice if Microsoft would post a centos vhd on their site and really get the linux community rolling with other distros. If not i will try and host this vhd somewhere.
Would be nice to get debian running also :)
Regards,
Chris -
2008年7月10日 17:40Chris--
Thanks for such detailed documentation. I followed it for my CentOS x86_64 installation, and changed grub.conf so the kernel line is
kernel /x2v-64.gz
Instead of
kernel /x2v-pae.gz
I successfully installed the xen kernel, the development tools, and the drivers.
On reboot, the system hangs at the last of the following four lines
Initializing X2V shim . . . done
Loading XenLinux . . . done
Loading RAMDISK . . . done
Running XenLinux . . .
Any suggestions?
Thanks.
-
2008年7月10日 22:15you want x2v-64.gz for x86_64...
- 編集済み ieol2 2008年7月10日 22:56 I can't read
-
2008年7月10日 22:22Thanks, but your suggestion (x2v-64.gz) is the same as the one I already used.
-
2008年7月11日 9:25Hi Chris, from memory the linux integration readme lists an additional step for 64 bit systems doesnt it? Did you try 32 bit?
-
2008年7月11日 19:59About a month ago, I installed SLES 10 SP1 x86_64. The kernel had to be manually rebuilt using the included patch. There are patches for x2v-x32-rhel, x2v-x64-rhel,and x2v-x64-sles, although no one seems to have needed the RHEL patch for 32-bit CentOS 5.1 or 5.2.
If the patch won't apply / doesn't help on the CentOS 5.2 x86_64 kernel source, you could try building a kernel using older SLES or RHEL SRPMs.- 編集済み ieol2 2008年7月11日 20:00 A reason is required between 4 and 255 characters.
-
2009年1月15日 7:06I have had some success (mostly with time sync testing on RHEL 5.2 xen builds) using the following kernel boot cfg:
module /vmlinuz-2.6.... clock=pit
This seems to keep the time relativly constant in between ntpd syncs. -
2009年2月17日 9:23Any success with this? I am getting the same, after reboot stuck at "Running XenLinux..."
-
2009年2月18日 6:26
-
2009年2月18日 14:28John,
It could be a couple of things.
1) module paths are also relative to /boot/. the scripts often leave /boot/ in. check that the files exist!
2) acpi=no or other kernel flags. Check that these are off for the most part.
obviously make copies so you can test multiple boot menu items or boot back into "safe mode".

