launch_ubuntu in Ubuntu Service VM will automatically reboot


Geoffroy Van Cutsem
 

Hi Jianjie Lin,

 

I do not have these details yet, the feature is still under development.

 

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Monday, July 12, 2021 12:11 pm
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffroy,

 

This is really very thankful. And this new feature will be suitable for Tiger lake Or not? Or is still under development.

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Montag, 12. Juli 2021 11:49
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

FYI, GPU sharing based on SR-IOV will be tracked in this Github issue: https://github.com/projectacrn/acrn-hypervisor/issues/6290

 

Thanks!
Geoffroy

 

From: VanCutsem, Geoffroy
Sent: Thursday, July 8, 2021 3:56 pm
To: acrn-users@...
Subject: RE: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

Thanks for these details!

 

Regarding graphics, the focus has been on GVT-d (so no sharing) after ACRN 1.0, and Tiger Lake does not support GVT-g. I’m not entirely up-to-date on the status of SRIOV for GPU, let me investigate a bit and get back to you.

 

The ivshmem (shared memory) mechanism to allow communication between User VMs does not break what I call strict isolation. But in your case, the fact you want to share graphics tells me you don’t really need strict isolation.

 

Regarding Functional Safety, is this a third VM that will run this FuSa workload? In the current state of affair, a FuSa VM would be run as a “pre-launched User VM”, the reason being that otherwise, you get the Service VM and ACRN Device Model that would need to be certified too, and that is not currently possible. A pre-launched User VM cannot share resources with other VMs so graphics sharing is not possible for that one for example. I’m also assuming this FuSa VM would not be running Linux.

 

Cheers,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Thursday, July 8, 2021 12:49 pm
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you very much for your explanations.

About your questions:

 

* Do I need/want to share graphics between multiple VMs?

à Yes, I need to share the graphics between user VMS. As I seen from the acrn project, intel proposed the gvt-g solution. But I found tiger lake-based processor can not support the gvt-g, but only gvt-d, am I right?

By the way, does ACRN support the SR-IOV GPU virtualization, Like the AMD MxGPU?

 

* Do I need strict isolation between (some) VMs?

à Well, Actually, We would like to communicate with each VMS, is this “strict” isolation?

 

* Do I have realtime constraints (and are those “soft-realtime” or “hard realtime”)?

à in the current setting, real time is not important.

 

* How many Virtual Machines do you want to run?

à at least two User VMs.

 

* What host OSs do you want to run in those?

à my host OS is the Ubuntu 18.04

 

* Do parts of the system need to be certified for Functional Safety.

à yes, this is quietly important.

 

Thank you very much again for your reply.

Cheers,

Jianjie LIN

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Mittwoch, 7. Juli 2021 12:49
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is correct, although a bit of a simplification. This is part of the evolution of Intel’s tick tock model [1], where new microprocessor architectures are introduced and the generation after is about a die shrink (new manufacturing process technology). That model evolved by adding an “optimization” step as well and this is what we are seeing here. So the short answer is, Whiskey Lake is *very* similar to Skylake, but not 100% identical. I don’t have a lot of experience running ACRN on Skylake but I do not know that graphics will be an issue if you need to do graphics sharing. I also believe that running ACRN on SKL should work if you don’t need the graphics sharing feature.

 

If you can tell me a bit more about your use-case (without disclosing any company confidential info), we can try to guide you the best we can. This is the kind of questions you should ask yourself:

* Do I need/want to share graphics between multiple VMs?

* Do I need strict isolation between (some) VMs?

* Do I have realtime constraints (and are those “soft-realtime” or “hard realtime”)?

* How many Virtual Machines do you want to run?

* What host OSs do you want to run in those?

* Do parts of the system need to be certified for Functional Safety

 

There may be more of those but that will already help us understand what you need!

 

Thanks,

Geoffroy

 

[1] https://en.wikipedia.org/wiki/Tick%E2%80%93tock_model

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Wednesday, July 7, 2021 10:40 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffroy,

 

As you said, a Skylake (SKL) system is not supported by ACRN hypervisor.

 

But I find “Whiskey Lake” in the supported Hardware list.

Based on the wiki:  https://en.wikipedia.org/wiki/Whiskey_Lake_(microprocessor)

 

Whiskey Lake is Intel's codename for a family of third 14 nm generation Skylake low-power mobile processors. Intel announced Whiskey Lake on August 28, 2018”.

 

Am I wrong?

 

Since we are searching for a new hardware for our experiment, your opinions are important for our choice.

Thank you very much for your answer.

 

Cheers,

Jianjie Lin

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 11:11
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 10:26 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you

 

My dell pc is the dell OptiPlex 7010.

Memory: 7,6GB

Processor: Intel Core i5-6500 cpu @3.2Ghz *4

Graphics: Intel HD Graphics 530 (SKL GT2)

Os-type 64 bit.

 

lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             800.124
CPU max MHz:         3600,0000
CPU min MHz:         800,0000
BogoMIPS:            6399.96
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Is it enough for your diagnose?

 

 

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 10:15
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An:
acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Jianjie Lin
 

Hi Geoffroy,

 

This is really very thankful. And this new feature will be suitable for Tiger lake Or not? Or is still under development.

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Montag, 12. Juli 2021 11:49
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

FYI, GPU sharing based on SR-IOV will be tracked in this Github issue: https://github.com/projectacrn/acrn-hypervisor/issues/6290

 

Thanks!
Geoffroy

 

From: VanCutsem, Geoffroy
Sent: Thursday, July 8, 2021 3:56 pm
To: acrn-users@...
Subject: RE: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

Thanks for these details!

 

Regarding graphics, the focus has been on GVT-d (so no sharing) after ACRN 1.0, and Tiger Lake does not support GVT-g. I’m not entirely up-to-date on the status of SRIOV for GPU, let me investigate a bit and get back to you.

 

The ivshmem (shared memory) mechanism to allow communication between User VMs does not break what I call strict isolation. But in your case, the fact you want to share graphics tells me you don’t really need strict isolation.

 

Regarding Functional Safety, is this a third VM that will run this FuSa workload? In the current state of affair, a FuSa VM would be run as a “pre-launched User VM”, the reason being that otherwise, you get the Service VM and ACRN Device Model that would need to be certified too, and that is not currently possible. A pre-launched User VM cannot share resources with other VMs so graphics sharing is not possible for that one for example. I’m also assuming this FuSa VM would not be running Linux.

 

Cheers,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Thursday, July 8, 2021 12:49 pm
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you very much for your explanations.

About your questions:

 

* Do I need/want to share graphics between multiple VMs?

à Yes, I need to share the graphics between user VMS. As I seen from the acrn project, intel proposed the gvt-g solution. But I found tiger lake-based processor can not support the gvt-g, but only gvt-d, am I right?

By the way, does ACRN support the SR-IOV GPU virtualization, Like the AMD MxGPU?

 

* Do I need strict isolation between (some) VMs?

à Well, Actually, We would like to communicate with each VMS, is this “strict” isolation?

 

* Do I have realtime constraints (and are those “soft-realtime” or “hard realtime”)?

à in the current setting, real time is not important.

 

* How many Virtual Machines do you want to run?

à at least two User VMs.

 

* What host OSs do you want to run in those?

à my host OS is the Ubuntu 18.04

 

* Do parts of the system need to be certified for Functional Safety.

à yes, this is quietly important.

 

Thank you very much again for your reply.

Cheers,

Jianjie LIN

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Mittwoch, 7. Juli 2021 12:49
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is correct, although a bit of a simplification. This is part of the evolution of Intel’s tick tock model [1], where new microprocessor architectures are introduced and the generation after is about a die shrink (new manufacturing process technology). That model evolved by adding an “optimization” step as well and this is what we are seeing here. So the short answer is, Whiskey Lake is *very* similar to Skylake, but not 100% identical. I don’t have a lot of experience running ACRN on Skylake but I do not know that graphics will be an issue if you need to do graphics sharing. I also believe that running ACRN on SKL should work if you don’t need the graphics sharing feature.

 

If you can tell me a bit more about your use-case (without disclosing any company confidential info), we can try to guide you the best we can. This is the kind of questions you should ask yourself:

* Do I need/want to share graphics between multiple VMs?

* Do I need strict isolation between (some) VMs?

* Do I have realtime constraints (and are those “soft-realtime” or “hard realtime”)?

* How many Virtual Machines do you want to run?

* What host OSs do you want to run in those?

* Do parts of the system need to be certified for Functional Safety

 

There may be more of those but that will already help us understand what you need!

 

Thanks,

Geoffroy

 

[1] https://en.wikipedia.org/wiki/Tick%E2%80%93tock_model

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Wednesday, July 7, 2021 10:40 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffroy,

 

As you said, a Skylake (SKL) system is not supported by ACRN hypervisor.

 

But I find “Whiskey Lake” in the supported Hardware list.

Based on the wiki:  https://en.wikipedia.org/wiki/Whiskey_Lake_(microprocessor)

 

Whiskey Lake is Intel's codename for a family of third 14 nm generation Skylake low-power mobile processors. Intel announced Whiskey Lake on August 28, 2018”.

 

Am I wrong?

 

Since we are searching for a new hardware for our experiment, your opinions are important for our choice.

Thank you very much for your answer.

 

Cheers,

Jianjie Lin

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 11:11
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 10:26 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you

 

My dell pc is the dell OptiPlex 7010.

Memory: 7,6GB

Processor: Intel Core i5-6500 cpu @3.2Ghz *4

Graphics: Intel HD Graphics 530 (SKL GT2)

Os-type 64 bit.

 

lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             800.124
CPU max MHz:         3600,0000
CPU min MHz:         800,0000
BogoMIPS:            6399.96
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Is it enough for your diagnose?

 

 

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 10:15
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An:
acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Geoffroy Van Cutsem
 

Hi Jianjie Lin,

 

FYI, GPU sharing based on SR-IOV will be tracked in this Github issue: https://github.com/projectacrn/acrn-hypervisor/issues/6290

 

Thanks!
Geoffroy

 

From: VanCutsem, Geoffroy
Sent: Thursday, July 8, 2021 3:56 pm
To: acrn-users@...
Subject: RE: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

Thanks for these details!

 

Regarding graphics, the focus has been on GVT-d (so no sharing) after ACRN 1.0, and Tiger Lake does not support GVT-g. I’m not entirely up-to-date on the status of SRIOV for GPU, let me investigate a bit and get back to you.

 

The ivshmem (shared memory) mechanism to allow communication between User VMs does not break what I call strict isolation. But in your case, the fact you want to share graphics tells me you don’t really need strict isolation.

 

Regarding Functional Safety, is this a third VM that will run this FuSa workload? In the current state of affair, a FuSa VM would be run as a “pre-launched User VM”, the reason being that otherwise, you get the Service VM and ACRN Device Model that would need to be certified too, and that is not currently possible. A pre-launched User VM cannot share resources with other VMs so graphics sharing is not possible for that one for example. I’m also assuming this FuSa VM would not be running Linux.

 

Cheers,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Thursday, July 8, 2021 12:49 pm
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you very much for your explanations.

About your questions:

 

* Do I need/want to share graphics between multiple VMs?

à Yes, I need to share the graphics between user VMS. As I seen from the acrn project, intel proposed the gvt-g solution. But I found tiger lake-based processor can not support the gvt-g, but only gvt-d, am I right?

By the way, does ACRN support the SR-IOV GPU virtualization, Like the AMD MxGPU?

 

* Do I need strict isolation between (some) VMs?

à Well, Actually, We would like to communicate with each VMS, is this “strict” isolation?

 

* Do I have realtime constraints (and are those “soft-realtime” or “hard realtime”)?

à in the current setting, real time is not important.

 

* How many Virtual Machines do you want to run?

à at least two User VMs.

 

* What host OSs do you want to run in those?

à my host OS is the Ubuntu 18.04

 

* Do parts of the system need to be certified for Functional Safety.

à yes, this is quietly important.

 

Thank you very much again for your reply.

Cheers,

Jianjie LIN

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Mittwoch, 7. Juli 2021 12:49
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is correct, although a bit of a simplification. This is part of the evolution of Intel’s tick tock model [1], where new microprocessor architectures are introduced and the generation after is about a die shrink (new manufacturing process technology). That model evolved by adding an “optimization” step as well and this is what we are seeing here. So the short answer is, Whiskey Lake is *very* similar to Skylake, but not 100% identical. I don’t have a lot of experience running ACRN on Skylake but I do not know that graphics will be an issue if you need to do graphics sharing. I also believe that running ACRN on SKL should work if you don’t need the graphics sharing feature.

 

If you can tell me a bit more about your use-case (without disclosing any company confidential info), we can try to guide you the best we can. This is the kind of questions you should ask yourself:

* Do I need/want to share graphics between multiple VMs?

* Do I need strict isolation between (some) VMs?

* Do I have realtime constraints (and are those “soft-realtime” or “hard realtime”)?

* How many Virtual Machines do you want to run?

* What host OSs do you want to run in those?

* Do parts of the system need to be certified for Functional Safety

 

There may be more of those but that will already help us understand what you need!

 

Thanks,

Geoffroy

 

[1] https://en.wikipedia.org/wiki/Tick%E2%80%93tock_model

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Wednesday, July 7, 2021 10:40 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffroy,

 

As you said, a Skylake (SKL) system is not supported by ACRN hypervisor.

 

But I find “Whiskey Lake” in the supported Hardware list.

Based on the wiki:  https://en.wikipedia.org/wiki/Whiskey_Lake_(microprocessor)

 

Whiskey Lake is Intel's codename for a family of third 14 nm generation Skylake low-power mobile processors. Intel announced Whiskey Lake on August 28, 2018”.

 

Am I wrong?

 

Since we are searching for a new hardware for our experiment, your opinions are important for our choice.

Thank you very much for your answer.

 

Cheers,

Jianjie Lin

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 11:11
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 10:26 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you

 

My dell pc is the dell OptiPlex 7010.

Memory: 7,6GB

Processor: Intel Core i5-6500 cpu @3.2Ghz *4

Graphics: Intel HD Graphics 530 (SKL GT2)

Os-type 64 bit.

 

lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             800.124
CPU max MHz:         3600,0000
CPU min MHz:         800,0000
BogoMIPS:            6399.96
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Is it enough for your diagnose?

 

 

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 10:15
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An:
acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Geoffroy Van Cutsem
 

Hi Jianjie Lin,

 

Thanks for these details!

 

Regarding graphics, the focus has been on GVT-d (so no sharing) after ACRN 1.0, and Tiger Lake does not support GVT-g. I’m not entirely up-to-date on the status of SRIOV for GPU, let me investigate a bit and get back to you.

 

The ivshmem (shared memory) mechanism to allow communication between User VMs does not break what I call strict isolation. But in your case, the fact you want to share graphics tells me you don’t really need strict isolation.

 

Regarding Functional Safety, is this a third VM that will run this FuSa workload? In the current state of affair, a FuSa VM would be run as a “pre-launched User VM”, the reason being that otherwise, you get the Service VM and ACRN Device Model that would need to be certified too, and that is not currently possible. A pre-launched User VM cannot share resources with other VMs so graphics sharing is not possible for that one for example. I’m also assuming this FuSa VM would not be running Linux.

 

Cheers,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Thursday, July 8, 2021 12:49 pm
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you very much for your explanations.

About your questions:

 

* Do I need/want to share graphics between multiple VMs?

à Yes, I need to share the graphics between user VMS. As I seen from the acrn project, intel proposed the gvt-g solution. But I found tiger lake-based processor can not support the gvt-g, but only gvt-d, am I right?

By the way, does ACRN support the SR-IOV GPU virtualization, Like the AMD MxGPU?

 

* Do I need strict isolation between (some) VMs?

à Well, Actually, We would like to communicate with each VMS, is this “strict” isolation?

 

* Do I have realtime constraints (and are those “soft-realtime” or “hard realtime”)?

à in the current setting, real time is not important.

 

* How many Virtual Machines do you want to run?

à at least two User VMs.

 

* What host OSs do you want to run in those?

à my host OS is the Ubuntu 18.04

 

* Do parts of the system need to be certified for Functional Safety.

à yes, this is quietly important.

 

Thank you very much again for your reply.

Cheers,

Jianjie LIN

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Mittwoch, 7. Juli 2021 12:49
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is correct, although a bit of a simplification. This is part of the evolution of Intel’s tick tock model [1], where new microprocessor architectures are introduced and the generation after is about a die shrink (new manufacturing process technology). That model evolved by adding an “optimization” step as well and this is what we are seeing here. So the short answer is, Whiskey Lake is *very* similar to Skylake, but not 100% identical. I don’t have a lot of experience running ACRN on Skylake but I do not know that graphics will be an issue if you need to do graphics sharing. I also believe that running ACRN on SKL should work if you don’t need the graphics sharing feature.

 

If you can tell me a bit more about your use-case (without disclosing any company confidential info), we can try to guide you the best we can. This is the kind of questions you should ask yourself:

* Do I need/want to share graphics between multiple VMs?

* Do I need strict isolation between (some) VMs?

* Do I have realtime constraints (and are those “soft-realtime” or “hard realtime”)?

* How many Virtual Machines do you want to run?

* What host OSs do you want to run in those?

* Do parts of the system need to be certified for Functional Safety

 

There may be more of those but that will already help us understand what you need!

 

Thanks,

Geoffroy

 

[1] https://en.wikipedia.org/wiki/Tick%E2%80%93tock_model

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Wednesday, July 7, 2021 10:40 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffroy,

 

As you said, a Skylake (SKL) system is not supported by ACRN hypervisor.

 

But I find “Whiskey Lake” in the supported Hardware list.

Based on the wiki:  https://en.wikipedia.org/wiki/Whiskey_Lake_(microprocessor)

 

Whiskey Lake is Intel's codename for a family of third 14 nm generation Skylake low-power mobile processors. Intel announced Whiskey Lake on August 28, 2018”.

 

Am I wrong?

 

Since we are searching for a new hardware for our experiment, your opinions are important for our choice.

Thank you very much for your answer.

 

Cheers,

Jianjie Lin

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 11:11
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 10:26 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you

 

My dell pc is the dell OptiPlex 7010.

Memory: 7,6GB

Processor: Intel Core i5-6500 cpu @3.2Ghz *4

Graphics: Intel HD Graphics 530 (SKL GT2)

Os-type 64 bit.

 

lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             800.124
CPU max MHz:         3600,0000
CPU min MHz:         800,0000
BogoMIPS:            6399.96
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Is it enough for your diagnose?

 

 

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 10:15
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An:
acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Jianjie Lin
 

Hi Geoffory,

Thank you very much for your explanations.

About your questions:

 

* Do I need/want to share graphics between multiple VMs?

à Yes, I need to share the graphics between user VMS. As I seen from the acrn project, intel proposed the gvt-g solution. But I found tiger lake-based processor can not support the gvt-g, but only gvt-d, am I right?

By the way, does ACRN support the SR-IOV GPU virtualization, Like the AMD MxGPU?

 

* Do I need strict isolation between (some) VMs?

à Well, Actually, We would like to communicate with each VMS, is this “strict” isolation?

 

* Do I have realtime constraints (and are those “soft-realtime” or “hard realtime”)?

à in the current setting, real time is not important.

 

* How many Virtual Machines do you want to run?

à at least two User VMs.

 

* What host OSs do you want to run in those?

à my host OS is the Ubuntu 18.04

 

* Do parts of the system need to be certified for Functional Safety.

à yes, this is quietly important.

 

Thank you very much again for your reply.

Cheers,

Jianjie LIN

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Mittwoch, 7. Juli 2021 12:49
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is correct, although a bit of a simplification. This is part of the evolution of Intel’s tick tock model [1], where new microprocessor architectures are introduced and the generation after is about a die shrink (new manufacturing process technology). That model evolved by adding an “optimization” step as well and this is what we are seeing here. So the short answer is, Whiskey Lake is *very* similar to Skylake, but not 100% identical. I don’t have a lot of experience running ACRN on Skylake but I do not know that graphics will be an issue if you need to do graphics sharing. I also believe that running ACRN on SKL should work if you don’t need the graphics sharing feature.

 

If you can tell me a bit more about your use-case (without disclosing any company confidential info), we can try to guide you the best we can. This is the kind of questions you should ask yourself:

* Do I need/want to share graphics between multiple VMs?

* Do I need strict isolation between (some) VMs?

* Do I have realtime constraints (and are those “soft-realtime” or “hard realtime”)?

* How many Virtual Machines do you want to run?

* What host OSs do you want to run in those?

* Do parts of the system need to be certified for Functional Safety

 

There may be more of those but that will already help us understand what you need!

 

Thanks,

Geoffroy

 

[1] https://en.wikipedia.org/wiki/Tick%E2%80%93tock_model

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Wednesday, July 7, 2021 10:40 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffroy,

 

As you said, a Skylake (SKL) system is not supported by ACRN hypervisor.

 

But I find “Whiskey Lake” in the supported Hardware list.

Based on the wiki:  https://en.wikipedia.org/wiki/Whiskey_Lake_(microprocessor)

 

Whiskey Lake is Intel's codename for a family of third 14 nm generation Skylake low-power mobile processors. Intel announced Whiskey Lake on August 28, 2018”.

 

Am I wrong?

 

Since we are searching for a new hardware for our experiment, your opinions are important for our choice.

Thank you very much for your answer.

 

Cheers,

Jianjie Lin

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 11:11
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 10:26 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you

 

My dell pc is the dell OptiPlex 7010.

Memory: 7,6GB

Processor: Intel Core i5-6500 cpu @3.2Ghz *4

Graphics: Intel HD Graphics 530 (SKL GT2)

Os-type 64 bit.

 

lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             800.124
CPU max MHz:         3600,0000
CPU min MHz:         800,0000
BogoMIPS:            6399.96
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Is it enough for your diagnose?

 

 

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 10:15
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An:
acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Geoffroy Van Cutsem
 

Hi Jianjie Lin,

 

This is correct, although a bit of a simplification. This is part of the evolution of Intel’s tick tock model [1], where new microprocessor architectures are introduced and the generation after is about a die shrink (new manufacturing process technology). That model evolved by adding an “optimization” step as well and this is what we are seeing here. So the short answer is, Whiskey Lake is *very* similar to Skylake, but not 100% identical. I don’t have a lot of experience running ACRN on Skylake but I do not know that graphics will be an issue if you need to do graphics sharing. I also believe that running ACRN on SKL should work if you don’t need the graphics sharing feature.

 

If you can tell me a bit more about your use-case (without disclosing any company confidential info), we can try to guide you the best we can. This is the kind of questions you should ask yourself:

* Do I need/want to share graphics between multiple VMs?

* Do I need strict isolation between (some) VMs?

* Do I have realtime constraints (and are those “soft-realtime” or “hard realtime”)?

* How many Virtual Machines do you want to run?

* What host OSs do you want to run in those?

* Do parts of the system need to be certified for Functional Safety

 

There may be more of those but that will already help us understand what you need!

 

Thanks,

Geoffroy

 

[1] https://en.wikipedia.org/wiki/Tick%E2%80%93tock_model

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Wednesday, July 7, 2021 10:40 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffroy,

 

As you said, a Skylake (SKL) system is not supported by ACRN hypervisor.

 

But I find “Whiskey Lake” in the supported Hardware list.

Based on the wiki:  https://en.wikipedia.org/wiki/Whiskey_Lake_(microprocessor)

 

Whiskey Lake is Intel's codename for a family of third 14 nm generation Skylake low-power mobile processors. Intel announced Whiskey Lake on August 28, 2018”.

 

Am I wrong?

 

Since we are searching for a new hardware for our experiment, your opinions are important for our choice.

Thank you very much for your answer.

 

Cheers,

Jianjie Lin

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 11:11
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 10:26 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you

 

My dell pc is the dell OptiPlex 7010.

Memory: 7,6GB

Processor: Intel Core i5-6500 cpu @3.2Ghz *4

Graphics: Intel HD Graphics 530 (SKL GT2)

Os-type 64 bit.

 

lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             800.124
CPU max MHz:         3600,0000
CPU min MHz:         800,0000
BogoMIPS:            6399.96
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Is it enough for your diagnose?

 

 

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 10:15
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An:
acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Jianjie Lin
 

Hi Geoffroy,

 

As you said, a Skylake (SKL) system is not supported by ACRN hypervisor.

 

But I find “Whiskey Lake” in the supported Hardware list.

Based on the wiki:  https://en.wikipedia.org/wiki/Whiskey_Lake_(microprocessor)

 

Whiskey Lake is Intel's codename for a family of third 14 nm generation Skylake low-power mobile processors. Intel announced Whiskey Lake on August 28, 2018”.

 

Am I wrong?

 

Since we are searching for a new hardware for our experiment, your opinions are important for our choice.

Thank you very much for your answer.

 

Cheers,

Jianjie Lin

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 11:11
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 10:26 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you

 

My dell pc is the dell OptiPlex 7010.

Memory: 7,6GB

Processor: Intel Core i5-6500 cpu @3.2Ghz *4

Graphics: Intel HD Graphics 530 (SKL GT2)

Os-type 64 bit.

 

lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             800.124
CPU max MHz:         3600,0000
CPU min MHz:         800,0000
BogoMIPS:            6399.96
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Is it enough for your diagnose?

 

 

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 10:15
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An:
acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Jianjie Lin
 

Hi Geoffroy,

 

Wo, thank you very much for your answers.

 

I will try again based on your suggestions.

 

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 11:57
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

Skylake (SKL) refers to the combination of the CPU and integrated GPU. But it’s the GPU that’s in general the cause of our troubles. If you can work with no GPU then this could work 😉

 

What I meant is that the PCI ID used in your launch script [1], uses a PCI ID that belongs to a network card, but it’s mixed with settings used for a GPU. But if you want to try without a GPU, then you can remove all the pass-through stuff from your launch scrip. Here is an example of a launch script you could try to use [2]

 

 

[1]

passthru_vpid=(
["gpu"]="8086 1539"
)

 

[2] new launch script

#!/bin/bash

 

function tap_net() {

# create a unique tap device for each VM

tap=$1

tap_exist=$(ip a | grep "$tap" | awk '{print $1}')

if [ "$tap_exist"x != "x" ]; then

  echo "tap device existed, reuse $tap"

else

  ip tuntap add dev $tap mode tap

fi

 

# if acrn-br0 exists, add VM's unique tap device under it

br_exist=$(ip a | grep acrn-br0 | awk '{print $1}')

if [ "$br_exist"x != "x" -a "$tap_exist"x = "x" ]; then

  echo "acrn-br0 bridge aleady exists, adding new tap device to it..."

  ip link set "$tap" master acrn-br0

  ip link set dev "$tap" down

  ip link set dev "$tap" up

fi

}

 

function launch_ubuntu()

{

#vm-name used to generate uos-mac address

mac=$(cat /sys/class/net/e*/address)

vm_name=post_vm_id$1

mac_seed=${mac:0:17}-${vm_name}

 

#check if the vm is running or not

vm_ps=$(pgrep -a -f acrn-dm)

echo $vm_ps

echo ${vm_name}

result=$(echo $vm_ps | grep -w "${vm_name}")

if [[ "$result" != "" ]]; then

  echo "$vm_name is running, can't create twice!"

  exit

fi

 

mem_size=4096M

#interrupt storm monitor for pass-through devices, params order:

#threshold/s,probe-period(s),intr-inject-delay-time(ms),delay-duration(ms)

intr_storm_monitor="--intr_monitor 10000,10,1,100"

 

#logger_setting, format: logger_name,level; like following

#logger_setting="--logger_setting console,level=4;kmsg,level=3;disk,level=5"

 

#for pm by vuart setting

pm_channel="--pm_notify_channel uart "

pm_by_vuart="--pm_by_vuart pty,/run/acrn/life_mngr_"$vm_name

pm_vuart_node=" -s 1:0,lpc -l com2,/run/acrn/life_mngr_"$vm_name

 

# for virt net setting

tap_id=tap_ubuntu_vm$1

tap_net ${tap_id}

 

acrn-dm -A -m $mem_size -s 0:0\

   $logger_setting \

   --mac_seed $mac_seed \

   --ovmf /usr/share/acrn/bios/OVMF.fd \

   --cpu_affinity 1,2 \

   $intr_storm_monitor \

   -s 3,virtio-blk, ./UOS.img \

   -s 5,virtio-net,${tap_id} \

   -s 6,virtio-hyper_dmabuf \

   -s 7,virtio-rnd \

   -s 8,xhci,1-2 \

   -s 9,virtio-console,@stdio:stdio_port \

   $pm_channel $pm_by_vuart $pm_vuart_node \

   $vm_name

 

}

 

# offline SOS CPUs except BSP before launch UOS

for i in `ls -d /sys/devices/system/cpu/cpu[1-99]`; do

        online=`cat $i/online`

        idx=`echo $i | tr -cd "[1-99]"`

        echo cpu$idx online=$online

        if [ "$online" = "1" ]; then

                echo 0 > $i/online

                echo $idx > /sys/class/vhm/acrn_vhm/offline_cpu

        fi

done

 

launch_ubuntu 1

 

 

Geoffroy

 

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 11:41 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

  •  this is sad that Skylake is not supported.  But I see that “Graphics: Intel HD Graphics 530 (SKL GT2)” is the SKL system, but is my cpu or core also? I am not familiar with this topic. If the problem is because of GPU, can I disable the GPU, and launch the ubuntu in the terminal.  Thank your very much for your support.

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

  • What do you mean in this case? I click the link, but I did not understand.

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 11:11
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 10:26 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you

 

My dell pc is the dell OptiPlex 7010.

Memory: 7,6GB

Processor: Intel Core i5-6500 cpu @3.2Ghz *4

Graphics: Intel HD Graphics 530 (SKL GT2)

Os-type 64 bit.

 

lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             800.124
CPU max MHz:         3600,0000
CPU min MHz:         800,0000
BogoMIPS:            6399.96
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Is it enough for your diagnose?

 

 

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 10:15
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An:
acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Geoffroy Van Cutsem
 

Hi Jianjie Lin,

 

Skylake (SKL) refers to the combination of the CPU and integrated GPU. But it’s the GPU that’s in general the cause of our troubles. If you can work with no GPU then this could work 😉

 

What I meant is that the PCI ID used in your launch script [1], uses a PCI ID that belongs to a network card, but it’s mixed with settings used for a GPU. But if you want to try without a GPU, then you can remove all the pass-through stuff from your launch scrip. Here is an example of a launch script you could try to use [2]

 

 

[1]

passthru_vpid=(
["gpu"]="8086 1539"
)

 

[2] new launch script

#!/bin/bash

 

function tap_net() {

# create a unique tap device for each VM

tap=$1

tap_exist=$(ip a | grep "$tap" | awk '{print $1}')

if [ "$tap_exist"x != "x" ]; then

  echo "tap device existed, reuse $tap"

else

  ip tuntap add dev $tap mode tap

fi

# if acrn-br0 exists, add VM's unique tap device under it

br_exist=$(ip a | grep acrn-br0 | awk '{print $1}')

if [ "$br_exist"x != "x" -a "$tap_exist"x = "x" ]; then

  echo "acrn-br0 bridge aleady exists, adding new tap device to it..."

  ip link set "$tap" master acrn-br0

  ip link set dev "$tap" down

  ip link set dev "$tap" up

fi

}

function launch_ubuntu()

{

#vm-name used to generate uos-mac address

mac=$(cat /sys/class/net/e*/address)

vm_name=post_vm_id$1

mac_seed=${mac:0:17}-${vm_name}

#check if the vm is running or not

vm_ps=$(pgrep -a -f acrn-dm)

echo $vm_ps

echo ${vm_name}

result=$(echo $vm_ps | grep -w "${vm_name}")

if [[ "$result" != "" ]]; then

  echo "$vm_name is running, can't create twice!"

  exit

fi

mem_size=4096M

#interrupt storm monitor for pass-through devices, params order:

#threshold/s,probe-period(s),intr-inject-delay-time(ms),delay-duration(ms)

intr_storm_monitor="--intr_monitor 10000,10,1,100"

#logger_setting, format: logger_name,level; like following

#logger_setting="--logger_setting console,level=4;kmsg,level=3;disk,level=5"

#for pm by vuart setting

pm_channel="--pm_notify_channel uart "

pm_by_vuart="--pm_by_vuart pty,/run/acrn/life_mngr_"$vm_name

pm_vuart_node=" -s 1:0,lpc -l com2,/run/acrn/life_mngr_"$vm_name

# for virt net setting

tap_id=tap_ubuntu_vm$1

tap_net ${tap_id}

acrn-dm -A -m $mem_size -s 0:0\

   $logger_setting \

   --mac_seed $mac_seed \

   --ovmf /usr/share/acrn/bios/OVMF.fd \

   --cpu_affinity 1,2 \

   $intr_storm_monitor \

   -s 3,virtio-blk, ./UOS.img \

   -s 5,virtio-net,${tap_id} \

   -s 6,virtio-hyper_dmabuf \

   -s 7,virtio-rnd \

   -s 8,xhci,1-2 \

   -s 9,virtio-console,@stdio:stdio_port \

   $pm_channel $pm_by_vuart $pm_vuart_node \

   $vm_name

}

# offline SOS CPUs except BSP before launch UOS

for i in `ls -d /sys/devices/system/cpu/cpu[1-99]`; do

        online=`cat $i/online`

        idx=`echo $i | tr -cd "[1-99]"`

        echo cpu$idx online=$online

        if [ "$online" = "1" ]; then

                echo 0 > $i/online

                echo $idx > /sys/class/vhm/acrn_vhm/offline_cpu

        fi

done

launch_ubuntu 1

 

 

Geoffroy

 

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 11:41 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

  •  this is sad that Skylake is not supported.  But I see that “Graphics: Intel HD Graphics 530 (SKL GT2)” is the SKL system, but is my cpu or core also? I am not familiar with this topic. If the problem is because of GPU, can I disable the GPU, and launch the ubuntu in the terminal.  Thank your very much for your support.

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

  • What do you mean in this case? I click the link, but I did not understand.

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 11:11
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 10:26 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you

 

My dell pc is the dell OptiPlex 7010.

Memory: 7,6GB

Processor: Intel Core i5-6500 cpu @3.2Ghz *4

Graphics: Intel HD Graphics 530 (SKL GT2)

Os-type 64 bit.

 

lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             800.124
CPU max MHz:         3600,0000
CPU min MHz:         800,0000
BogoMIPS:            6399.96
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Is it enough for your diagnose?

 

 

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 10:15
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An:
acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Jianjie Lin
 

Hi Geoffory,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

  •  this is sad that Skylake is not supported.  But I see that “Graphics: Intel HD Graphics 530 (SKL GT2)” is the SKL system, but is my cpu or core also? I am not familiar with this topic. If the problem is because of GPU, can I disable the GPU, and launch the ubuntu in the terminal.  Thank your very much for your support.

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

  • What do you mean in this case? I click the link, but I did not understand.

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 11:11
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie Lin,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 10:26 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you

 

My dell pc is the dell OptiPlex 7010.

Memory: 7,6GB

Processor: Intel Core i5-6500 cpu @3.2Ghz *4

Graphics: Intel HD Graphics 530 (SKL GT2)

Os-type 64 bit.

 

lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             800.124
CPU max MHz:         3600,0000
CPU min MHz:         800,0000
BogoMIPS:            6399.96
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Is it enough for your diagnose?

 

 

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 10:15
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An:
acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Geoffroy Van Cutsem
 

Hi Jianjie Lin,

 

This is a Skylake (SKL) system, and unfortunately it is not tested (nor well supported). Do you have another system from this list that you can try it on? https://projectacrn.github.io/latest/reference/hardware.html#

 

I also saw your launch script in the Github issue (thanks for posting it), there is a problem with the GPU pass-through in it though as the PCI ID is not the one from the integrated GPU: https://pci-ids.ucw.cz/read/PC/8086/1539

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 10:26 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Geoffory,

Thank you

 

My dell pc is the dell OptiPlex 7010.

Memory: 7,6GB

Processor: Intel Core i5-6500 cpu @3.2Ghz *4

Graphics: Intel HD Graphics 530 (SKL GT2)

Os-type 64 bit.

 

lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             800.124
CPU max MHz:         3600,0000
CPU min MHz:         800,0000
BogoMIPS:            6399.96
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d

Is it enough for your diagnose?

 

 

Cheers,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 10:15
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An:
acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Jianjie Lin
 

Hi Geoffory,

Thank you

 

My dell pc is the dell OptiPlex 7010.

Memory: 7,6GB

Processor: Intel Core i5-6500 cpu @3.2Ghz *4

Graphics: Intel HD Graphics 530 (SKL GT2)

Os-type 64 bit.


lscpu
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               94
Model name:          Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
Stepping:            3
CPU MHz:             800.124
CPU max MHz:         3600,0000
CPU min MHz:         800,0000
BogoMIPS:            6399.96
Virtualization:      VT-x
L1d cache:           32K
L1i cache:           32K
L2 cache:            256K
L3 cache:            6144K
NUMA node0 CPU(s):   0-3
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
Is it enough for your diagnose?



Cheers,

Jianjie Lin


Von: acrn-users@... <acrn-users@...> Im Auftrag von Geoffroy Van Cutsem
Gesendet: Dienstag, 6. Juli 2021 10:15
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To:
acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An:
acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: 
https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Liu, Fuzhong
 

Hi Jianjie Lin

Please raise git issue and upload your launch script.

Thanks!

 

BR.

Fuzhong

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Tuesday, July 6, 2021 3:25 PM
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Fuzhong,

Thank you for your reply. Apparently , the command “ sudo systemctl set-default multi-user.target” did not resolve the problem. It still  has the sos reboot.

Besides, after executing this command, ubuntu gui is disappeared.

 

Cheer,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Liu, Fuzhong
Gesendet: Montag, 5. Juli 2021 01:00
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie

If you still have sos reboot issue after following setting, please help to raise git issue @https://github.com/projectacrn/acrn-hypervisor/issues/

sudo systemctl set-default multi-user.target  

 

BR.

Fuzhong

 

From: acrn-users@... <acrn-users@...> On Behalf Of Liu, Fuzhong
Sent: Saturday, July 3, 2021 10:23 AM
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie

Which platform are you using?

You are using GVT-d for UOS, right?

Please have a try with following command in SOS and reboot:

sudo systemctl set-default multi-user.target  

 

BR.

Fuzhong

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 12:49 AM
To: acrn-users@...
Subject: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi,

I am News to ACRN Hypervisor.   After installing the ACRN hypervisor and a Ubuntu user image according to the instruction from https://projectacrn.github.io/latest/getting-started/getting-started.html, I try to launch the ubuntu user in Ubuntu Service VM.
However, it will automatically reboot the system, without any error message.

Mein launch_ubuntu.sh is modified based on the launch_win.sh by changing the name of image file.

Thank you very much for your reply in advanced.

Cheers,

Jianjie Lin

 


Geoffroy Van Cutsem
 

Can you give us more details on that Dell PC? Not all CPUs (and integrated GPUs) are supported.

 

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 10:12 am
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Jianjie Lin
 

Hi Fuzhong,

Thank you for your reply. Apparently , the command “ sudo systemctl set-default multi-user.target” did not resolve the problem. It still  has the sos reboot.

Besides, after executing this command, ubuntu gui is disappeared.

 

Cheer,

Jianjie Lin

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Liu, Fuzhong
Gesendet: Montag, 5. Juli 2021 01:00
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie

If you still have sos reboot issue after following setting, please help to raise git issue @https://github.com/projectacrn/acrn-hypervisor/issues/

sudo systemctl set-default multi-user.target  

 

BR.

Fuzhong

 

From: acrn-users@... <acrn-users@...> On Behalf Of Liu, Fuzhong
Sent: Saturday, July 3, 2021 10:23 AM
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie

Which platform are you using?

You are using GVT-d for UOS, right?

Please have a try with following command in SOS and reboot:

sudo systemctl set-default multi-user.target  

 

BR.

Fuzhong

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 12:49 AM
To: acrn-users@...
Subject: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi,

I am News to ACRN Hypervisor.   After installing the ACRN hypervisor and a Ubuntu user image according to the instruction from https://projectacrn.github.io/latest/getting-started/getting-started.html, I try to launch the ubuntu user in Ubuntu Service VM.
However, it will automatically reboot the system, without any error message.

Mein launch_ubuntu.sh is modified based on the launch_win.sh by changing the name of image file.

Thank you very much for your reply in advanced.

Cheers,

Jianjie Lin

 


Liu, Fuzhong
 

Hi Jianjie

If you still have sos reboot issue after following setting, please help to raise git issue @https://github.com/projectacrn/acrn-hypervisor/issues/

sudo systemctl set-default multi-user.target  

 

BR.

Fuzhong

 

From: acrn-users@... <acrn-users@...> On Behalf Of Liu, Fuzhong
Sent: Saturday, July 3, 2021 10:23 AM
To: acrn-users@...
Subject: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie

Which platform are you using?

You are using GVT-d for UOS, right?

Please have a try with following command in SOS and reboot:

sudo systemctl set-default multi-user.target  

 

BR.

Fuzhong

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 12:49 AM
To: acrn-users@...
Subject: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi,

I am News to ACRN Hypervisor.   After installing the ACRN hypervisor and a Ubuntu user image according to the instruction from https://projectacrn.github.io/latest/getting-started/getting-started.html, I try to launch the ubuntu user in Ubuntu Service VM.
However, it will automatically reboot the system, without any error message.

Mein launch_ubuntu.sh is modified based on the launch_win.sh by changing the name of image file.

Thank you very much for your reply in advanced.

Cheers,

Jianjie Lin

 


Jianjie Lin
 

Hi Terry,

 

Thank you for your reply.

My system is stable and “dmesg |grep ACRN” also shows the correct message.

After I launch the guest Ubuntu in the acrn kernel, the acrn kernel (service VM) is directly reboot, and nothing happens (Here means the system just restart, and go the service VM again, but guest VM did not launch)

 

I follow the instruction in https://projectacrn.github.io/latest/getting-started/getting-started.html to install the ACRN hypervisor,

and follow the tutorial in https://projectacrn.github.io/latest/getting-started/roscube/roscube-gsg.html for installing the User VM, but without installing ROS environment.

 

Therefore the launch_ubuntu.sh is almost the same as in the  https://raw.githubusercontent.com/Adlink-ROS/ROScube_ACRN_guide/v2.1/scripts/launch_ubuntu_uos.sh

 

By the way,  I try the ACRN hypervisor in a dell pc with x86 cpu, I am not sure if this the NUC platform or not? Or Can we use an PC for deploying the ACRN hypervisor?

 

Thank you very much again for your help, and support.

 

Cheers,

Jianjie Lin

 

 

 

Von: acrn-users@... <acrn-users@...> Im Auftrag von Zou, Terry
Gesendet: Samstag, 3. Juli 2021 04:17
An: acrn-users@...
Betreff: Re: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.

$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init

Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Liu, Fuzhong
 

Hi Jianjie

Which platform are you using?

You are using GVT-d for UOS, right?

Please have a try with following command in SOS and reboot:

sudo systemctl set-default multi-user.target  

 

BR.

Fuzhong

From: acrn-users@... <acrn-users@...> On Behalf Of Jianjie Lin
Sent: Saturday, July 3, 2021 12:49 AM
To: acrn-users@...
Subject: [acrn-users] launch_ubuntu in Ubuntu Service VM will automatically reboot

 

Hi,

I am News to ACRN Hypervisor.   After installing the ACRN hypervisor and a Ubuntu user image according to the instruction from https://projectacrn.github.io/latest/getting-started/getting-started.html, I try to launch the ubuntu user in Ubuntu Service VM.
However, it will automatically reboot the system, without any error message.

Mein launch_ubuntu.sh is modified based on the launch_win.sh by changing the name of image file.

Thank you very much for your reply in advanced.

Cheers,

Jianjie Lin

 


Zou, Terry
 

Hi Jianjie, welcome to ACRN world : )
For your reboot issue, first, you already successfully boot ACRN and Ubuntu SOS right, you can check dmesg as below. If you don't launch Guest VM, the system is stable right.
$ dmesg | grep ACRN
[    0.000000] Hypervisor detected: ACRN
[    0.862942] ACRN HVLog: acrn_hvlog_init
Then, you just run launch_ubuntu.sh to launch guest VM, could you login Ubuntu for first time or just reboot and never succeed ? BTW, which platform are you trying on, a NUC platform, e.g., NUC11 ?

There are two steps for next debug: 1. could you enclosed your 'launch_ubuntu.sh', we can check if anything missed. 2. enable serial port to get HV log for next analysis: https://projectacrn.github.io/latest/tutorials/using_serial_port.html

Best & Regards
Terry


Jianjie Lin
 

Hi,

I am News to ACRN Hypervisor.   After installing the ACRN hypervisor and a Ubuntu user image according to the instruction from https://projectacrn.github.io/latest/getting-started/getting-started.html, I try to launch the ubuntu user in Ubuntu Service VM.
However, it will automatically reboot the system, without any error message.

Mein launch_ubuntu.sh is modified based on the launch_win.sh by changing the name of image file.

Thank you very much for your reply in advanced.

Cheers,

Jianjie Lin