QEMU (short for "Quick EMUlator") is a free and open-source hosted hypervisor that performs hardware virtualization.
Questions tagged [qemu]
1019 questions
67
votes
7 answers
How do I get my mouse back from QEMU/KVM?
I'm running QEMU/KVM on Debian Testing x64 with this command:
kvm -m 1024 -hda win7.img -cdrom win7x86.iso -boot d -net user
But when I click inside the virtual machine, QEMU captures my mouse and won't let it go. I thought the key combination to…
Michael A
- 1,501
- 5
- 19
- 33
62
votes
5 answers
How to SSH from host to guest using QEMU?
How do I setup ssh from the host to the guest using qemu? I am able to use port redirection when I boot the VM without any special parameters, as follows:
/usr/bin/qemu-system-x86_64 -hda ubuntu1204 -m 512 -redir tcp:7777::8001
But when I try to…
jobin
- 836
- 1
- 7
- 16
56
votes
9 answers
How can I chroot into a filesystem with a different architechture?
I'm trying to chroot into a Arch Linux ARM filesystem from x86_64.
I've seen that it's possible to do using static qemu by copying the binary into the chroot system:
$ cp /usr/bin/qemu-arm archarm-chroot/usr/bin
But despite this I always get…
Jivings
- 935
- 1
- 7
- 11
44
votes
2 answers
How to create a VM from scratch with virsh?
It looks like that you cannot create a brand new VM with virsh unless you already have a working XML file.
I have just installed all the needed bits for QEMU-KVM to work, and need now to create my very first VM.
How to?
Hint: I don't have graphics!
EnzoR
- 893
- 1
- 7
- 11
43
votes
1 answer
Booting a raw disk image in QEMU
I have a disk image file from here; that page says I can boot this image with QEMU and the following command:
$ qemu-system-x86_64 -m 4096 -ctrl-grab -no-reboot x86-64.img
That gives a message:
WARNING: Image format was not specified for…
cat
- 3,428
- 4
- 22
- 50
42
votes
5 answers
How to mount qcow2 image
I've read that with qemu-nbd and the network block device kernel module, I can mount a qcow2 image. I haven't seen any tutorials on mounting a qcow2 via a loop device. Is it possible? If not, why?
I don't really understand the difference between a…
onlyanegg
- 975
- 2
- 8
- 9
40
votes
5 answers
How to boot EFI kernel using QEMU (kvm)?
I'm trying to emulate a EFI environment using QEMU (kmv); virtualbox takes 15 minutes to boot in EFI mode using archboot.
Using legacy BIOS mode, I can boot using this command:
root@citsnmaiko-deb:/home/maiko/uefi/ovmf# qemu-system-x86_64 -kernel …
MaikoID
- 969
- 3
- 10
- 18
38
votes
1 answer
What's the difference between KVM, QEMU and libvirt?
I'm trying to understand how all the components of the VM ecosystem fit together.
What's the difference between:
KVM
QEMU
libvirt
Which is controlled by virsh and virt-install?
This comment says that libvirt is an abstraction ontop of QEMU, which…
falsePockets
- 758
- 1
- 7
- 13
36
votes
3 answers
Shared folder between QEMU Windows guest and Linux host
In the past I have used Virtual Box which has very good support for sharing a folder on the host with a Windows guest. I am looking for similar functionality for QEMU.
The documentation suggests to expose a Samba server running somewhere in the…
Lekensteyn
- 20,173
- 18
- 71
- 111
33
votes
6 answers
How do I boot from a liveusb using qemu-kvm?
I am trying to get qemu-kvm to boot from my live usb stick. Is this possible?
mikewilliamson
- 747
- 2
- 6
- 13
29
votes
2 answers
Emulate unplugging a network cable with qemu-kvm
[Background: I'd like to actually test How to take down a static network interface when not connected? ]
I'm setting up a QEMU-KVM virtual machine using libvirt (via virt-manager). I put two NICs on it (both virtio). They are bridged to a physical…
derobert
- 107,579
- 20
- 231
- 279
28
votes
1 answer
Can I pass through a USB Port via qemu Command Line?
I'm launching a VM using qemu-system-x86_64. I know two ways to pass through a USB device.
Say for example, I had a mouse that showed up in lsusb like
Bus 003 Device 011: ID 6ade:9582 Amazing Mouse Maker
I could pass it through using
-device…
DeepDeadpool
- 1,185
- 1
- 12
- 22
24
votes
2 answers
Connect to running qemu instance with qemu monitor
I'm having an instance of qemu running on Windows 7, running without an open terminal. Now I want to shutdown the machine with the name MyMachineName or add an USB-Device to it.
I need a scriptable solution. Libvirt is not a solution, because it…
Cutton Eye
- 405
- 1
- 4
- 11
22
votes
1 answer
Move qcow2 image to physical hard drive
I have a qcow2 image that I use to boot an installation of linux using QEMU; I would like to place the contents of that image directly onto a physical hard drive so that I can boot to that linux installation directly from my desktop. I would like to…
Chris
- 813
- 2
- 7
- 11
21
votes
2 answers
How can I store files in the mounted shared folder?
I am running a Fedora Workstation virtual machine on an Ubuntu host.
I created a folder /home/cl/share in the guest and mounted the shared folder /media/cl/system/virtual/share as root following the instructions from linux-kvm :
mount -t 9p -o…
cl-netbox
- 871
- 1
- 8
- 18