Skip to content

QEMU (Quick Emulator) is a free and open-source emulator that uses dynamic binary translation to emulate the processor of a computer.

Notifications You must be signed in to change notification settings

lucasmz1/Qemu_Appimage

Repository files navigation

Qemu_Appimage

########################################################################
Thank you for sharing this project across the internet!

If you like it don't forget to give an star.

By the way this is an unofficial project.
########################################################################


This is a Prove of the concept that is possible to run a virtual machine from an Appimage.

What is the goal?

To run QEMU a virtual machine emulator from this contrainer.

which architectures are possible to run using this appimage? almost all of then which is supported by QEMU. In this repository you may find a text file with examples for using This QEMU AppImage, of course it's all in portuguese, but no need worries... those commands are the same for every single use of QEMU. if you had doubts about the use you can find me in Telegram: @zainotel.


useful commands!


this one bellow creat an hard drive


./QEMU-x86_64.AppImage qemu-img create -f qcow2 windows10.qcow2 30G


this other example boot the iso file


./QEMU-x86_64.AppImage qemu-system-x86_64 -enable-kvm -cpu host -smp cores=2 -m 4G -name 'Manjaro' -boot d -hda ~/Documentos/Manjaro.qcow2 -cdrom ~/Documentos/manjaro-gnome-21.3.7-220816-linux515.iso


attention if you're using the version stable or the one which was build from the source you must use this command


./QEMU-x86_64.AppImage qemu-system-x86_64 -enable-kvm -M q35 -vga virtio -display gtk,gl=on -cpu host -smp cores=2 -m 1G -name 'teste' -boot d -hda ~/Downloads/organizar/windows10.qcow2 -cdrom ~/Documentos/AppImage/TinyCorePure64-14.0.iso


the option -vga virtio -display gtk,gl=on will enable the gtk interface instead of vnc or if you didn't like gtk window you can change to sdl. the network is working normaly.


the audio is working use this command to get audio outoput in HDMI monitor or TV


./QEMU-git.AppImage qemu-system-x86_64 -enable-kvm -M q35 -vga virtio -display gtk,gl=on -cpu host -smp cores=2 -m 1G -name 'teste' -boot d -hda ~/Downloads/organizar/windows10.qcow2 -cdrom ~/Downloads/organizar/bodhi.iso -device ich9-intel-hda,addr=1f.1 -audiodev pa,id=snd0 -device hda-output,audiodev=snd0

########################################################################
How to mount the qcow2 image on your system in order to add files or edit the VM

sudo modprobe nbd max_part=8

sudo /home/lucas/Downloads/QEMU-x86_64.AppImage qemu-nbd --connect=/dev/nbd0 /home/lucas/Downloads/windows10.qcow2

attention in order to use the appimage to run qemu-nbd you may have to give the full path til the .AppImage file

sudo fdisk /dev/nbd0 -l

sudo mount /dev/nbd0p1 /mnt/somepoint/

Unmount the .qcow2 image

sudo umount /mnt/somepoint/

sudo /home/lucas/Downloads/QEMU-x86_64.AppImage qemu-nbd --disconnect /dev/nbd0

now remove de nbd

sudo rmmod nbd

Telegram Group

About

QEMU (Quick Emulator) is a free and open-source emulator that uses dynamic binary translation to emulate the processor of a computer.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages