Hi,
I am facing an issue with creating vm's by using xen which is built from
yocto.
like below, I am facing an issue.
>
> root@raspberrypi4-64:~# xl create -c /etc/linux/linux_vm.cfg
> Parsing config from /etc/linux/linux_vm.cfg
> libxl: error: libxl_device.c:1109:device_backend_callback: Domain 3:unable
> to add device with path /local/domain/0/backend/vbd/3/51712
> libxl: error: libxl_create.c:1643:domcreate_launch_dm: Domain 3:unable to
> add disk devices
> libxl: error: libxl_device.c:1109:device_backend_callback: Domain 3:unable
> to remove device with path /local/domain/0/backend/vbd/3/51712
> libxl: error: libxl_domain.c:1530:devices_destroy_cb: Domain
> 3:libxl__devices_destroy failed
> libxl: error: libxl_domain.c:1183:libxl__destroy_domid: Domain
> 3:Non-existant domain
> libxl: error: libxl_domain.c:1137:domain_destroy_callback: Domain 3:Unable
> to destroy guest
> libxl: error: libxl_domain.c:1064:domain_destroy_cb: Domain 3:Destruction
> of domain failed


These are the configuration and version of the yocto kirkstone branch.

Host OS: Ubuntu 22.04LTS (which is used for building yocto image)

RPI :4 B
RAM:8GB
Yocto branch name:kirkstone
Image version :
Image--5.15.166+git0+567f0adb9d_a78a104311-r0-raspberrypi4-64-20241011122756.bin
xen version:4.16.1

and my linux_vm.cfg is

kernel = "/root/vmlinuz"                  # Path to the VM kernel
> memory = 512                              # Allocate 512 MB RAM
> vcpus = 2                                 # Number of virtual CPUs
> name = "linux_vm"                         # Name of the VM
> disk = [ 'file:/root/linux_vm.img,xvda,w' ] # Path to disk image, writable
> vif = [ 'bridge=xenbr0' ]                 # Networking using Xen bridge
> root = "/dev/xvda"                        # Root filesystem on xvda (the
> disk image)
> extra = "console=hvc0 root=/dev/xvda rw"  # Kernel parameters


and i have these files in that path

> root@raspberrypi4-64:~# ls -l /etc/linux/
> total 1509244
> -rwxrwxrwx    1 root     root           561 Mar  9 13:47 linux_vm.cfg
> -rwxrwxrwx    1 root     root     1533018112 Mar  9 14:10 linux_vm.img
> -rwxrwxrwx    1 root     root      12439203 Mar  9 13:48 vmlinuz


Please help me to solve this issue.
I am thinking like I am using the latest version of the kernel which is
5.15.166.
maybe this kernel version is not supporting the xen for creating vm's.

If I am wrong, suggest that I resolve the issue.

Thank you in advance.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64018): https://lists.yoctoproject.org/g/yocto/message/64018
Mute This Topic: https://lists.yoctoproject.org/mt/109000841/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to