root@zi-desktop:~/Desktop/zi/Work/I9/qemu-rpi-kernel# virsh --version 7.4.0
virt-install \ --debug \ --name pi \ --machine raspi3 \ --cpu arm1176 \ --memory 1024 \ --import \ --disk /var/www/html/2019-09-26-raspbian-buster-lite.img,format=raw,bus=virtio \ --network user,model=virtio \ --video vga \ --graphics spice \ --rng device=/dev/urandom,model=virtio \ --boot 'dtb=bcm2710-rpi-3-b-plus.dtb,kernel=kernel8.img,kernel_args=root=/dev/vda2 rootwait panic=1 dwc_otg.fiq_fsm_enable=0' \ --events on_reboot=destroy [mar, 08 giu 2021 10:42:22 virt-install 26236] DEBUG (cli:265) Launched with command line: /usr/share/virt-manager/virt-install --debug --name pi --machine raspi3 --cpu arm1176 --memory 1024 --import --disk /var/www/html/2019-09-26-raspbian-buster-lite.img,format=raw,bus=virtio --network user,model=virtio --video vga --graphics spice --rng device=/dev/urandom,model=virtio --boot dtb=bcm2710-rpi-3-b-plus.dtb,kernel=kernel8.img,kernel_args=root=/dev/vda2 rootwait panic=1 dwc_otg.fiq_fsm_enable=0 --events on_reboot=destroy [mar, 08 giu 2021 10:42:22 virt-install 26236] DEBUG (cli:279) Requesting libvirt URI default [mar, 08 giu 2021 10:42:22 virt-install 26236] DEBUG (cli:282) Received libvirt URI qemu:///system [mar, 08 giu 2021 10:42:22 virt-install 26236] DEBUG (virt-install:358) Requesting virt method 'default', hv type 'default'. [mar, 08 giu 2021 10:42:24 virt-install 26236] DEBUG (virt-install:583) Received virt method 'kvm' [mar, 08 giu 2021 10:42:24 virt-install 26236] DEBUG (virt-install:584) Hypervisor name is 'hvm' [mar, 08 giu 2021 10:42:24 virt-install 26236] DEBUG (virt-install:270) Distilled --network options: ['user,model=virtio'] [mar, 08 giu 2021 10:42:24 virt-install 26236] DEBUG (virt-install:183) Distilled --disk options: ['/var/www/html/2019-09-26-raspbian-buster-lite.img,format=raw,bus=virtio'] [mar, 08 giu 2021 10:42:25 virt-install 26236] DEBUG (installer:222) distro detection not available for this installer. [mar, 08 giu 2021 10:42:25 virt-install 26236] DEBUG (guest:251) Setting Guest.os_variant to 'None' [mar, 08 giu 2021 10:42:26 virt-install 26236] WARNING (virt-install:545) No operating system detected, VM performance may suffer. Specify an OS with --os-variant for optimal results. [mar, 08 giu 2021 10:42:27 virt-install 26236] DEBUG (virt-install:697) Guest.has_install_phase: False Starting install... [mar, 08 giu 2021 10:42:27 virt-install 26236] DEBUG (guest:1169) Local connection, disabling spice image compression. [mar, 08 giu 2021 10:42:27 virt-install 26236] DEBUG (guest:384) Generated install XML: None required [mar, 08 giu 2021 10:42:27 virt-install 26236] DEBUG (guest:385) Generated boot XML: <domain type="kvm"> <name>pi</name> <uuid>c0e51f74-e4e0-4eb0-a9b7-2a6743da9b57</uuid> <memory>1048576</memory> <currentMemory>1048576</currentMemory> <vcpu>1</vcpu> <os> <type arch="aarch64" machine="raspi3">hvm</type> <kernel>/home/zi/Desktop/Work/I9/qemu-rpi-kernel/kernel8.img</kernel> <cmdline>root=/dev/vda2 rootwait panic=1 dwc_otg.fiq_fsm_enable=0</cmdline> <dtb>/home/zi/Desktop/Work/I9/qemu-rpi-kernel/bcm2710-rpi-3-b-plus.dtb</dtb> </os> <features> <acpi/> </features> <cpu mode="custom" match="exact"> <model>arm1176</model> </cpu> <clock offset="utc"/> <on_reboot>destroy</on_reboot> <devices> <emulator>/usr/local/bin/qemu-system-aarch64</emulator> <disk type="file" device="disk"> <driver name="qemu" type="raw"/> <source file="/var/www/html/2019-09-26-raspbian-buster-lite.img"/> <target dev="vda" bus="virtio"/> </disk> <interface type="user"> <mac address="52:54:00:c3:ef:de"/> <model type="virtio"/> </interface> <graphics type="spice" port="-1" tlsPort="-1" autoport="yes"> <image compression="off"/> </graphics> <console type="pty"/> <channel type="spicevmc"> <target type="virtio" name="com.redhat.spice.0"/> </channel> <sound model="ich6"/> <video> <model type="vga"/> </video> <rng model="virtio"> <backend model="random">/dev/urandom</backend> </rng> </devices> </domain> [mar, 08 giu 2021 10:42:29 virt-install 26236] DEBUG (cli:317) File "/usr/share/virt-manager/virt-install", line 1008, in <module> sys.exit(main()) File "/usr/share/virt-manager/virt-install", line 1002, in main start_install(guest, options) File "/usr/share/virt-manager/virt-install", line 728, in start_install fail(e, do_exit=False) File "/usr/share/virt-manager/virtinst/cli.py", line 317, in fail logging.debug("".join(traceback.format_stack())) [mar, 08 giu 2021 10:42:29 virt-install 26236] ERROR (cli:318) unsupported configuration: ACPI requires UEFI on this architecture [mar, 08 giu 2021 10:42:29 virt-install 26236] DEBUG (cli:320) Traceback (most recent call last): File "/usr/share/virt-manager/virt-install", line 707, in start_install transient=options.transient) File "/usr/share/virt-manager/virtinst/guest.py", line 498, in start_install doboot, transient) File "/usr/share/virt-manager/virtinst/guest.py", line 434, in _create_guest domain = self.conn.createXML(install_xml or final_xml, 0) File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3603, in createXML if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: unsupported configuration: ACPI requires UEFI on this architecture [mar, 08 giu 2021 10:42:29 virt-install 26236] DEBUG (cli:331) Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect qemu:///system start pi otherwise, please restart your installation. Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect qemu:///system start pi otherwise, please restart your installation. Il giorno mar 8 giu 2021 alle ore 02:30 Cole Robinson <crobi...@redhat.com> ha scritto: > On 6/4/21 5:40 AM, Mario Marietto wrote: > > Hello. > > > > I want to emulate the raspberry pi 3 on my Jetson nano (aarch64) using > > virt-install. I'm learning how to do that by reading heavily here : > > > > https://github.com/dhruvvyas90/qemu-rpi-kernel > > <https://github.com/dhruvvyas90/qemu-rpi-kernel> > > > > I tried to do something like this : > > > > Code: > > > > virt-install > > --name pi \ > > --machine raspi3 \ > > --cpu arm1176 \ > > --memory 1024 \ > > --import \ > > --disk > /root/Desktop/zi/Work/Android/Raspy/Debian/2019-09-26-raspbian-buster-lite.img,format=raw,bus=virtio > \ > > --network user,model=virtio \ > > --video vga \ > > --graphics spice \ > > --rng device=/dev/urandom,model=virtio \ > > --boot > 'uefi=RPI_EFI.fd,dtb=bcm2710-rpi-3-b-plus.dtb,kernel=kernel8.img,kernel_args=root=/dev/vda2 > rootwait panic=1 dwc_otg.fiq_fsm_enable=0'\ > > --events on_reboot=destroy > > > > > > But I get this error : > > > > *ERROR internal error: Unexpected enum value 0 for > > virDomainDeviceAddressType * > > > > I've got the UEFI BIOS file from here : > > > > > > https://github.com/andreiw/Raspberry...ASE/RPI_EFI.fd > > < > https://github.com/andreiw/RaspberryPiPkg/blob/master/Binary/prebuilt/2019Jan16-GCC5/RELEASE/RPI_EFI.fd > > > > > > > > I'm not sure if it isn't the right efi file to use in this specific > > configuration or if it is,but I'm passing the parameter badly. What do > > you suggest me to do ? > > That error is coming from libvirt so probably not related to EFI in any > way. What libvirt version are you using? Those docs suggest libvirt > 5.0.0 or later. Pastebin full virt-install `--debug` output might help > > - Cole > > > - Cole > > -- Mario.