Re: user VM Management from SOS VM


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@...
Sent: Sunday, May 16, 2021 4:28 AM
To: acrn-users@...
Subject: [acrn-users] user VM Management from SOS VM

 

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)!

 

Could you please let me know what could be the other ways by which we can know messages or status of uos VM. 

Thanks,
Yogesh

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