[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] Re: hvm reports "no bootable device" after install centos to phy:/dev/sda6
I have created a hvm domU with this xm configuration file: --------------------------------------------------- server CentOS-5.5-x86_64-bin-DVD # cat /xen/configs/centos # -*- mode: python; -*- import os, re arch_libdir = 'lib' arch = os.uname()[4] if os.uname()[0] == 'Linux' and re.search('64', arch): arch_libdir = 'lib64' kernel = "/usr/lib/xen/boot/hvmloader" builder='hvm' memory = 2048 shadow_memory = 8 name = "centos" vcpus=1 vif = [ 'type=ioemu, bridge=eth0' ] disk = [ 'phy:/dev/sda6,sda,w' ,'file:/root/downloads/CentOS-5.5-x86_64-bin-DVD/CentOS-5.5-x86_64-bin-DVD-1of2.iso,hdc:cdrom,r' ] #cdrom = 'dev/hdc' device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm' boot="dc" sdl=0 opengl=0 vnc=1 vnclisten="0.0.0.0" vncpasswd='' vncconsole=1 stdvga=0 serial='pty' usbdevice='tablet' monitor=1 on_reboot = 'restart' on_crash = 'restart' ---------------------------------------------------------------------- Then boot it from iso and install centos and bootloader into /dev/sda6(sda in domU) on phisical disk partition. While installation ok, reboot the hvm domU and remove iso from configuration file as following: ------------------------------------------------------ disk = [ 'phy:/dev/sda6,sda,w' #,'file:/root/downloads/CentOS-5.5-x86_64-bin-DVD/CentOS-5.5-x86_64-bin-DVD-1of2.iso,hdc:cdrom,r' ] ---------------------------------------------------------------------------------- Now the hvm domU console reports: ---------------------------------- Booting from hard disk.... Boot from Hard Disk failed: could not read the boot disk No bootable device ---------------------------------- I don't know why there is no MBR in /dev/sda6. And I use hexdump to view the first bytes in /dev/sda6: ----------------- server CentOS-5.5-x86_64-bin-DVD # hexdump /dev/sda6 -n 256 0000000 48eb 1090 d08e 00bc b8b0 0000 d88e c08e 0000010 befb 7c00 00bf b906 0200 a4f3 21ea 0006 0000020 be00 07be 0438 0b75 c683 8110 fefe 7507 0000030 ebf3 b416 b002 bb01 7c00 80b2 748a 0203 0000040 0080 8000 b841 0002 0800 90fa f690 80c2 0000050 0275 80b2 59ea 007c 3100 8ec0 8ed8 bcd0 0000060 2000 a0fb 7c40 ff3c 0274 c288 be52 7d7f 0000070 34e8 f601 80c2 5474 41b4 aabb cd55 5a13 0000080 7252 8149 55fb 75aa a043 7c41 c084 0575 0000090 e183 7401 6637 4c8b be10 7c05 44c6 01ff 00000a0 8b66 441e c77c 1004 c700 0244 0001 8966 00000b0 085c 44c7 0006 6670 c031 4489 6604 4489 00000c0 b40c cd42 7213 bb05 7000 7deb 08b4 13cd 00000d0 0a73 c2f6 0f80 ea84 e900 008d 05be c67c 00000e0 ff44 6600 c031 f088 6640 4489 3104 88d2 00000f0 c1ca 02e2 e888 f488 8940 0844 c031 d088 0000100 ------------------ Anyone can help me? -- Xiaodong Jiang jxd431@xxxxxxxxx _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |