Date   

Re: launch_ubuntu in Ubuntu Service VM will automatically reboot

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

 


Re: Android on ACRN on QEMU

Kishore Kanala
 

Thanks David and Terry.
It will be very helpful if doc was available for AaaG on ACRN on QEMU. Is it possible for someone to help me with this?

On Sat, Jul 3, 2021 at 7:51 AM Zou, Terry <terry.zou@...> wrote:
Thanks David, 'Using Celadon as UOS' is the right AaaG doc in my mind :)  https://projectacrn.github.io/1.5/tutorials/using_celadon_as_uos.html

Best & Regards
Terry


Re: launch_ubuntu in Ubuntu Service VM will automatically reboot

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


Re: launch_ubuntu in Ubuntu Service VM will automatically reboot

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

 


Re: Android on ACRN on QEMU

Zou, Terry
 

Thanks David, 'Using Celadon as UOS' is the right AaaG doc in my mind :)  https://projectacrn.github.io/1.5/tutorials/using_celadon_as_uos.html

Best & Regards
Terry


Re: launch_ubuntu in Ubuntu Service VM will automatically reboot

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


Re: Android on ACRN on QEMU

Kinder, David B
 

All the ACRN release documentation are archived and available online.  If you click on the version selector icon (where it says v:latest under the search box in the left navigation pane, you can then click on any of the listed versions (such as 1.0) and get to the v1.0 ACRN documentation.  (You can also manually enter the URL for the version of ACRN documentation, for example for v1.0: https://projectacrn.github.io/1.0/  or for v1.5: https://projectacrn.github.io/1.5/   

 

I do see this Celadon document in the v1.5 archive that might be relevant, but maybe Terry has a specific document in mind: Using Celadon as the User OS — Project ACRN™ v 1.6-unstable documentation

 

-- david

 

 

From: acrn-users@... <acrn-users@...> On Behalf Of Zou, Terry
Sent: Friday, July 2, 2021 6:54 PM
To: acrn-users@...
Subject: Re: [acrn-users] Android on ACRN on QEMU

 

Good to see you already enabled ACRN over QEMU : ).
Yes, it is not easy to find AaaG guide doc in ACRN home page now, you know we retired some old doc during homepage refresh. I need to check if we have any archive doc to help you. Stay tuned and back to you later.


Re: Android on ACRN on QEMU

Zou, Terry
 

Good to see you already enabled ACRN over QEMU : ).
Yes, it is not easy to find AaaG guide doc in ACRN home page now, you know we retired some old doc during homepage refresh. I need to check if we have any archive doc to help you. Stay tuned and back to you later.


launch_ubuntu in Ubuntu Service VM will automatically reboot

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

 


Re: Android on ACRN on QEMU

Kishore Kanala
 

Hi Terry,

    Thanks for response.

    >do you mean enable ACRN over QEMU, then launch an AaaG (Android as a Guest) in ACRN right.
     Yes.

      I have setup SoS and UoS based on guide https://projectacrn.github.io/latest/tutorials/acrn_on_qemu.html
      Can you please help me with the guide that is used for AaaG that was used with ACRN 1.0 SDC? I will try and let you know if I face any issue.

Regards,
Kishore

On Thu, Jul 1, 2021 at 6:49 PM Zou, Terry <terry.zou@...> wrote:
Hi Kishore, do you mean enable ACRN over QEMU, then launch an AaaG (Android as a Guest) in ACRN right.

So for first step, there is guide doc of 'Enable ACRN over QEMU/KVM': https://projectacrn.github.io/latest/tutorials/acrn_on_qemu.html. but be aware, we only verified on KabyLake and Skylake platform (prefer to KBL NUC), and known issue on TGL (6256 - [TGL][qemu] Cannot launch qemu on TGL), that we are still working on the fix.

Secondly, for AaaG launch, actually it was legacy feature on ACRN 1.0 SDC (software-defined cockpit), we did not test with latest ACRN release for sometimes. so issue maybe expected, but encourage you to try and just let us know the specific failure step and see if we can help, thanks.

Best & Regards
Terry


Re: Android on ACRN on QEMU

Zou, Terry
 

Hi Kishore, do you mean enable ACRN over QEMU, then launch an AaaG (Android as a Guest) in ACRN right.

So for first step, there is guide doc of 'Enable ACRN over QEMU/KVM': https://projectacrn.github.io/latest/tutorials/acrn_on_qemu.html. but be aware, we only verified on KabyLake and Skylake platform (prefer to KBL NUC), and known issue on TGL (6256 - [TGL][qemu] Cannot launch qemu on TGL), that we are still working on the fix.

Secondly, for AaaG launch, actually it was legacy feature on ACRN 1.0 SDC (software-defined cockpit), we did not test with latest ACRN release for sometimes. so issue maybe expected, but encourage you to try and just let us know the specific failure step and see if we can help, thanks.

Best & Regards
Terry


Android on ACRN on QEMU

Kishore Kanala
 

Hi,

     We are looking for a platform to develop our applications (and native services) on Android that involve inter VM communication.
     This has to be on emulator (QEMU).
     Has anyone got Android up on ACRN on QEMU? If yes, can you please direct me to procedure?
     Thanks!

Regards,
Kishore


[Announce] ACRN Open Source Ver2.5 Release Notes

Zou, Terry
 

Hi all, 

We are very pleased to announce Version 2.5 release of ACRN. You can see the release blog from https://projectacrn.org/blog/ and detailed Release Notes in website https://projectacrn.github.io/latest/release_notes/release_notes_2.5.html

What’s New in v2.5

·       Nested Virtualization Technology Preview:

A brand-new concept, nested virtualization, is introduced as a preview in this v2.5 release. Nested virtualization lets you run virtual machine instances inside of a guest VM that’s running on the ACRN hypervisor. It’s designed to leverage the KVM/QEMU community’s rich feature set while keeping ACRN’s unique advantages in partition mode and hybrid mode. Read more in the Enable Nested Virtualization advanced guide.

·       Secure Boot Using EFI Stub:

EFI stub, previously retired in favor of using direct boot, returns as an alternative to end-to-end secure boot with Grub. The hypervisor, Service VM kernel, and prelaunched VM kernel are packaged into a single acrn.efi blob as an EFI application that can then be verified by the EFI BIOS. Read more in the Enable ACRN Secure Boot With EFI-Stub and Enable ACRN Secure Boot With GRUB advanced guides.

·       Modularization Improvements:

ACRN hypervisor modularization has been improved to be more scalable, including change to multiboot, interrupt handling, paging and memory management, and timers, with more to come in future releases.

·       Configuration and Build Process Improvements:

The ACRN configuration and build process continues to evolve from the changes made in the previous releases. For instructions using the build system, refer to Build ACRN From Source. For an introduction on the concepts and workflow of the configuration tools and processes, refer to Introduction to ACRN Configuration.

 

·       Document Updates:

With the changes to ACRN configuration, we made updates to the ACRN documentation around configuration, options, and parameters:

²  Introduction to ACRN Configuration

²  Scenario Configuration Options

²  Device Model Parameters

²  ACRN Kernel Parameters

New capabilities are documented here:

²  Enable Nested Virtualization

We’ve also made edits throughout the documentation to improve clarity, formatting, and presentation throughout the ACRN documentation:

²  Contribution Guidelines

²  Documentation Guidelines

²  AHCI Virtualization in Device Model

²  Device Passthrough

²  Hypercall / VHM Upcall

²  Timer

²  L1 Terminal Fault Mitigation

²  ACRN Hypervisor: Modular Design

²  Software Design Guidelines

²  Trusty TEE

²  Build ACRN From Source

²  Getting Started Guide

²  Supported Hardware

²  Enable ACRN Over QEMU/KVM

²  ACRN Documentation Generation

²  Enable Inter-VM Communication Based on Ivshmem

²  Run Debian as the Service VM

²  Trusty and Security Services Reference

²  Getting Started Guide for ACRN Hybrid Mode

²  Enable Serial Port on NUC

 

See the v2.5 full release notes and documentation for more information about this release including fixed and known issues.

Upgrading to v2.5 From Previous Releases

We highly recommended that you follow the instructions below to upgrade to v2.5 from previous ACRN releases.

·       Generate New Board XML

Board XML files, generated by ACRN board inspector, contain board information that is essential to build ACRN. Compared to previous versions, ACRN v2.5 extends the schema of board XMLs to summarize board information more systematically. You must regenerate your board XML file using the new board inspector when you upgrade to ACRN v2.5 to get the additional information needed for configuration.

Before using the new board inspector, ensure you have Python >= 3.6 on the target board and install the lxml PyPI package. Refer to Additional Dependencies for detailed steps to check and upgrade your Python version. The lxml package can be installed by executing the following command:

$ sudo pip3 install lxml 

Note: Refer to Using ACRN Configuration Toolset for a complete list of tools required to run the board inspector

With the prerequisites done, copy the entire board inspector folder from misc/config_tools/board_inspector to the target board, cd to that directory on the target, and run the board inspector tool using:

$ sudo python3 cli.py <my_board_name> 

This will generate <my_board_name>.xml in the current working directory. You’ll need to copy that XML file back to the host system to continue development.

·       Add New Configuration Options

In v2.5, the following elements are added to scenario XML files:

² hv.FEATURES.NVMX_ENABLED
² vm.PTM

The following element is renamed:

² hv.FEATURES.SSRAM.SSRAM_ENABLED (was hv.FEATURES.PSRAM.PSRAM_ENABLED in v2.4)

Constraints on values of the following element have changed:

² vm.guest_flags.guest_flag no longer accepts an empty text. For VMs with no guest flag set, set the value to 0.

 

Best & Regards

Terry


Re: ACRN support for AI Accelerator USB stick

Zou, Terry
 

Hi Feng.Pan, really good idea to try Movidius USB stick in virtual machine on top of ACRN, that would be a wonderful scenario to run AI workload with OpenVINO in one VM, both Linux or Windows , and other time critical workload in other VM, e.g., RTVM :)
Basically for ACRN, AI USB stick is an USB device in SOS, you can either pass-through this device to post-launch Linux/Windows VM directly or pass-through USB host controller to guest(corresponding USB slave device will also pass-through to same guest VM).  
But actually we did not try such Movidius USB stick yet, if you have it on-hand, please try it, and let us know if any specific issues. thanks.

Best & Regards
Terry


ACRN support for AI Accelerator USB stick

Pan, Fengjunjie
 

Hello everyone,

 

I am considering an experimental setup, using ACRN Hypervisor on top of Tiger Lake Platform.

 

I have seen that ACRN supports USB pass-through. How will it behave, if I want to use an AI USB stick (e.g. Intel Movidius USB stick)? How will it work with a multi-VM environment?

 

Thank you and best regards,

Feng. PAN

 

 


2021 ACRN Project Technical Community Meeting (2021/1~2021/12): @ Monthly 3rd Wednesday 4PM (China-Shanghai), Wednesday 10AM (Europe-Munich), Tuesday 1AM (US-West Coast)

Zou, Terry
 

Special Notes: If you have Zoom connection issue by using web browser, please install & launch Zoom application, manually input the meeting ID (320664063) to join the Zoom meeting.
 
Agenda & Archives:
WW Topic Presenter Status
WW04 ACRN PCI based vUART introduction Tao Yuhong 1/20/2021
Chinese New Year Break
WW13 ACRN Real-Time Enhancement Introduction Huang Yonghua 3/24/2021
WW17 Enable ACRN on TGL NUC11 Liu Fuzhong 4/21/2021
WW21 ACRN Memory Layout Related Boot Issue Diagnosis Sun Victor 5/19/2021
WW30 ACRN Config Tool 2.0 Introduction Xie Nanlin 7/21/2021
WW34 ACRN RTVM  Performance of Sharing Storage Cao Minggui 8/18/2021
WW39 ACRN Software SRAM Introduction Huang Yonghua 9/15/2021
WW43 ACRN Nested Virtualization Introduction Shen Fangfang 10/20/2021
 
Project ACRN: A flexible, light-weight, open source reference hypervisor for IoT devices
We invite you to attend a monthly "Technical Community" meeting where we'll meet community members and talk about the ACRN project and plans.
As we explore community interest and involvement opportunities, we'll (re)schedule these meetings at a time convenient to most attendees:
  • Meets every 3rd Wednesday, Starting Jan 20, 2021: 4-5:00 PM (China-Shanghai), Wednesday 10-11:00 AM (Europe-Munich), Tuesday 1-2:00 AM (US-West Coast)
  • Chairperson: Terry ZOU, terry.zou@... (Intel)
  • Online conference link: https://zoom.com.cn/j/320664063
  • Zoom Meeting ID: 320 664 063
  • Special Notes: If you have Zoom connection issue by using web browser, please launch Zoom application, manually input the meeting ID (320664063) to join the Zoom meeting.
  • Online conference phone:
  • China: +86 010 87833177  or 400 669 9381 (Toll Free)
  • Germany: +49 (0) 30 3080 6188  or +49 800 724 3138 (Toll Free)
  • US: +1 669 900 6833  or +1 646 558 8656   or +1 877 369 0926 (Toll Free) or +1 855 880 1246 (Toll Free)
  • Additional international phone numbers
  • Meeting Notes:
 
 


2021 ACRN Project Technical Community Meeting (2021/1~2021/12): @ Monthly 3rd Wednesday 4PM (China-Shanghai), Wednesday 10AM (Europe-Munich), Tuesday 1AM (US-West Coast)

Zou, Terry
 

Special Notes: If you have Zoom connection issue by using web browser, please install & launch Zoom application, manually input the meeting ID (320664063) to join the Zoom meeting.
 
Agenda & Archives:
WW Topic Presenter Status
WW04 ACRN PCI based vUART introduction Tao Yuhong 1/20/2021
Chinese New Year Break
WW13 ACRN Real-Time Enhancement Introduction Huang Yonghua 3/24/2021
WW17 Enable ACRN on TGL NUC11 Liu Fuzhong 4/21/2021
WW21 ACRN Memory Layout Related Boot Issue Diagnosis Sun Victor 5/19/2021
WW30 ACRN Config Tool 2.0 Introduction Xie Nanlin 7/21/2021
WW34 ACRN RTVM  Performance of Sharing Storage Cao Minggui 8/18/2021
WW39 ACRN Software SRAM Introduction Huang Yonghua 9/15/2021
WW43 ACRN Nested Virtualization Introduction Shen Fangfang 10/20/2021
 
Project ACRN: A flexible, light-weight, open source reference hypervisor for IoT devices
We invite you to attend a monthly "Technical Community" meeting where we'll meet community members and talk about the ACRN project and plans.
As we explore community interest and involvement opportunities, we'll (re)schedule these meetings at a time convenient to most attendees:
  • Meets every 3rd Wednesday, Starting Jan 20, 2021: 4-5:00 PM (China-Shanghai), Wednesday 10-11:00 AM (Europe-Munich), Tuesday 1-2:00 AM (US-West Coast)
  • Chairperson: Terry ZOU, terry.zou@... (Intel)
  • Online conference link: https://zoom.com.cn/j/320664063
  • Zoom Meeting ID: 320 664 063
  • Special Notes: If you have Zoom connection issue by using web browser, please launch Zoom application, manually input the meeting ID (320664063) to join the Zoom meeting.
  • Online conference phone:
  • China: +86 010 87833177  or 400 669 9381 (Toll Free)
  • Germany: +49 (0) 30 3080 6188  or +49 800 724 3138 (Toll Free)
  • US: +1 669 900 6833  or +1 646 558 8656   or +1 877 369 0926 (Toll Free) or +1 855 880 1246 (Toll Free)
  • Additional international phone numbers
  • Meeting Notes:
 


Smallest SoS for ACRN?

Lonnie Cumberland <lonnie@...>
 

Greetings All,

I hope that everyone is having a nice weekend.

I am deep in my study of the ACRN documentation and have come across some areas that suggest that ACRN can have a number of different types of SoS(ServiceVM) with Ubuntu 18.04 being used commonly now while ClearOS seems to have been used in the past.

As I am seeking small footprint designs, I was just wondering what are perhaps some of the smallest SoS types that have been used for ACRN?

As a curiosity, has anyone actually used one of the Windows versions as a SoS?

Best,
Lonnie


Re: [acrn-dev] [acrn-users] Multiple Pre-Launched User VM question

Lonnie Cumberland <lonnie@...>
 

Thanks Geoffroy,

It was mainly just an idea, but in principle the goal is to have isolated servers (one for the SoftEther VPN switch, one for the NAS, etc.) where each one provides services to the ServiceVM which in-turn provides services to the UserVM's, or they could provide services directly to the UserVM's since each one would be the main channel to the outside world for the types of services they provide. 

In the past, we have briefly discussed the idea of having multiple ServiceVM's like one for each type of major service like drives, network, etc. but one of the developers (sorry but I forget which one exactly) mentioned that this would be problematic so I started thinking about alternatives within the current ACRN design.

It seems that the Pre-Loaded MV's are much like a Separation Kernel that physically partitions off physical resources although you mentioned now a shared memory option that may be helpful in this regard.

Thanks again my friend,
Lonnie


T

On Thu, Jun 3, 2021 at 10:01 AM Geoffroy Van Cutsem <geoffroy.vancutsem@...> wrote:

Hi Lonnie,

 

I’ll rely on the engineering team (@Chen, Jason CJ?) to help answer the question about being to run multiple pre-launched VMs.

 

The pre-launched VMs all use their own dedicate resources, there is no sharing possible across pre-launched VMs (inc. the Service VM). There is a communication channel you can establish between those based on shared memory (see our ivshmem documentation - https://projectacrn.github.io/latest/tutorials/enable_ivshmem.html).

 

Thanks,

Geoffroy

 

From: acrn-dev@... <acrn-dev@...> On Behalf Of Lonnie Cumberland
Sent: Thursday, June 3, 2021 2:43 PM
To: acrn-users@...
Cc: acrn-dev@...
Subject: Re: [acrn-dev] [acrn-users] Multiple Pre-Launched User VM question

 

Hi All,

 

Hope that everyone is doing well.

 

As I do not see a response to the question of "Multiple Pre-Launched" VM's, although I could have missed it, I am still wondering if perhaps 3 or 4 could be run. 

 

For my particular use case, I was investigating the possibility of having, for example, a NAS storage Pre-Launch VM that would basically handle all of the disk and external storage for the whole system such that UserVM and the ServiceVM could map in virtual drives and directories from the Pre-Launch NAS VM. I was also looking into the possibility of having a VPN Pre-Launch VM (Perhaps SoftEther) such that it would provide virtual network adapters to the whole system too.

 

The idea was to run these independent services as Pre-Launch VM's as it did not really make a lot of sense to have them all included in the ServiceVM because that would just keep creating a larger and larger ServiceVM that would have a number of different servers installed.

 

Of course, all of this might not be attainable with the current ACRN design, because I am not clear as to if the Pre-Launch VM's act similar to a Separation Kernel to partition off resources and their resources may not be either shareable to the ServiceVM.

 

Mostly just playing with ideas here and wanted to get some feedback on what ACRN is currently capable of doing and what it is not since the documentation does not particularly address some of these ideas in that it seems to be tightly coupled to some very specific use cases but has the potential for a much wider scope of use.

 

Best Regards,

Lonnie

 

 

On Tue, Jun 1, 2021 at 9:59 AM Geoffroy Van Cutsem <geoffroy.vancutsem@...> wrote:

> (/me making a mental note to go check the Dockerfile in my repo to make sure they’re up-to-date 😉)

 

I have just updated the Ubuntu 20.04 Dockerfile to reflect the latest build tools and dependencies for ACRN v2.4 (and beyond).

 

Thanks,

Geoffroy

 

From: VanCutsem, Geoffroy
Sent: Monday, May 31, 2021 5:54 PM
To: acrn-users@...; acrn-dev@...
Subject: RE: [acrn-users] Multiple Pre-Launched User VM question

 

Hi Lonnie!

 

That sounds like a lot of great progress! (/me making a mental note to go check the Dockerfile in my repo to make sure they’re up-to-date 😉)

 

Running ACRN on QEMU is possible on an Ubuntu 20.04 host, I have never tried on Windows… but if you do, please share your findings! The tutorial on the documentation website is currently out of date, as a matter of fact, I just figured out this morning (with the help of the engineering team) how to upgrade this outdated tutorial to be based on ACRN v2.4. Take a look at this Pull Request for the latest (until it gets merged and published on the website): https://github.com/projectacrn/acrn-hypervisor/pull/5937. Please note that it is not possible to run the latest version of ACRN (i.e. the upcoming v2.5 release) yet, it is currently blocked by: https://github.com/projectacrn/acrn-hypervisor/issues/6102

 

I do not know if it’s possible to have multiple pre-launched VMs at the same time. There are already 2 UUIDs reserved for those so it seems like it’s possible. You may even be able to re-use the UUID from the SAFETY_VM_UUID1 (although you may not use it for that purpose). I’ll need to research that question a bit more though unless someone watching this list knows the answer. If you need more than 3, and assuming it works up until 3, you will have at least to add more UUIDs in the codebase.

 

Note that I am not aware of anyone that has brought up ACRN on QEMU with pre-launched User VMs. Not necessarily that it cannot be done but you would be breaking new ground there… and again, any return on your testing/experience in that field would be most appreciated!

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Lonnie Cumberland
Sent: Sunday, May 30, 2021 3:49 PM
To: acrn-users@...; acrn-dev@...
Subject: [acrn-users] Multiple Pre-Launched User VM question

 

Hi All,

 

This weekend, I was able to set up my base build system on the Intel NUC7i7 that I had purchased.  

 

It came with Windows 10 and instead of wiping the OS and installing Ubuntu 20.04 natively, I decided to try to use the LVS2 system that comes with Windows 10 which allows me to install and run Ubuntu 20.04 directly and use it concurrently from Windows 10. 

 

Additionally, I installed Docker in Windows which also gave me Docker in my Ubuntu 20.04 and was able to get the ACRN Docker files from:

 

 

and then was able to very easily set up a build environment for ACRN after which I successfully built the hypervisor.

 

Now I want to also see if I can run ACRN under Qemu either on native Windows 10 or under my new Ubuntu 20.04 so I am working on trying to figure out how to build a simple setup with some User VM's to test.


Also, I have been reading over the ACRN documentation where it discusses the various usage scenarios:

 

 

 

 

 I was wondering if ACRN can be configured and set up to have multiple "Pre-Launched" User VM's instead of just one?

 

If currently not possible, then what areas of the source code might I be able to view to see where this is done as I might want to see about forking the code to do some testing and modifications to see what is, or is not, achievable?

 

Thanks and have a good weekend,

Lonnie


Re: [acrn-dev] [acrn-users] Multiple Pre-Launched User VM question

Geoffroy Van Cutsem
 

Hi Lonnie,

 

I’ll rely on the engineering team (@Chen, Jason CJ?) to help answer the question about being to run multiple pre-launched VMs.

 

The pre-launched VMs all use their own dedicate resources, there is no sharing possible across pre-launched VMs (inc. the Service VM). There is a communication channel you can establish between those based on shared memory (see our ivshmem documentation - https://projectacrn.github.io/latest/tutorials/enable_ivshmem.html).

 

Thanks,

Geoffroy

 

From: acrn-dev@... <acrn-dev@...> On Behalf Of Lonnie Cumberland
Sent: Thursday, June 3, 2021 2:43 PM
To: acrn-users@...
Cc: acrn-dev@...
Subject: Re: [acrn-dev] [acrn-users] Multiple Pre-Launched User VM question

 

Hi All,

 

Hope that everyone is doing well.

 

As I do not see a response to the question of "Multiple Pre-Launched" VM's, although I could have missed it, I am still wondering if perhaps 3 or 4 could be run. 

 

For my particular use case, I was investigating the possibility of having, for example, a NAS storage Pre-Launch VM that would basically handle all of the disk and external storage for the whole system such that UserVM and the ServiceVM could map in virtual drives and directories from the Pre-Launch NAS VM. I was also looking into the possibility of having a VPN Pre-Launch VM (Perhaps SoftEther) such that it would provide virtual network adapters to the whole system too.

 

The idea was to run these independent services as Pre-Launch VM's as it did not really make a lot of sense to have them all included in the ServiceVM because that would just keep creating a larger and larger ServiceVM that would have a number of different servers installed.

 

Of course, all of this might not be attainable with the current ACRN design, because I am not clear as to if the Pre-Launch VM's act similar to a Separation Kernel to partition off resources and their resources may not be either shareable to the ServiceVM.

 

Mostly just playing with ideas here and wanted to get some feedback on what ACRN is currently capable of doing and what it is not since the documentation does not particularly address some of these ideas in that it seems to be tightly coupled to some very specific use cases but has the potential for a much wider scope of use.

 

Best Regards,

Lonnie

 

 

On Tue, Jun 1, 2021 at 9:59 AM Geoffroy Van Cutsem <geoffroy.vancutsem@...> wrote:

> (/me making a mental note to go check the Dockerfile in my repo to make sure they’re up-to-date 😉)

 

I have just updated the Ubuntu 20.04 Dockerfile to reflect the latest build tools and dependencies for ACRN v2.4 (and beyond).

 

Thanks,

Geoffroy

 

From: VanCutsem, Geoffroy
Sent: Monday, May 31, 2021 5:54 PM
To: acrn-users@...; acrn-dev@...
Subject: RE: [acrn-users] Multiple Pre-Launched User VM question

 

Hi Lonnie!

 

That sounds like a lot of great progress! (/me making a mental note to go check the Dockerfile in my repo to make sure they’re up-to-date 😉)

 

Running ACRN on QEMU is possible on an Ubuntu 20.04 host, I have never tried on Windows… but if you do, please share your findings! The tutorial on the documentation website is currently out of date, as a matter of fact, I just figured out this morning (with the help of the engineering team) how to upgrade this outdated tutorial to be based on ACRN v2.4. Take a look at this Pull Request for the latest (until it gets merged and published on the website): https://github.com/projectacrn/acrn-hypervisor/pull/5937. Please note that it is not possible to run the latest version of ACRN (i.e. the upcoming v2.5 release) yet, it is currently blocked by: https://github.com/projectacrn/acrn-hypervisor/issues/6102

 

I do not know if it’s possible to have multiple pre-launched VMs at the same time. There are already 2 UUIDs reserved for those so it seems like it’s possible. You may even be able to re-use the UUID from the SAFETY_VM_UUID1 (although you may not use it for that purpose). I’ll need to research that question a bit more though unless someone watching this list knows the answer. If you need more than 3, and assuming it works up until 3, you will have at least to add more UUIDs in the codebase.

 

Note that I am not aware of anyone that has brought up ACRN on QEMU with pre-launched User VMs. Not necessarily that it cannot be done but you would be breaking new ground there… and again, any return on your testing/experience in that field would be most appreciated!

Thanks,

Geoffroy

 

From: acrn-users@... <acrn-users@...> On Behalf Of Lonnie Cumberland
Sent: Sunday, May 30, 2021 3:49 PM
To: acrn-users@...; acrn-dev@...
Subject: [acrn-users] Multiple Pre-Launched User VM question

 

Hi All,

 

This weekend, I was able to set up my base build system on the Intel NUC7i7 that I had purchased.  

 

It came with Windows 10 and instead of wiping the OS and installing Ubuntu 20.04 natively, I decided to try to use the LVS2 system that comes with Windows 10 which allows me to install and run Ubuntu 20.04 directly and use it concurrently from Windows 10. 

 

Additionally, I installed Docker in Windows which also gave me Docker in my Ubuntu 20.04 and was able to get the ACRN Docker files from:

 

 

and then was able to very easily set up a build environment for ACRN after which I successfully built the hypervisor.

 

Now I want to also see if I can run ACRN under Qemu either on native Windows 10 or under my new Ubuntu 20.04 so I am working on trying to figure out how to build a simple setup with some User VM's to test.


Also, I have been reading over the ACRN documentation where it discusses the various usage scenarios:

 

 

 

 

 I was wondering if ACRN can be configured and set up to have multiple "Pre-Launched" User VM's instead of just one?

 

If currently not possible, then what areas of the source code might I be able to view to see where this is done as I might want to see about forking the code to do some testing and modifications to see what is, or is not, achievable?

 

Thanks and have a good weekend,

Lonnie