Closed christophert closed 4 years ago
Hi @christophert , is the guide you have followed this guide?
Can you confirm the following versions:
acrn-dm
/usr/sbin/iasl
Are you able to run a standard Linux-based User VM on the machine?
/cc @ttzeng
@gvancuts That is the guide I followed.
I am now running Clear Linux 32030, the verified version on the documentation.
$ iasl -v
Intel ACPI Component Architecture
ASL+ Optimizing Compiler/Disassembler version 20191213
Copyright (c) 2000 - 2019 Intel Corporation
$ acrn-dm -v
DM version is: 1.5-unstable-”2020w01.1.140000p_260” (daily tag:”2020w01.1.140000p”), build by mockbuild@2020-01-05 11:33:12
I am able to run the Preempt RT VM without issue.
@christophert Could you please assign USB keyboard/mouse to Celadon UOS in launch script? Examples: -s 7,xhci,1-2,2-2 This configuration means the virtual xHCI will appear in PCI slot 7 in UOS. Any physical USB device attached on 1-2 (bus 1, port 2) or 2-2 (bus 2, port 2) will be detected by UOS and be used as expected. To determine which bus and port a USB device is attached, you could run lsusb -t in SOS.
Then, run cat /proc/cmdline in Celadon UOS. Please also share your launch script. Thanks!
@fuzhongl When I attach a keyboard/mouse I can utilize the android interface but there is no console for me to run that command in. The launch script follows the tutorial of running Celadon on ACRN (copying launch_win.sh and modifying it to load celadon)
#!/bin/bash
# Copyright (C) 2019 Intel Corporation.
# SPDX-License-Identifier: BSD-3-Clause
function launch_win()
{
vm_name=celadon_vm$1
#check if the vm is running or not
vm_ps=$(pgrep -a -f acrn-dm)
result=$(echo $vm_ps | grep "${vm_name}")
if [[ "$result" != "" ]]; then
echo "$vm_name is running, can't create twice!"
exit
fi
#for memsize setting
mem_size=4096M
acrn-dm -A -m $mem_size -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
-s 2,pci-gvt -G "$2" \
-s 3,virtio-blk,./android.img \
-s 4,virtio-net,tap0 \
-s 7,xhci,1-2,2-2 \
--ovmf /usr/share/acrn/bios/OVMF.fd \
--windows \
$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
# during boot time, cpu hotplug may be disabled by pci_device_probe during a pci module insmod
while [ "$online" = "1" ]; do
sleep 1
echo 0 > $i/online
online=`cat $i/online`
done
echo $idx > /sys/class/vhm/acrn_vhm/offline_cpu
fi
done
launch_win 1 "64 448 8"
@christophert Do you connect serial port cable on your NUC7i7DNHE NUC? Serial Port via Internal Header is needed. Please check following link for detail: https://projectacrn.github.io/latest/getting-started/rt_industry.html?highlight=use%20serial%20port%20kbl%20nuc#troubleshooting
@fuzhongl We do not. It is not stated in the prerequisites or the instructions that it is required to see the terminal. The celadon step from the docs indicate:
3. You will see the shell console from the terminal...
Is the step incorrect in informing me that I should see a console in the terminal and that a serial connection is required?
@christophert Following documentation is base on SDC scenario, could you please try it with sdc scenario? https://projectacrn.github.io/latest/tutorials/using_celadon_as_uos.html If you do need INDUSTRY scenario, please connect serial cable for Hypervisor console. Thanks!
@christophert Can this git issue be closed? Thanks!
I'm still awaiting the arrival of my serial adapter, I will update when I get it.
@christophert If you want to use INDUSTRY scenario before the arrival of serial adapter; please make following change: With these change, the log of post-launched VMs isn't redirection to HV console any more.
diff --git a/hypervisor/scenarios/industry/vm_configurations.c b/hypervisor/scenarios/industry/vm_configurations.c index 1f2cbaad..62963ce5 100644 --- a/hypervisor/scenarios/industry/vm_configurations.c +++ b/hypervisor/scenarios/industry/vm_configurations.c
@@ -42,8 +42,7 @@ struct acrn_vm_config vm_configs[CONFIG_MAX_VM_NUM] = {
.cpu_affinity_bitmap = VM1_CONFIG_CPU_AFFINITY,
.vuart[0] = {
.type = VUART_LEGACY_PIO,
- .addr.port_base = COM1_BASE,
- .irq = COM1_IRQ,
+ .addr.port_base = INVALID_COM_BASE,
},
.vuart[1] = {
.type = VUART_LEGACY_PIO,
I am unable to get a shell console when launching the Celadon UOS using the guide. I am able to see Celadon running on the second monitor but I do not get a shell prompt.
This is the console output I receive:
I am running Clear Linux 32650 SOS on a NUC7i7DNHE.