user VM Management from SOS VM
yogesh@...
Hi All,
I have ubuntu 18.04 Service OS VM with ACRN hypervisor installed. I have generated Ubuntu UOS VM and have launched Ubuntu 20.04 UOS VM. Unfortunately at this time I dont have second monitor to assign to uos vm nor having serial cable to connect to console of uos. I have tried to installed openssh-server into uos vm image and assigned ethernet controller in launcher script through Web interface(app.py). But unfortunately I could not able to see its IP address. # virsh net-list # virsh net-info default # virsh net-dhcp-leases default sudo acrnctl list
[sudo] password for yogesh:
post_vm_id1 started
Logs: bash ./launch_uos_id1_console.sh
cpu3 online=1
acrn-br0 bridge aleady exists, adding new tap device to it...
logger: name=console, level=4
logger: name=kmsg, level=3
logger: name=disk, level=5
SW_LOAD: get ovmf path /usr/share/acrn/bios/OVMF.fd, size 0x200000
vm_create: post_vm_id1
VHM api version 1.0
vm_setup_memory: size=0x100000000
open hugetlbfs file /run/hugepage/acrn/huge_lv1/post_vm_id1/D279543825D611E8864ECB7A18B34643
open hugetlbfs file /run/hugepage/acrn/huge_lv2/post_vm_id1/D279543825D611E8864ECB7A18B34643
level 0 free/need pages:0/1 page size:0x200000
level 1 free/need pages:12/4 page size:0x40000000
to reserve more free pages:
to reserve pages (+orig 0): echo 1 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
now enough free pages are reserved!
try to setup hugepage with:
level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0
level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000
total_size 0x200000000
mmap ptr 0x0x7fe3d23f7000 -> baseaddr 0x0x7fe400000000
mmap 0x80000000@0x7fe400000000
touch 2 pages with pagesz 0x40000000
mmap 0x80000000@0x7fe540000000
touch 2 pages with pagesz 0x40000000
mmap 0x200000@0x7fe4ffe00000
touch 1 pages with pagesz 0x200000
really setup hugepage with:
level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0
level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000
vm_init_vdevs
No pm notify channel given
Listening 0...
polling 37...
pci init passthru
pci init virtio-blk
pci init virtio-net
pci init igd-lpc
tpm: init_vtpm2:Invalid socket path!
acrn_sw_load
SW_LOAD: partition blob /usr/share/acrn/bios/OVMF.fd size 0x200000 copied to addr 0x7fe4ffe00000
SW_LOAD: build e820 5 entries to addr: 0x7fe4000ef008
SW_LOAD: entry[0]: addr 0x0000000000000000, size 0x00000000000a0000, type 0x1
SW_LOAD: entry[1]: addr 0x0000000000100000, size 0x000000007befc000, type 0x1
SW_LOAD: entry[2]: addr 0x000000007bffc000, size 0x0000000004004000, type 0x2
SW_LOAD: entry[3]: addr 0x00000000e0000000, size 0x0000000020000000, type 0x2
SW_LOAD: entry[4]: addr 0x0000000140000000, size 0x0000000080000000, type 0x1
SW_LOAD: ovmf_entry 0xfffffff0
add_cpu
out instr on NMI port (0x61) not supported
out instr on NMI port (0x61) not supported
out instr on NMI port (0x61) not supported
Unhandled memory access to 0xfe001818
Failed to emulate instruction [mmio address 0xfe001818, size 4Unhandled ps2 mouse command 0xe1
Unhandled ps2 mouse command 0x0a
Unhandled ps2 mouse command 0x01
Unhandled ps2 mouse command 0x41
Unhandled ps2 mouse command 0x88
Connected:38
Disconnect(38)!
Thanks, Yogesh
|
|
Liu, Fuzhong
Hi Yogesh Which board are you using? Does it has the serial port? If there is no serial port on your board, please add virtio-console in your launch script: -s 5,virtio-console,@stdio:stdio_port \
Make sure PCI slot 5 isn’t occupied by other parameters in your launch script; otherwise change it to other number.
Any more issue, please raise git issue on: https://github.com/projectacrn/acrn-hypervisor/issues+
Thanks!
BR. Fuzhong From: acrn-users@... <acrn-users@...>
On Behalf Of yogesh@...
Hi All, sudo acrnctl list [sudo] password for yogesh: post_vm_id1 started
bash ./launch_uos_id1_console.sh cpu3 online=1 acrn-br0 bridge aleady exists, adding new tap device to it... logger: name=console, level=4 logger: name=kmsg, level=3 logger: name=disk, level=5 SW_LOAD: get ovmf path /usr/share/acrn/bios/OVMF.fd, size 0x200000 vm_create: post_vm_id1 VHM api version 1.0 vm_setup_memory: size=0x100000000 open hugetlbfs file /run/hugepage/acrn/huge_lv1/post_vm_id1/D279543825D611E8864ECB7A18B34643 open hugetlbfs file /run/hugepage/acrn/huge_lv2/post_vm_id1/D279543825D611E8864ECB7A18B34643 level 0 free/need pages:0/1 page size:0x200000 level 1 free/need pages:12/4 page size:0x40000000 to reserve more free pages: to reserve pages (+orig 0): echo 1 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages now enough free pages are reserved!
try to setup hugepage with: level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0 level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000 total_size 0x200000000
mmap ptr 0x0x7fe3d23f7000 -> baseaddr 0x0x7fe400000000 mmap 0x80000000@0x7fe400000000 touch 2 pages with pagesz 0x40000000 mmap 0x80000000@0x7fe540000000 touch 2 pages with pagesz 0x40000000 mmap 0x200000@0x7fe4ffe00000 touch 1 pages with pagesz 0x200000
really setup hugepage with: level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0 level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000 vm_init_vdevs No pm notify channel given Listening 0... polling 37... pci init passthru pci init virtio-blk pci init virtio-net pci init igd-lpc tpm: init_vtpm2:Invalid socket path! acrn_sw_load SW_LOAD: partition blob /usr/share/acrn/bios/OVMF.fd size 0x200000 copied to addr 0x7fe4ffe00000 SW_LOAD: build e820 5 entries to addr: 0x7fe4000ef008 SW_LOAD: entry[0]: addr 0x0000000000000000, size 0x00000000000a0000, type 0x1 SW_LOAD: entry[1]: addr 0x0000000000100000, size 0x000000007befc000, type 0x1 SW_LOAD: entry[2]: addr 0x000000007bffc000, size 0x0000000004004000, type 0x2 SW_LOAD: entry[3]: addr 0x00000000e0000000, size 0x0000000020000000, type 0x2 SW_LOAD: entry[4]: addr 0x0000000140000000, size 0x0000000080000000, type 0x1 SW_LOAD: ovmf_entry 0xfffffff0 add_cpu out instr on NMI port (0x61) not supported out instr on NMI port (0x61) not supported out instr on NMI port (0x61) not supported Unhandled memory access to 0xfe001818 Failed to emulate instruction [mmio address 0xfe001818, size 4Unhandled ps2 mouse command 0xe1 Unhandled ps2 mouse command 0x0a Unhandled ps2 mouse command 0x01 Unhandled ps2 mouse command 0x41 Unhandled ps2 mouse command 0x88 Connected:38 Disconnect(38)!
Could you please let me know what could be the other ways by which we can know messages or status of uos VM.
|
|
yogesh@...
Hi Fuzhong,
I have added below line to my launcher script, but not resulting into serial console login acrn-dm -A -m $mem_size -s 0:0,hostbridge -U d2795438-25d6-11e8-864e-cb7a18b34643 \
--mac_seed $mac_seed \
$logger_setting \
-s 3,virtio-blk,./uos_new.img \
-s 6,virtio-net,tap_WaaG \
-s 2,passthru,0/2/0,gpu \
--ovmf /usr/share/acrn/bios/OVMF.fd \
$intr_storm_monitor \
-s 5,virtio-console,@stdio:stdio \
-s 1:0,lpc \
-l com1,stdio \
-s 4,passthru,03/00/1 \
$vm_name
}
pfa launcher script. yogesh@mcl-acrn-test3:~/launcher$ sudo bash ./launch_uos_id1.sh
[sudo] password for yogesh:
cpu3 online=0
tap device existed, reuse tap_WaaG
logger: name=console, level=4
logger: name=kmsg, level=3
logger: name=disk, level=5
SW_LOAD: get ovmf path /usr/share/acrn/bios/OVMF.fd, size 0x200000
vm_create: post_vm_id1
VHM api version 1.0
vm_setup_memory: size=0x100000000
open hugetlbfs file /run/hugepage/acrn/huge_lv1/post_vm_id1/D279543825D611E8864ECB7A18B34643
open hugetlbfs file /run/hugepage/acrn/huge_lv2/post_vm_id1/D279543825D611E8864ECB7A18B34643
level 0 free/need pages:1/1 page size:0x200000
level 1 free/need pages:12/4 page size:0x40000000
try to setup hugepage with:
level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0
level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000
total_size 0x200000000
mmap ptr 0x0x7f136519a000 -> baseaddr 0x0x7f1380000000
mmap 0x80000000@0x7f1380000000
touch 2 pages with pagesz 0x40000000
mmap 0x80000000@0x7f14c0000000
touch 2 pages with pagesz 0x40000000
mmap 0x200000@0x7f147fe00000
touch 1 pages with pagesz 0x200000
really setup hugepage with:
level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0
level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000
vm_init_vdevs
No pm notify channel given
Listening 0...
polling 37...
start monitor interrupt data...
pci init hostbridge
pci init lpc
pci init passthru
pci init virtio-blk
pci init passthru
pci init virtio-console
vtcon: stdio is used by other device
pci virtio-console init failed
vm_reset_ptdev_intx:0x10-10, ioapic virpin=0.
vm_reset_ptdev_intx:0x20-301, ioapic virpin=0.
mngr_client_new: Failed to accept from fd 37, err: Invalid argument
Stop listening 37...
Stop polling 37...
No correct pm notify channel given
Unable to init vdev (2)
|
|