Re: Cannot launch hart RT UOS when running Ubuntu as SOS


Alfonso Sanchez-Beato
 

Hi Liu,

On Wed, Jan 8, 2020 at 12:12 PM Liu, Fuzhong <fuzhong.liu@...> wrote:

Hi Alfonso,

You are using default launch_hard_rt_vm.sh, right?

Maybe, it is SDC(by default) scenario for your acrn.efi,

Please refer following patch:

 

diff --git a/hypervisor/arch/x86/Kconfig b/hypervisor/arch/x86/Kconfig

index 41a78fe7..386a074b 100644

--- a/hypervisor/arch/x86/Kconfig

+++ b/hypervisor/arch/x86/Kconfig

@@ -1,6 +1,6 @@

choice

        prompt "ACRN Scenario"

-       default SDC

+       default INDUSTRY

        help

          Select the scenario name to load corresponding VM configuration.

 

Then;

 

cd ~/acrn-hypervisor

make

sudo make install

 

And try again.


I tried with that, but no difference in the traces :-/.
Actually I had already tried with 'make all BOARD=nuc7i7dnb SCENARIO=industry', which I guess i the same.
 

 

Thanks!

 

BR.

Fuzhong


Thanks
Alfonso
 

 

From: acrn-users@... <acrn-users@...> On Behalf Of alfonso.sanchez-beato@...
Sent: Wednesday, January 8, 2020 5:44 PM
To: acrn-users@...
Subject: [acrn-users] Cannot launch hart RT UOS when running Ubuntu as SOS

 

Hi,

I have set-up Ubuntu as service OS by following the instructions in https://projectacrn.github.io/latest/tutorials/using_ubuntu_as_sos.html. ACRN is recognized as hypervisor and all looks good in principle. However, after that I followed the instructions on how to start an RT UOS and things fail:

$ sudo /usr/share/acrn/samples/nuc/launch_hard_rt_vm.sh

cpu1 online=1

cpu2 online=1

cpu3 online=1

pm by vuart node-index = 1

SW_LOAD: get ovmf path /usr/share/acrn/bios/OVMF.fd, size 0x200000

vm_create: hard_rtvm

VHM api version 1.0

failed to create VM hard_rtvm


The kernel output is:

[ 1530.397790] smpboot: CPU 1 is now offline

[ 1530.398653] vhm: try to offline cpu 1 with lapicid 2

[ 1530.409744] smpboot: CPU 2 is now offline

[ 1530.410476] vhm: try to offline cpu 2 with lapicid 4

[ 1530.429694] smpboot: CPU 3 is now offline

[ 1530.430509] vhm: try to offline cpu 3 with lapicid 6

[ 1530.575078] nvme nvme0: failed to set APST feature (-19)

[ 1530.579387] pci-stub 0000:02:00.0: claimed by stub

[ 1530.661794] vhm_dev_open: opening device node

[ 1530.663654] vhm: failed to create VM from Hypervisor !

[ 1531.163905] vhm: failed to create VM from Hypervisor !

[ 1531.664126] vhm: failed to create VM from Hypervisor !

[ 1532.164360] vhm: failed to create VM from Hypervisor !

[ 1532.664589] vhm: failed to create VM from Hypervisor !

[ 1533.164775] vhm: failed to create VM from Hypervisor !

[ 1533.664987] vhm: failed to create VM from Hypervisor !

[ 1534.165215] vhm: failed to create VM from Hypervisor !

[ 1534.665435] vhm: failed to create VM from Hypervisor !

[ 1535.165656] vhm: failed to create VM from Hypervisor !

[ 1535.682037] vhm: freed vm

 

Any hint on what might be going wrong and instructions on how to debug? I followed previously the tutorial for Clear Linux and was able to launch the RT image. I am using a NUC7i7DNH device.

Thanks!
Alfonso

Join acrn-users@lists.projectacrn.org to automatically receive all group messages.