| Summary: | Can not run QEMU machines under UNFS | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Runtime] General Runtime | Reporter: | Yi Zhao <yi.zhao> | ||||||
| Component: | General Runtime | Assignee: | Robert Yang <liezhi.yang> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | Yi Zhao <yi.zhao> | ||||||
| Severity: | normal | ||||||||
| Priority: | Medium+ | CC: | brian.avery, jose.perez.carranza, libertad.gonzalez.de.la.cruz, liezhi.yang, yi.zhao | ||||||
| Version: | 2.4 | ||||||||
| Target Milestone: | 2.4 M2 | ||||||||
| Hardware: | x86 | ||||||||
| OS: | Multiple | ||||||||
| Whiteboard: | |||||||||
| OS type for building Yocto: | --- | Type of Regression: | Regression (Used to work) | ||||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||||
| Attachments: |
|
||||||||
|
Description
Yi Zhao
2017-06-19 07:32:04 UTC
Created attachment 3831 [details] Screenshot I found this on Eclipse , cannot run qemu from eclipse and shows the same "kernel panic" error. Image location: http://autobuilder.yoctoproject.org/pub/releases/yocto-2.4_M1.rc1/machines/qemu/ Toolchain location: http://autobuilder.yoctoproject.org/pub/releases/yocto-2.4_M1.rc1/toolchain/ So, in 2.3 when you ran unfs (userspace nfs) from qemu you got the following response from unfsd: On your target please remember to add the following options for NFS nfsroot=IP_ADDRESS:/big/src/myBugs/RUN/11687/2.3/ROOTFS,nfsvers=3,port=3049,mountprog=21111,nfsprog=11111,udp,mountport=3048 -and we called qemu-system-x86_64 with the following nfs options: nfsroot=192.168.7.1:<absPath>/ROOTFS,nfsvers=3,port=3049,mountprog=21111,nfsprog=11111,udp,mountport=3048 THIS WORKS!!! In 2.4 the unfsd program tells us: On your target please remember to add the following options for NFS nfsroot=IP_ADDRESS:/big/src/myBugs/RUN/11687/2.4M1/ROOTFS,nfsvers=3,port=3049,udp,mountport=3048 Yet, we still call qemu-system-x86_64 with the following nfs options: nfsroot=192.168.7.1:<absPath>/ROOTFS,nfsvers=3,port=3049,mountprog=21111,nfsprog=11111,udp,mountport=3048 THIS FAILS/KERNEL PANICS! If I hack runqemu to NOT add the mountprog=21111,nfsprog=11111 and call qemu-system-x86_64 with the following nfs options: nfsroot=192.168.7.1:<absPath>/ROOTFS,nfsvers=3,port=3049,udp,mountport=3048 THIS WORKS We can either parse the output from "add the following nfs options..." or just remove them since we changed runqemu-export-rootfs in commit 6bb9860ef7ba9c84fe9bd3a81aa6555f67ebd38e to no longer set the rpcports. When I say "remove them" I mean remove mountprog=21111,nfsprog=11111, from the nfsroot line. Merged into master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4d54ebab89595f0df38c58311b7bb012f591ec77 Verified with 2.4 M2 rc2. Git rev: master/8e15e9b6e478f6368034519b2a8fd3c7ea71d23b |