From mboxrd@z Thu Jan 1 00:00:00 1970 From: yingbin wang Subject: Re: VHD BUG in xen4.0 when install windows2008 Date: Sun, 9 May 2010 01:02:42 +0800 Message-ID: References: <4FA716B1526C7C4DB0375C6DADBC4EA37ACEAA5FE3@LONPMAILBOX01.citrite.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0249477435==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Pratt Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============0249477435== Content-Type: multipart/alternative; boundary=0016e64cbd6edf3bc304861824f2 --0016e64cbd6edf3bc304861824f2 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable I have try xenlinux 2.6.18.8. the problem also appear. os can not startup. Windows 2008 R2 Standard Edition 64(disk size: 20G, C:\ 15G, D:\ 5G) on vhdfile, the problem appear. does anyone successfully install Windows 2008 R2 Standard Edition 64(disk size: 20G, C:\ 15G, D:\ 5G) on vhd file?? env : (xen4.0, kernel2.6.31.13) or (xen4.0, kernel2.6.18.8) Cheers, wyb =D4=DA 2010=C4=EA5=D4=C28=C8=D5 =CF=C2=CE=E78:46=A3=ACyingbin wang =D0=B4=B5=C0=A3=BA > thank you for your reply. > > as you guest, dom0 kernel: pvops 2.6.31.13 > > I try what you say. > menu.lst: > title Xen 4.0 kernel 2.6.31.13 > root (hd0,0) > kernel /xen.gz dom0_mem=3D4096M dom0_max_vcpus=3D1 dom0_vcpus_pin > module /vmlinuz-2.6.31.13 ro root=3DLABEL=3D/ nomodeset > module /initrd-2.6.31.13.img > > but the problem also appear, os can't startup. > Windows 2008 R2 Standard Edition 64(disk size: 20G, C:\ 15G, D:\ 5G) on > vhd file, the problem appear. > > when I install windows 2008, I meet another problem : > the dom0 hang up, I reboot the physical machine and found some info from > /var/log/message: > > May 8 20:02:47 SS01 tapdisk2[21997]: Assertion 'list_empty(&vreq->next)'= failed, line 1822, file tapdisk-vbd.c > > May 8 20:02:47 SS01 kernel: tapdisk2[21997]: segfault at 0 ip 0000000000= 40a24f sp 00007fff162b2d90 error 6 in tapdisk2[400000+39000] > > May 8 20:02:47 SS01 kernel: blktap_device_fail_pending_requests: 252:2: = failing pending write of 11 pages > > May 8 20:02:47 SS01 kernel: end_request: I/O error, dev tapdevc, sector = 10485752 > > May 8 20:02:47 SS01 kernel: Buffer I/O error on device tapdevc, logical = block 1310719 > May 8 20:02:47 SS01 kernel: lost page write due to I/O error on tapdevc > > May 8 20:02:47 SS01 kernel: Buffer I/O error on device tapdevc, logical = block 1310720 > May 8 20:02:47 SS01 kernel: lost page write due to I/O error on tapdevc > > May 8 20:02:47 SS01 kernel: Buffer I/O error on device tapdevc, logical = block 1310721 > May 8 20:02:47 SS01 kernel: lost page write due to I/O error on tapdevc > > I don't know the relation between two problems.I hope it give you more > info to help me solve the problem. > I think it may be a bug of the pvops 2.6.31.13. I hope there is a way to > solve it. could you give some advise? > I will try xenlinux 2.6.18.8 and report the result. > > Cheers, > wyb > 2010/5/8 Ian Pratt > > > Description of problem: >> > after install Windows 2008 R2 Standard Edition 64(disk size: 20G, C:\ >> 15G, >> > D:\ 5G) on vhd file (as base image), os can not startup. >> >> Which dom0 kernel is this with? I'm guessing one of Jeremy's pvops trees= ? >> >> It might be worth reducing the number of dom0 VCPUs to 1 and repeating t= he >> experiment to see if that makes a difference. >> >> Thanks, >> Ian >> >> >> > I found data error in C:\Windows\System32 : >> > ?--------- ? ? ? ? ? pnpts.dll >> > ?--------- ? ? ? ? ? pnpui.dll >> > ?--------- ? ? ? ? ? PnPUnattend.exe >> > ?--------- ? ? ? ? ? PnPutil.exe >> > >> > How reproducible: >> > I tested 10 times, it appear 10 times that os can not startup. >> > >> > Steps to Reproduce: >> > 1. vhd-util create -n test.vhd -s 20480 >> > 2. xm create test.hvm >> > 3. install Windows 2008 R2 Standard Edition 64 ( disk size: 20G, C:\ >> 15G, >> > D:\ 5G ) 4. can not startup 5. xm des test.vhd 6. tapdisk2 -n >> > vhd:/mnt/img/test.vhd 7. mount -o offset=3D105906176 -t ntfs >> > /dev/xen/blktap-2/tapdev0 /mnt/vhd 8. ll /mnt/vhd/Windows/System32 | >> grep >> > ? >> > ?--------- ? ? ? ? ? pnpts.dll >> > ?--------- ? ? ? ? ? pnpui.dll >> > ?--------- ? ? ? ? ? PnPUnattend.exe >> > ?--------- ? ? ? ? ? PnPutil.exe >> > >> > Additional info: >> > I install >> > Windows 2003 Standard Edition SP1 32(disk size: 50G, C:\50G) on vhd >> file, >> > the problem disappear. >> > Redhat 5.4 AS 64(disk size:60G, /: 50G, swap: 10G) on vhd file, the >> > problem disappear. >> > Windows 2008 R2 Standard Edition 64(disk size: 100G, C:\ 100G) on vhd >> > file, the problem disappear. >> > Windows 2008 R2 Standard Edition 64(disk size: 100G, C:\ 90G, D:\10G) = on >> > vhd file, the problem disappear. >> > Windows 2008 R2 Standard Edition 64(disk size: 20G, C:\ 15G, D:\ 5G) o= n >> > raw file, the problem disappear. >> > Windows 2008 R2 Standard Edition 64(disk size: 20G, C:\ 15G, D:\ 5G) o= n >> > vhd file, the problem appear. >> > Windows 2008 R2 Standard Edition 64(disk size: 100G, C:\ 15G, D:\85G) = on >> > vhd file, the problem appear. >> > >> > ps: >> > windows 2003 need 3G disk space. >> > redhat 5.4 need 4G disk space. >> > windows 2008 need 8G disk space. >> > the problem disappear means that os can startup and no data error. >> > >> > compile env and filesystem : >> > Redhat AS 5.4 >> > >> > xm info: >> > host : vm01 >> > release : 2.6.31.13 >> > version : #1 SMP Wed Apr 21 12:30:21 CST 2010 >> > machine : x86_64 >> > nr_cpus : 16 >> > nr_nodes : 1 >> > cores_per_socket : 4 >> > threads_per_core : 2 >> > cpu_mhz : 2400 >> > hw_caps : >> > bfebfbff:28100800:00000000:00001b40:009ce3bd:00000000:00000001:0000000= 0 >> > virt_caps : hvm >> > total_memory : 24539 >> > free_memory : 1668 >> > node_to_cpu : node0:0-15 >> > node_to_memory : node0:1668 >> > node_to_dma32_mem : node0:82 >> > max_node_id : 0 >> > xen_major : 4 >> > xen_minor : 0 >> > xen_extra : .0 >> > xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 >> > hvm-3.0-x86_32p hvm-3.0-x86_64 >> > xen_scheduler : credit >> > xen_pagesize : 4096 >> > platform_params : virt_start=3D0xffff800000000000 >> > xen_changeset : unavailable >> > xen_commandline : dom0_max_vcpus=3D2 dom0_vcpus_pin >> > cc_compiler : gcc version 4.1.2 20080704 (Red Hat 4.1.2-46) >> > cc_compile_by : root >> > cc_compile_domain : dev.sd.test.com >> > cc_compile_date : Mon Apr 26 10:17:37 CST 2010 >> > xend_config_format : 4 >> > >> > > --0016e64cbd6edf3bc304861824f2 Content-Type: text/html; charset=GB2312 Content-Transfer-Encoding: quoted-printable
I have try xenlinux 2.6.18.8. the problem also appear. os can not star= tup.
 
Windows 2008 R2 Standard Edition 64(disk size: 20G, C:\ 15G, D:\ 5G) o= n vhd file, the problem appear.
does anyone successfully install Windows 2008 R2 Standard Edition 64(d= isk size: 20G, C:\ 15G, D:\ 5G) on vhd file?= ?
env : (xen4.0, kernel2.6.31.13) or (xen4.0, kernel2.6.18.8)
 
Cheers,
wyb
=D4=DA 2010=C4=EA5=D4=C28=C8=D5 =CF=C2=CE=E78:46= =A3=ACyingbin wang <yingbin.wangyb@gmail.com>=D0=B4=B5=C0=A3=BA
thank you for your reply.
 
as you guest, dom0 kernel: pvops 2.6.31.13
 
I try what you say.
menu.lst:
title Xen 4.0 kernel 2.6.31.13
      =   root (hd0,0)
        kernel /x= en.gz dom0_mem=3D4096M dom0_max_vcpus=3D1 dom0_vcpus_pin
  &nb= sp;     module /vmlinuz-2.6.31.13 ro root=3DLABEL=3D/ n= omodeset
        module /initrd-2.6.3= 1.13.img
 
but the problem also appear, os can't startup.
Windows 2008 R2 Standard Edition 64(disk size: 20G, C:\ 15G, D:\ 5G) o= n vhd file, the problem appear.
 
when I install windows 2008, I meet another problem :
the dom0 hang up, I reboot the physical machine and found some info fr= om /var/log/message:
May  8 20:02:47 SS01 tapdisk2[21997]: Asser= tion 'list_empty(&vreq->next)' failed, line&n= bsp;1822, file tapdisk-vbd.c
May  8 20:02:47&nb= sp;SS01 kernel: tapdisk2[21997]: segfault at 0&nbs= p;ip 000000000040a24f sp 00007fff162b2d90 error 6&= nbsp;in tapdisk2[400000+39000]
May  8 20:02:47 SS01 kernel: blktap_device_fa= il_pending_requests: 252:2: failing pending write = of 11 pages
May  8 20:02:47 SS01 kern= el: end_request: I/O error, dev tapdevc, sect= or 10485752
May  8 20:02:47 SS01 kernel:&n= bsp;Buffer I/O error on device tapdevc, logic= al block 1310719
May  8 20:02:47 SS01 kernel: lost page&n= bsp;write due to I/O error on tapdevc
May&= nbsp; 8 20:02:47 SS01 kernel: Buffer I/O = ;error on device tapdevc, logical block 13107= 20
May  8 20:02:47 SS01 kernel: lost = page write due to I/O error on tapdevc May  8 20:02:47 SS01 kernel: Buffer I/O&= nbsp;error on device tapdevc, logical block 1= 310721
May  8 20:02:47 SS01 kernel: lost&n= bsp;page write due to I/O error on tapde= vc
 
I don't know the relation between two problems.I hope it giv= e you more info to help me solve the problem.
I think it may be a=  bug of the pvops 2.6.31.13. I hope there is a way to solve it. c= ould you give some advise?
I will try xenlinux 2.6.18.8 and report the result.
 
Cheers,
wyb
2010/5/8 Ian Pratt <Ian.Pratt@eu.citrix.c= om>=20

> Description of problem:
> after install Windows 2008 R2 Sta= ndard Edition 64(disk size: 20G, C:\ 15G,
> D:\ 5G) on vhd file (as b= ase image), os can not startup.

Which dom0 kernel is this with= ? I'm guessing one of Jeremy's pvops trees?

It might be worth reducing the number of dom0 VCPUs to 1 and repeating = the experiment to see if that makes a difference.

Thanks,
Ian


> I found data error in C:\Windows\System32 :
> ?----= ----- ? ?    ?           ?    =        ? pnpts.dll
> ?--------- ? ?    = ;?           ?           =  ? pnpui.dll
> ?--------- ? ?    ?      = ;     ?            ? PnPUnattend.ex= e
> ?--------- ? ?    ?           ? &nb= sp;          ? PnPutil.exe
>
> How rep= roducible:
> I tested 10 times, it appear 10 times that os can not st= artup.
>
> Steps to Reproduce:
> 1. vhd-util create -n te= st.vhd -s 20480
> 2. xm create test.hvm
> 3. install Windows 2008 R2 Standard Edit= ion 64 ( disk size: 20G, C:\ 15G,
> D:\ 5G ) 4. can not startup 5. xm= des test.vhd 6. tapdisk2 -n
> vhd:/mnt/img/test.vhd 7. mount -o offs= et=3D105906176 -t ntfs
> /dev/xen/blktap-2/tapdev0 /mnt/vhd 8. ll /mnt/vhd/Windows/System32 | g= rep
> ?
> ?--------- ? ?    ?       &n= bsp;   ?            ? pnpts.dll
> = ?--------- ? ?    ?           ?   &= nbsp;        ? pnpui.dll
> ?--------- ? ?   =  ?           ?         &n= bsp;  ? PnPUnattend.exe
> ?--------- ? ?    ?           ? &nb= sp;          ? PnPutil.exe
>
> Additio= nal info:
> I install
> Windows 2003 Standard Edition SP1 32(di= sk size: 50G, C:\50G) on vhd file,
> the problem disappear.
> Redhat 5.4 AS 64(disk size:60G, /: 50G, swap: 10G) on vhd file, the> problem disappear.
> Windows 2008 R2 Standard Edition 64(disk s= ize: 100G, C:\ 100G) on vhd
> file, the problem disappear.
> Wi= ndows 2008 R2 Standard Edition 64(disk size: 100G, C:\ 90G, D:\10G) on
> vhd file, the problem disappear.
> Windows 2008 R2 Standard Edit= ion 64(disk size: 20G, C:\ 15G, D:\ 5G) on
> raw file, the problem di= sappear.
> Windows 2008 R2 Standard Edition 64(disk size: 20G, C:\ 15= G, D:\ 5G) on
> vhd file, the problem appear.
> Windows 2008 R2 Standard Edition= 64(disk size: 100G, C:\ 15G, D:\85G) on
> vhd file, the problem appe= ar.
>
> ps:
> windows 2003 need 3G disk space.
> re= dhat 5.4 need 4G disk space.
> windows 2008 need 8G disk space.
> the problem disappear means t= hat os can startup and no data error.
>
> compile env and files= ystem :
>  Redhat AS 5.4
>
> xm info:
> host &= nbsp;                 : vm01
> release                : 2.6.3= 1.13
> version                = ;: #1 SMP Wed Apr 21 12:30:21 CST 2010
> machine      =          : x86_64
> nr_cpus     &= nbsp;          : 16
> nr_nodes    =           : 1
> cores_per_socket       : 4
> threads_per_core &nb= sp;     : 2
> cpu_mhz           &n= bsp;    : 2400
> hw_caps          =      :
> bfebfbff:28100800:00000000:00001b40:009ce3bd= :00000000:00000001:00000000
> virt_caps              : hvm
>= ; total_memory           : 24539
> free_memo= ry            : 1668
> node_to_cpu &nbs= p;          : node0:0-15
> node_to_memory &n= bsp;       : node0:1668
> node_to_dma32_mem   &nb= sp;  : node0:82
> max_node_id            : 0
> xen_m= ajor              : 4
> xen_minor =              : 0
> xen_extra  = ;            : .0
> xen_caps   &nb= sp;           : xen-3.0-x86_64 xen-3.0-x86_32p hvm= -3.0-x86_32
> hvm-3.0-x86_32p hvm-3.0-x86_64
> xen_scheduler          : credit
> xen_p= agesize           : 4096
> platform_params &= nbsp;      : virt_start=3D0xffff800000000000
> xen_cha= ngeset          : unavailable
> xen_commandl= ine        : dom0_max_vcpus=3D2 dom0_vcpus_pin
> cc_compiler            : gcc version 4.1= .2 20080704 (Red Hat 4.1.2-46)
> cc_compile_by       &= nbsp;  : root
> cc_compile_domain      : dev.sd.test.com
> = cc_compile_date        : Mon Apr 26 10:17:37 CST 2010 > xend_config_format     : 4
>


--0016e64cbd6edf3bc304861824f2-- --===============0249477435== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0249477435==--