Questions tagged [qemu]

QEMU is a generic and open source machine emulator and virtualizer

QEMU is a generic and open source machine emulator and virtualizer.

When used as a machine emulator, QEMU can run OSes and programs made for one machine (e.g. an ARM board) on a different machine (e.g. your own PC). By using dynamic translation, it achieves very good performance.

When used as a virtualizer, QEMU achieves near native performances by executing the guest code directly on the host CPU. QEMU supports virtualization when executing under the Xen hypervisor or using the KVM kernel module in Linux. When using KVM, QEMU can virtualize x86, server and embedded PowerPC, and S390 guests.

References:

2489 questions
0
votes
2 answers

QEMU Linux Bash init scripts not printing to the console

I am emulating a board from TI which run ARM-Cortex A15. The board using UART8250 and the default uart number is 3 at address 0x48020000. I use U-boot to boot the Linux kernel and run qemu with: qemu-system-arm -machine vexpress-a15 -smp 1 -m 1G…
Dong Lam
  • 3
  • 3
0
votes
0 answers

How to get gdb working with u-boot on qemu emulating raspi3b?

I have built u-boot with rpi_3_b_plus_defconfig for raspberry pi 3B+. On qemu, the closest target I could find is raspi3b and it all works fine so far : $ qemu-system-aarch64 -machine raspi3b -kernel u-boot.bin -display none -serial null -serial…
Naveen
  • 7,944
  • 12
  • 78
  • 165
0
votes
0 answers

Sources about device emulation in QEMU

Currently im wrinting a summary doc about how does QEMU work, mainly i explain concepts and only explain the most important features. Currently i have explained how CPU emulation is made with TCG, as its the default acelerator in QEMU, but im having…
Angel Ruiz
  • 39
  • 5
0
votes
0 answers

How to input a full cmdline to qemu using bash?

This is my script: KERNEL_CFG="-kernel Image -append \"root=/dev/vda1 nokaslr console=ttyAMA0 earlycon=pl011,mmio,0x09000000\"" DISK_CFG="-drive if=none,file=$DISKFILE,format=qcow2,id=hd1 -device virtio-blk-pci,drive=hd1,bootindex=0" sudo…
0
votes
1 answer

Openstack Juju install problem: "Inconsistent filesystem structure" on instance start

I'm trying to setup a cluster with Openstack. I've previously deployed Train on this cluster and it worked fine for me. I'm trying to install the latest version now, Antelope, with MAAS and a Juju bundle according to the directions provided here.…
0
votes
0 answers

Windows VM not booting with virt-manager on existing ssd but working with qemu command

I am trying to boot up my Windows install, which is installed on a seprate sata ssd and is bootable. I tried pretty much everything to get it to boot with virt-manager but its always just showing the UEFI screen. It is working with a quemu command…
chriss
  • 1
0
votes
1 answer

Using libvirt within Docker container

I am looking to perform a simple test on my VM and see how it behaves within a container and I want to test this using libvirt and QEMU/KVM. I have a domain .xml file that runs the VM just fine on a bare metal server but I am running into issues…
aaries
  • 111
  • 1
  • 6
0
votes
0 answers

host system doesn't support vsock

I'm studying about Kata Container using Nvidia Jetson Nano and want to make Kata Container work on Jetson device. OS is ubuntu 18.04 and installed docker, k8s and kata container. And I tried to make pod using kata container, but error…
0
votes
0 answers

Printing a string in a boot sector

I was trying to print a string in a boot sector and have the following code: [org 0x7c00] mov ah, 0x0e mov bx, msg call print mov bx, msg1 call print jmp $ print: mov al, [bx] int 0x10 inc bx cmp al, 0 jne…
0
votes
0 answers

qemu exit unexpectedly when I set PE and mov cr0, ax to enable the protected mode

; ---------- GDT ---------- GDT_BASE: dd 0x00000000 dd 0x00000000 CODE_DESC: dd 0x0000ffff dd DESK_CODE_HIGH4 DATA_STACK_DECK: dd 0x0000ffff dd DESK_DATA_HIGH4 VIDEO_DESC: dd 0x80000007 dd…
0
votes
1 answer

console output from guest (qemu VM) does no carriage return on host console when called with python subprocess.Popen

I installed a virtual machine (guest) via qemu (qemu-system-x86_64) on a linux box (host). The virtual machine is also linux. On guest I have the following remote_bash_script.sh: remote_bash_script.sh: for (( count=1; count<=10; ++count )); do …
olli
  • 1
  • 1
0
votes
0 answers

Is it possible to create a secure world OS without a normal world OS in ARM TrustZone?

I currently working with OPTEE on QEMU to create a trusted application in ARM trustzone. I wonder can OPTEE work without a normal world OS (like linux). I have tried to modify ARM trusted firmware to skip the boot process which loading normal world…
0
votes
0 answers

Is there way to get position independent code when linker doesn't support -pie option

Emulator: Qemu Architecture : riscv64 Operating System : Not Applicable (Baremetal) I am loading firmware at one location lets that be 0x50000000. I have provided memory layout in linker script. I am compiling/loading another program (which doesn't…
shaik reyan
  • 129
  • 1
  • 8
0
votes
1 answer

Is it possible to convert a machine image to raw and pipe to `dd` at same time?

First off, some background: I was tasked with creating a way to boot, configure, and save a virtual machine in a format that can be used on a physical hard drive. I accomplished this with Vagrant, Packer, and VirtualBox. The problem is that in order…
0
votes
1 answer

Cannot launch Android Emulator on Macbook m1 2020

I am unable to launch android emulator on my macbook m1. Sometimes an error is displayed without the mac restarting and sometimes a pink screen is displayed for less than a second and mac restarts. I was using macOs BigSur previously and I am now on…
Subash
  • 593
  • 3
  • 10
1 2 3
99
100