From: =?UTF-8?B?6KydIOadseabhA==?= Subject: DomU can't start after recompiling DomU(PV) OS kernel Date: Mon, 26 Jun 2017 06:37:59 +0000 (UTC) Message-ID: <787051874.2065705.1498459079982@mail.yahoo.com> References: <787051874.2065705.1498459079982.ref@mail.yahoo.com> Reply-To: =?UTF-8?B?6KydIOadseabhA==?= Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5479344950255686136==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============5479344950255686136== Content-Type: multipart/alternative; boundary="----=_Part_2065702_408727327.1498459079979" Content-Length: 24168 ------=_Part_2065702_408727327.1498459079979 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Xen Version:4.5.5 Guest OS(DomU OS):Ubuntu 14.04=C2=A0 Old kernel: 4.4.0new recompile Kernel : 4.4.31 // Install DomU OS in image file first,=C2=A0i use dd if=3D/dev/zero of=3Dtest.img bs=3D1M count=3D20480 to = create 20G empty image file. then use xl create vm.cfg command to create VM. The configuration file(vm.cfg) is as follows: kernel =3D "vmlinuz" ramdisk =3D "initrd.img" name =3D "test" memory =3D "1024" disk =3D [ 'file:test.img,xvda,w', ] vmlinuz and initrd.img is download from=C2=A0http://archive.ubuntu.com/ubun= tu/dists/trusty-updates/main/installer-amd64/current/images/netboot/xen/ then use xl console test command to log in and install DomU OS(Ubuntu 14.04= ). when DomU OS install complete , I start recompile DomU OS kernel. // Recompile DomU OS kernel download linux kernel source from=C2=A0http://www.kernel.org/pub/linux/kern= el/v4.x/linux-4.4.31.tar.gz add some printk in driver/xen/balloon.c. Configure the DomU OS kernel according to=C2=A0https://wiki.xenproject.org/= wiki/Mainline_Linux_Kernel_Configs#Getting_the_Current_Stable_Version then make make modules_install make install reboot VM after recompile complete. Use xl create startVM.cfg command to create VM. The VM configuration file(startVM.cfg) is as follows: name =3D "test" memory =3D "1024" bootloader =3D 'pygrub' disk =3D [ 'file:test.img,xvda,w', ] but i can't start VM after recompiling DomU OS kernel.DomU can boot into gr= ub and start successful by choosing other kernel(4.4.0), but when choosing = kernel that i compile(4.4.31), it fail(maybe it create and crash immediatel= y). No error message on the terminal.Can someone tell me where it is wrong? THX ------=_Part_2065702_408727327.1498459079979 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Xen Version:4.5.5
G= uest OS(DomU OS):Ubuntu 14.04 
Old kernel: 4.4.0
new recompile Kernel : 4.4.31

// Install DomU OS in image file
first, i use dd if=3D/dev/zero of=3Dte= st.img bs=3D1M count=3D20480 to create 20G empty image file.
then use xl create vm.cfg command to create VM.
The configuration file(vm.cfg) is as= follows:

kernel =3D "vmlinuz"
ramdisk =3D "initrd.img"
name =3D "test"
= memory =3D "1024"
disk =3D [ 'file:= test.img,xvda,w', ]

vmlinuz and initrd.img = is download from http://archive.ubuntu.com/ubuntu/dists/tr= usty-updates/main/installer-amd64/current/images/netboot/xen/

then use xl console test command= to log in and install DomU OS(Ubuntu 14.04).
when DomU OS install complete , I start recompile DomU OS kernel= .

// Recompile DomU OS kernel
download linux kernel source from http://www.kernel.org/pub/linux/kernel/v4.x/linux= -4.4.31.tar.gz
add some printk in driv= er/xen/balloon.c.
Configure the Dom= U OS kernel according to https://wiki.xenproject.org/wiki/Mainl= ine_Linux_Kernel_Configs#Getting_the_Current_Stable_Version

then

make
make = modules_install
make install=

reboot VM after recompile= complete.

Use xl create startVM.cfg command to create VM.The VM configuration file(startVM.cfg) is as= follows:

name =3D "test"
memory =3D "1024"
bootloade= r =3D 'pygrub'
disk =3D [ 'file:tes= t.img,xvda,w', ]

bu= t i can't start VM after recompiling DomU OS kernel.
DomU c= an boot into grub and start successful by choosing other kernel(4.4.0), but= when choosing kernel that i compile(4.4.31), it fail(maybe it create and c= rash immediately).
No error me= ssage on the terminal.
Can someone tell me where it is wron= g?

THX
=
------=_Part_2065702_408727327.1498459079979-- --===============5479344950255686136== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============5479344950255686136==--