All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wei Chen <Wei.Chen@arm.com>
To: Marco Cacre <marco.cacre@gmail.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>
Subject: RE: Problem creating domU guest on arm64
Date: Wed, 20 Apr 2022 11:39:49 +0000	[thread overview]
Message-ID: <PAXPR08MB742084AA031A1B352E84B0C29EF59@PAXPR08MB7420.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <CAGHctbZzRc3PqzTd22_NpN4VHyB3DPyHJF2BoqAgBOcVp5_4ZA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4839 bytes --]

Hi Marco,

The block script is timeout, you can add some log message to
check what happened to “/etc/xen/scripts/block add”.
You can google to a lot of pages on how to print messages in
Linux shell scripts.

libxl: debug: libxl_aoutils.c:593:libxl__async_exec_start: forking to execute: /etc/xen/scripts/block add
libxl: debug: libxl_event.c:720:watchfd_callback: watch epath=/local/domain/0/backend/vbd/6/51712/state token=3/0: empty slot
libxl: error: libxl_aoutils.c:539:async_exec_timeout: killing execution of /etc/xen/scripts/block add because of timeout

BTW:
It’s good to covert your email format to plain text. This will make
Xen folks read your email easily.

Cheers,
Wei Chen


From: Xen-devel <xen-devel-bounces@lists.xenproject.org> On Behalf Of Marco Cacre
Sent: 2022年4月20日 18:55
To: xen-devel@lists.xenproject.org
Subject: Re: Problem creating domU guest on arm64

Hi  all,

I did several attempts but I have always problems with disk backend setup during creation of domU domain.

The latest attempt was using deban arm64 image with this configuration:

memory = 512
name = "debian"
vcpus = 1
maxvcpus = 1
kernel = "/home/xen/vmlinuz"
ramdisk = "/home/xen/initrd.img"
disk = ["phy:/dev/loop0,xvda,rw"]
extra = "root=/dev/xvda rw console=hvc0 earlyprintk=xen"

kernel and ramdisk boot up successfully and I can attach to the domU console, but when I try to define the disk backend with the debian rootfs the creation of the domain fails.

rootfs is attached to loop device as follow:

losetup /dev/loop0 /home/xen/rootfs.img

I attached to this mail the verbose trace of the command xl create

Thanks a lot in advance for any kind of help
Best Regards
Marco

Il giorno ven 15 apr 2022 alle ore 12:56 Marco Cacre <marco.cacre@gmail.com<mailto:marco.cacre@gmail.com>> ha scritto:
Hi all,

I'm facing always the same problem (described below) trying to create a Xen guest domain on rockpro64 (arm64).

I have successfully built uboot, xen (4.14.4) and dom0 linux kernel with xen tool stack, these two last starting from buildroot (with linux kernel version 5.15.33 and xen toolstack version 4.14.4)

These are the process of Xen:

177 root    /usr/sbin/xenwatchdogd 30 15
203 root    /usr/sbin/xenstored --pid-file /var/run/xen/xenstored.pid
208 root    /usr/sbin/xenconsoled --pid-file=/var/run/xen/xenconsoled.pid
214 root    /usr/lib/xen/bin/qemu-system-i386 -xen-domid 0 -xen-attach -name dom0 -nographic -M xenpv -daemonize -monitor /dev/null -serial/dev/nul -parallel/dev/null -pidfile/var/run/xen/qemu-dom0.pid

and the drivers loaded as a module:
# lsmod
Module                  Size  Used by    Tainted: G
xen_netback            65536  0
xen_blkback            49152  0

Xen and dom0 Image boot up successfully, at the end:
================================================
>xl list
Name                                        ID  Mem VCPUs State Time(s)
Domain-0                                    0  1024    2    r-----    4000.3

# uname -a
Linux rockpro64 5.15.33 #3 SMP PREEMPT Fri Apr 15 11:01:37 CEST 2022 aarch64 GNU/Linux
================================================

when I try to create a domU domain I have problem with disk backend, I have made several attempts trying with different domU linux and I always get the following error :

================================================
Parsing config from ./alpine_xen_domu.config

libxl: error: libxl_aoutils.c:539:async_exec_timeout: killing execution of /etc/xen/scripts/block add because of timeout
libxl: error: libxl_create.c:1608:domcreate_launch_dm: Domain 2:unable to add disk devices
libxl: error: libxl_aoutils.c:539:async_exec_timeout: killing execution of /etc/xen/scripts/block remove because of timeout
libxl: error: libxl_domain.c:1182:libxl__destroy_domid: Domain 2:Non-existant domain
libxl: error: libxl_domain.c:1136:domain_destroy_callback: Domain 2:Unable to destroy guest
libxl: error: libxl_domain.c:1063:domain_destroy_cb: Domain 2:Destruction of domain failed
================================================

The last try was with alpine domU linux with the following config:
================================================

# Alpine Linux PV DomU
# Kernel paths for install
kernel = "/home/xen/vmlinuz-virt"
ramdisk = "/home/xen/initramfs-virt"
extra="modules=loop,squashfs console=hvc0"
# Path to HDD and iso file
disk = [ 'format=raw, vdev=xvda, access=w, target=/data/a1.img',
        'format=raw, vdev=xvdc, access=r, devtype=cdrom, target=/home/xen/alpine-virt-3.15.3-armv7.iso'  ]
# Network configuration
vif = ['bridge=br0']
# DomU settings
memory = 512
name = "alpine-a1"
vcpus = 1
maxvcpus = 1
================================================

thanks a lot in advance
Best regards
Marco

[-- Attachment #2: Type: text/html, Size: 13335 bytes --]

      reply	other threads:[~2022-04-20 11:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-15 10:56 Problem creating domU guest on arm64 Marco Cacre
2022-04-20  1:55 ` Wei Chen
2022-04-20 10:54 ` Marco Cacre
2022-04-20 11:39   ` Wei Chen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PAXPR08MB742084AA031A1B352E84B0C29EF59@PAXPR08MB7420.eurprd08.prod.outlook.com \
    --to=wei.chen@arm.com \
    --cc=marco.cacre@gmail.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.