首页 > 其他分享 >QEMU

QEMU

时间:2022-11-29 21:25:41浏览次数:28  
标签:img QEMU create vga file sets qemu

Installation:

Arch: sudo pacman -S qemu (optionally "qemu-arch-extra" for more architectures)
Debian/Ubuntu: sudo apt install qemu
Fedora: sudo dnf install qemu

To create a virtual image use:

qemu-img create -f qcow2 Image.img 10G

(create is to create an image, -f qcow2 sets the format to qcow2, Image.img is our final file and 10G is it's size)

Launching the VM:

qemu-system-x86_64 -enable-kvm -cdrom OS_ISO.iso -boot menu=on -drive file=Image.img -m 2G

(-enable-kvm enables KVM, -cdrom selects an iso to load as a cd, -boot menu=on enables a boot menu, -drive file= selects a file for the drive, -m sets the amount of dedicated RAM)
(Remember! Ctrl + Alt + G to exit capture, Ctrl + Alt + F to fullscreen!)

That doesn't run so good, what can we do to improve it?

Basic performance options

-cpu host (sets the CPU to the hosts' CPU)
-smp 2 (sets the numbers of cores)

Basic Graphics Acceleration

the -vga option can be used to specify one of various vga card emulators:

"qxl" offers 2D acceleration but requires kernel modules "qxl" and "bochs_drm" to be enabled:

-vga qxl

"virtio" works much better and supports some 3D emulation:

-vga virtio -display sdl,gl=on

标签:img,QEMU,create,vga,file,sets,qemu
From: https://www.cnblogs.com/lygin/p/16936740.html

相关文章

  • qemu 3
    https://blog.csdn.net/sxw1002/article/details/53011310?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-......
  • PVE下命令行pvesh,zfs,qm,qemu-img使用
    pvesh&qm1.获取所有虚拟机列表1root@pve:~#pveshget/cluster/resources2┌───────────────────────┬─────────┬────......
  • 利用qemu搭建deepin
    转自https://blog.davidwang.org/2022/10/27/deepin-riscv-qemu/笔者按照自己的实践稍作整理利用QEMU搭建deepin-riscv64宿主机环境:1.安装QEMUaptinstallqemu2.......
  • QEMU调试Linux系统的USB协议栈
    QEMU调试Linux系统的USB协议栈通过使用QEMU调试Linux系统的USB协议栈来学习USB协议栈。mingdu.zhengatgmaildotcom安装QEMUsudoapt-getinstallqemu-system-i386启动......
  • qemu1
    qemu当发现有一个题目是qemu框架后一般有两种解法一个是通过不停动调得出输入流的数据变化另外一个找到qemu执行的框架下的代码,下面举两个题目复现进行一些总结MTCTF2......
  • Debugging the Ubuntu kernel with GDB and QEMU
    参考:https://mhcerri.github.io/posts/debugging-the-ubuntu-kernel-with-gdb-and-qemu/ThistutorialfocusesonthepracticalaspectsofpreparinganUbuntulibvi......
  • KVM/QEMU(virt-manager)使用iso镜像安装macOS bigsur 11.4
    参考:https://blog.csdn.net/u012332816/article/details/1221868991.背景本人没有mac电脑,但是需要在macOS上做一些事情,原来我在VMWareWorkstations和VirtualBox......
  • 使用qcow2磁盘格式的文件作为Qemu根文件系统
    参考使用Qemu运行Ubuntu文件系统(1)qemu-img命令详解qemu-nbd简单操作操作创建qcow2格式文件qemu-imgcreate-fqcow2ubuntu22.qcow2100G挂载modprobenb......
  • ubuntu20.04 从安装 kvm、qemu、libvirt 到进入虚拟机
    安装环境可行性检测验证CPU是否支持硬件虚拟化grep-Eoc'(vmx|svm)'/proc/cpuinfo//数字大于0,则代表CPU支持硬件虚拟化,反之则不支持检查VT是否在BIOS中启用a......
  • 在Ubuntu22.04中配置riscv64-toolchain以及QEMU
    本文提供另类的搭建riscv64-toolchain的方法目前已有的方法有使用riscv-gnu-toolchain进行源码编译使用sifive预编译工具使用他人已搭建好的Docker镜像作为环境我......