WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Re: hvm reports "no bootable device" after install centos to

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: hvm reports "no bootable device" after install centos to phy:/dev/sda6
From: Xiaodong Jiang <jxd431@xxxxxxxxx>
Date: Tue, 01 Mar 2011 23:31:59 +0800
Delivery-date: Tue, 01 Mar 2011 07:32:57 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:content-type:content-transfer-encoding; bh=TvqR6sYE6n+gV7Ew2//yUlxANAAQuAfJoj2ICNO1uHg=; b=B2XtNLndqaAy3r/Vj9piwb8iQC9zI0vm//IVHEgpz+zcCQVYkqzwTP7C4rbTm5PAin xB/lozE1uCZMqKlExAu1F4hyOJsGyEio6KmVPHxjTVdNf6bhPsGmOp1NdpnYH/IOscsO 9gRd8s6h6nn6UNfKzm+MYuJ30Oc8mVS1A/aDg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=GLww0eRLEIw68MQeDucbn/jxXjbwFbO+s0em9LTcpyseGWl1us+AUvEWA5FQYim1i6 2Qy3XEO2nv3c5qW3Em6pva2zK8hCfEvJP06en/R/0kZDbK4wxXyO2oXDQSHtuBG6+AZ2 wi/fvgcoN2z+4klWH7of8PQmBA9EwYx0Q9dh8=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20101114 Lightning/1.0b3pre Thunderbird/3.1.3
 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Re: hvm reports "no bootable device" after install centos to phy:/dev/sda6, Xiaodong Jiang <=