Questions tagged [qemu]

QEMU stands for "Quick EMUlator" and is a processor emulator that relies on dynamic binary translation to achieve a reasonable speed while being easy to port to new host CPU architectures.

QEMU has two operating modes:

  • User mode emulation

In this mode QEMU runs single Linux or Darwin/Mac OS X programs that were compiled for a different CPU. System calls are thunked for endianness and for 32/64 bit mismatches. Fast cross-compilation and cross-debugging are the main targets for user-mode emulation.

  • Computer emulation

In this mode QEMU emulates a full computer system, including peripherals. It can be used to provide virtual hosting of several virtual computers on a single computer. QEMU can boot many guest operating systems, including Linux, Solaris, Microsoft Windows, DOS, and BSD 1; it supports emulating several hardware platforms, including x86, x86-64, ARM, Alpha, ETRAX CRIS, MIPS, MicroBlaze, PowerPC and SPARC.

Source: wikipedia

600 questions
189
votes
3 answers

Difference between KVM and QEMU

I have been reading about KVM and Qemu for sometime. As of now I have a clear understanding of what they do. KVM supports hardware virtualization to provide near native performance to the Guest Operating sytems. On the other hand QEmu emulates the…
Abhishek Gupta
  • 2,025
  • 3
  • 13
  • 7
34
votes
6 answers

free up not used space on a qcow2-image-file on kvm/qemu

we are using kvm/qemu with qcow2-images for our virtual machines. qcow2 has this nice feature where the image file only allocates the actually needed space by the virtual-machine. but how do i shrink back the image file, if the virtual machine's…
bmaeser
  • 639
  • 2
  • 6
  • 10
32
votes
5 answers

Is there any way to shrink qcow2 image without converting it raw?

Is there any way to shrink qcow2 image without converting it raw? I cannot convert it to raw because I don't have disk space enough for raw image.
YOU
  • 481
  • 1
  • 6
  • 9
31
votes
2 answers

Which is better image format, raw or qcow2, to use as a baseimage for other VMs?

I am using a baseimage and based on that creating many VMs. And now I want to know which is better, qcow2 or raw to use for a baseimage. Moreover, can you please tell me if there is any advantage of using this baseimage thing, instead of cloning the…
A-B
  • 563
  • 2
  • 6
  • 17
26
votes
3 answers

How to start qemu directly in the console (*not* in curses or SDL)

I seem to recall being able to start qemu with only the terminal emulator output, with the graphic window disabled. And here I don't mean with the ncurses interface, that one is nice, but I want the output to flow directly into my terminal, to make…
anarcat
  • 740
  • 1
  • 9
  • 18
22
votes
5 answers

KVM: Which CPU features make VMs run better?

We are using Ubuntu 12.04 with the following parameters: Dell R910 Kernel 3.2.0-25-generic #40-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux kvm 1:84+dfsg-0ubuntu16+1.0+noroms+0ubuntu13 qemu-kvm 1.0+noroms-0ubuntu13 qemu-common…
19
votes
2 answers

understanding relationship between Qemu and KVM

What is the difference between KVM and Qemu? As I understand, latter is able to provide "user mode emulation" which means that one can run a single executable built for some other architecture like this: # file busybox-sparc busybox-sparc: ELF…
Martin
  • 332
  • 3
  • 10
  • 28
17
votes
3 answers

KVM guest cannot write to 9p share owned by non-root

I am aiming to set up full write access to a 9p share for a KVM guest. Both host and guest have the same users/groups with the same IDs. Both host and guest should be able to write to the share using same usernames and I don't want to distinguish…
Greendrake
  • 1,171
  • 1
  • 12
  • 22
17
votes
9 answers

Is there a way to determine which virtual interface belongs to a virtual machine in a kvm host?

I'm using qemu/kvm whith bridged networking. In the host machine there are several "vnetX" network interfaces without IP. I'm looking for a way to know which vnetX belong to a virtual machine. I tried to match the MAC Address values on these…
theist
  • 1,199
  • 2
  • 9
  • 24
17
votes
2 answers

Read/write access for passthrough (9p) filesystems with libvirt/qemu?

I have recently started experimenting with the support for passthrough filesystems in recent versions of KVM/QEMU/libvirt. Making the filesystems available for read access has "just worked", but I'm a little puzzled about how write access is…
larsks
  • 41,276
  • 13
  • 117
  • 170
16
votes
2 answers

'Unrecognised disc label' - when using parted with qemu images

I have a Linux from scratch LiveCD running on qemu vm. I'm using this command to create a hda disc for qemu: qemu-img.exe create -f qcow2 base-linux.img 5G Then I run my vm: qemu.exe -m 1024 -boot d -cdrom lfslivecd-x86-6.3-r2145.iso -hda…
Valentin V
  • 355
  • 1
  • 3
  • 7
15
votes
1 answer

QEMU multiple port forwarding

I would like to forward more than one port. This command run my VM and forwards RDP port successfully: qemu-system-i386 -net nic,model=rtl8139 -net user,hostfwd=tcp::3389-:3389 -m 512M -localtime -cpu core2duo,+nx -smp 2 -usbdevice tablet -k en-us…
Anna Parker
  • 331
  • 1
  • 2
  • 10
12
votes
5 answers

Solidworks: activation license mode is not supported in this virtual environment (Qemu-KVM)

The question is not around Solidworks actually, so please continue to read. The whole idea of virtualization is to be hardware independent. Before our eyes a whole new dependency level is being created - affixment to the hypervisor. As far as I know…
Michal Sokolowski
  • 1,461
  • 1
  • 11
  • 24
12
votes
6 answers

Convert directory to QEMU/KVM virtual disk image

I have a directory filled with data at /var/backups/disk1 that I want to convert into a virtual disk image which I'll then be able to boot using QEMU or KVM (the directory contains the file system for a virtual machine, copied out via rsync). While…
Chris
  • 121
  • 1
  • 1
  • 3
11
votes
2 answers

How to quit QEMU monitor?

I launched KVM VM with this command: kvm /kvm/hdd/v1/v1-1.raw -m 512 -daemonize -smp 2 -nographic -net nic,model=virtio,macaddr=aa:aa:aa:aa:aa:01 -net tap,ifname=tap0 -monitor telnet:localhost:7001,server,nowait,nodelay Then I connect to the…
artem
  • 596
  • 2
  • 10
  • 28
1
2 3
39 40