From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754077AbcLLBXj (ORCPT ); Sun, 11 Dec 2016 20:23:39 -0500 Received: from szxga01-in.huawei.com ([58.251.152.64]:22142 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752638AbcLLBXi (ORCPT ); Sun, 11 Dec 2016 20:23:38 -0500 Subject: Re: [Xen-devel] Xen/cdrom: Ubuntu 16.04 VM read the content from CD-ROM abnormally To: Konrad Rzeszutek Wilk References: <584A696E.9090909@huawei.com> <20161209161543.GB11877@char.us.oracle.com> CC: , , , , , , From: Ken Message-ID: <584DFBD3.6090406@huawei.com> Date: Mon, 12 Dec 2016 09:22:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20161209161543.GB11877@char.us.oracle.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.24.112] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016/12/10 0:15, Konrad Rzeszutek Wilk wrote: > On Fri, Dec 09, 2016 at 04:21:02PM +0800, Ken wrote: >> Hi all, >> >> I run the Ubuntu 16.04 server (2 vcpu/2G, Linux 4.4.0) on the Xen-4.1.2, and >> installed gcc through the CDROM used by 16.04 iso file, when I installed gcc >> that depends deb packages to decompress failed. But uploaded the ISO files >> into the VM are mounted by loop or used as CDROM for other VM (Fedora 24) >> transport these abnormal files to 16.04 are available. So the 16.04 ISO file >> should be correct. >> >> Then I went to try to fix this problem, the steps are as follows: >> First of all, I was worried because the Hypervisor version is too old to >> cause this problems, so I upgraded to the Xen upstream and found that there >> are the problem still. >> >> Then, I went to attempted to upgrade the VM kernel, by dichotomy to find the >> smallest available kernel, but found that the kernel patch has nothing to do >> the cdrom or isofs driver, Linux kernel committed history has nothing to do >> these, combined with the Fedora within Linux 4.4.0 have no problem, so I >> inferred the kernel had no this defective. >> >> The above comparison can not troubleshoot the problem, so I analyzed the >> Linux CD-ROM device loading process to confirm that the problem is >> encountered before the mount. and I found the following three strange >> phenomenon: >> 1. Using Ubuntu 14.04.5 udevadm, re-packaged the init-ramfs of 16.04, reboot >> the VM, read the content of CD-ROM successfully, but compile the system-204 >> from the 14.04.5 and installed on 16.04, the problem still can not be >> resolved, some abnormal logs as blow: >> random: udevadm: uninitialized urandom read (16 bytes read, 28 bits of >> entropy available) >> >> 2. found that the VM registers dmi failed at startup, so I removed the dmi >> driver, reboot the VM, read the content of CD-ROM successfully, and from the >> kernel dmi_scan_machine code, it should not affect to use the CD-ROM, The >> failed logs as blow: >> ioremap error for 0xfc001000-0xfc002000, requested 0x2, got 0x0 >> dmi: Firmware registration failed. >> >> 3. Deploy the VM within 8 vcpus, 8G memory, read the content of CD-ROM >> successfully. >> >> Therefore, I inferred this anomaly that has several problems, but can not >> focus it, there are other people have encountered this same anomaly? Do >> anyone have any suggests to >> debug it next step? > > I think you are the first one to see this. I had run small guests before > (1GB, 1VCPU) with ISO and did not encounter these issues. Are there > erorrs in the dmesg when the file is copied? The other VM are normal, it is only with Ubuntu 16.04 and its LTS(smaller than 8GB, 8VCPU). sometimes, the ubuntu 16.04 encountered problem that maybe printed some logs as blow: ISOFS: Interleaved files not (yet) supported. ISOFS: inode->i_ino = (14976). ISOFS: File unit size != 0 for ISO file (14976). >> >> Thanks. >> >> >> >> _______________________________________________ >> Xen-devel mailing list >> Xen-devel@lists.xen.org >> https://lists.xen.org/xen-devel > > . > From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Subject: Re: Xen/cdrom: Ubuntu 16.04 VM read the content from CD-ROM abnormally Date: Mon, 12 Dec 2016 09:22:27 +0800 Message-ID: <584DFBD3.6090406@huawei.com> References: <584A696E.9090909@huawei.com> <20161209161543.GB11877@char.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; Format="flowed" Content-Transfer-Encoding: base64 Return-path: Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGFKQ-0006KW-22 for xen-devel@lists.xenproject.org; Mon, 12 Dec 2016 01:22:54 +0000 In-Reply-To: <20161209161543.GB11877@char.us.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Konrad Rzeszutek Wilk Cc: xuquan8@huawei.com, zhang.zhanghailiang@huawei.com, linux-kernel@vger.kernel.org, pss.wulizhen@huawei.com, xen-devel@lists.xenproject.org, axboe@suse.de, rth@twiddle.net List-Id: xen-devel@lists.xenproject.org CgpPbiAyMDE2LzEyLzEwIDA6MTUsIEtvbnJhZCBSemVzenV0ZWsgV2lsayB3cm90ZToKPiBPbiBG cmksIERlYyAwOSwgMjAxNiBhdCAwNDoyMTowMlBNICswODAwLCBLZW4gd3JvdGU6Cj4+IEhpIGFs bCwKPj4KPj4gSSBydW4gdGhlIFVidW50dSAxNi4wNCBzZXJ2ZXIgKDIgdmNwdS8yRywgTGludXgg NC40LjApIG9uIHRoZSBYZW4tNC4xLjIsIGFuZAo+PiBpbnN0YWxsZWQgZ2NjIHRocm91Z2ggdGhl IENEUk9NIHVzZWQgYnkgMTYuMDQgaXNvIGZpbGUsIHdoZW4gSSBpbnN0YWxsZWQgZ2NjCj4+IHRo YXQgZGVwZW5kcyBkZWIgcGFja2FnZXMgdG8gZGVjb21wcmVzcyBmYWlsZWQuIEJ1dCB1cGxvYWRl ZCB0aGUgSVNPIGZpbGVzCj4+IGludG8gdGhlIFZNIGFyZSBtb3VudGVkIGJ5IGxvb3Agb3IgdXNl ZCBhcyBDRFJPTSBmb3Igb3RoZXIgVk0gKEZlZG9yYSAyNCkKPj4gdHJhbnNwb3J0IHRoZXNlIGFi bm9ybWFs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