qemu运行虚拟机无反应,只输出一行提示信息:VNC server running on 127.0.0.1:5900
1、问题发生当安装完qemu后,尝试运行一个虚拟机,结果没有运行起来,只有一行提示“VNC server running on 127.0.0.1:5900”。通过浏览网上的解决方案,这种情况的原因可能是qemu没有支持SDL(Simple DirectMedia Layer),该功能是一个跨平台的多媒体库,它通过 OpenGL 和 2D 音频帧缓冲对音频,键盘,鼠标,游戏杆,3D 硬件进行底层访
1、问题发生
当安装完qemu
后,尝试运行一个虚拟机,结果没有运行起来,只有一行提示“VNC server running on 127.0.0.1:5900”
。
通过浏览网上的解决方案,这种情况的原因可能是qemu
没有支持SDL(Simple DirectMedia Layer)
,该功能是一个跨平台的多媒体库,它通过 OpenGL 和 2D 音频帧缓冲对音频,键盘,鼠标,游戏杆,3D 硬件进行底层访问。
2、开始解决
首先,安装libsdl1.2-dev
。
imaginemiracle@:~$ sudo apt-get install libsdl1.2-dev
安装完成后,重新配置qemu
。
imaginemiracle@:build$ ../qemu/configure
The Meson build system
Version: 0.55.3
Source dir: /media/imaginemiracle/Disk_D/Linux_Workspace/cxl/qemu
Build dir: /media/imaginemiracle/Disk_D/Linux_Workspace/cxl/build
Build type: native build
Project name: qemu
Project version: 6.0.50
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
../qemu/meson.build:10: WARNING: Module unstable-keyval has no backwards or forwards compatibility and might not exist in future releases.
Program sh found: YES
Program python3 found: YES (/usr/bin/python3)
Program bzip2 found: YES
C++ compiler for the host machine: c++ (gcc 9.3.0 "c++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C++ linker for the host machine: c++ ld.bfd 2.34
Program cgcc found: NO
Library m found: YES
Library util found: YES
Run-time dependency appleframeworks found: NO (tried framework)
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency pixman-1 found: YES 0.38.4
Library aio found: NO
Run-time dependency zlib found: YES 1.2.11
Run-time dependency libnfs found: NO (tried pkgconfig)
Run-time dependency appleframeworks found: NO (tried framework)
Run-time dependency libseccomp found: NO (tried pkgconfig)
Has header "cap-ng.h" : NO
Run-time dependency xkbcommon found: NO (tried pkgconfig)
Library rt found: YES
Run-time dependency libiscsi found: NO (tried pkgconfig)
Run-time dependency libzstd found: NO (tried pkgconfig)
Run-time dependency libcurl found: NO (tried pkgconfig)
Run-time dependency libudev found: NO (tried pkgconfig)
Library mpathpersist found: NO
Run-time dependency ncursesw found: YES 6.2.20200212
Has header "brlapi.h" : NO
sdl2-config found: NO
Run-time dependency sdl2 found: NO (tried pkgconfig and config-tool)
Library rados found: NO
Has header "rbd/librbd.h" : NO
Run-time dependency glusterfs-api found: NO (tried pkgconfig)
Has header "bzlib.h" : NO
Has header "lzfse.h" : NO
Run-time dependency gtk+-3.0 found: NO (tried pkgconfig)
Run-time dependency libpng found: YES 1.6.37
Run-time dependency libjpeg found: NO (tried pkgconfig)
Has header "sasl/sasl.h" : NO
Has header "snappy-c.h" : NO
Has header "lzo/lzo1x.h" : NO
Run-time dependency u2f-emu found: NO (tried pkgconfig)
Run-time dependency libkeyutils found: NO (tried pkgconfig)
Checking for function "gettid" : YES
Run-time dependency fuse3 found: NO (tried pkgconfig)
Has header "linux/btrfs.h" : YES
Has header "libdrm/drm.h" : NO
Has header "pty.h" : YES
Has header "sys/ioccom.h" : NO
Has header "sys/kcov.h" : NO
Checking for function "system" : YES
Checking for function "preadv" : YES
....................
....................(此处省略一些不重要的输出信息)
....................
qemu 6.0.50
Directories
Install prefix: /usr/local
BIOS directory: share/qemu
firmware path: /usr/local/share/qemu-firmware
binary directory: bin
library directory: lib
module directory: lib/qemu
libexec directory: libexec
include directory: include
config directory: /usr/local/etc
local state directory: /usr/local/var
Manual directory: share/man
Doc directory: /usr/local/share/doc
Build directory: /media/imaginemiracle/Disk_D/Linux_Workspace/cxl/build
Source path: /media/imaginemiracle/Disk_D/Linux_Workspace/cxl/qemu
GIT submodules: ui/keycodemapdb tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 meson dtc capstone slirp
Host binaries
git: git
make: make
python: /usr/bin/python3 (version: 3.8)
sphinx-build: NO
gdb: /usr/bin/gdb
genisoimage: /usr/bin/genisoimage
smbd: "/usr/sbin/smbd"
Configurable features
Documentation: NO
system-mode emulation: YES
user-mode emulation: YES
block layer: YES
Install blobs: YES
module support: NO
plugin support: NO
fuzzing support: NO
Audio drivers: pa oss
Trace backends: log
QOM debugging: YES
vhost-kernel support: YES
vhost-net support: YES
vhost-crypto support: YES
vhost-scsi support: YES
vhost-vsock support: YES
vhost-user support: YES
vhost-user-blk server support: YES
vhost-user-fs support: YES
vhost-vdpa support: YES
build guest agent: YES
Compilation
host CPU: x86_64
host endianness: little
C compiler: cc
Host C compiler: cc
C++ compiler: c++
ARFLAGS: rv
CFLAGS: -O2 -g
CXXFLAGS: -O2 -g
QEMU_CFLAGS: -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong
QEMU_LDFLAGS: -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -m64 -fstack-protector-strong
profiler: NO
link-time optimization (LTO): NO
PIE: YES
static build: NO
malloc trim support: YES
membarrier: NO
preadv support: YES
fdatasync: YES
madvise: YES
posix_madvise: YES
posix_memalign: YES
debug stack usage: NO
mutex debugging: NO
memory allocator: system
avx2 optimization: YES
avx512f optimization: NO
gprof enabled: NO
gcov: NO
thread sanitizer: NO
CFI support: NO
strip binaries: YES
sparse: NO
mingw32 support: NO
x86_64 tests: cc
Targets and accelerators
KVM support: YES
HAX support: NO
HVF support: NO
WHPX support: NO
NVMM support: NO
Xen support: NO
TCG support: YES
TCG backend: native (x86_64)
TCG debug enabled: NO
target list: aarch64-softmmu alpha-softmmu arm-softmmu avr-softmmu cris-softmmu hppa-softmmu i386-softmmu m68k-softmmu microblaze-softmmu microblazeel-softmmu mips-softmmu mips64-softmmu mips64el-softmmu mipsel-softmmu nios2-softmmu or1k-softmmu ppc-softmmu ppc64-softmmu riscv32-softmmu riscv64-softmmu rx-softmmu s390x-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu tricore-softmmu x86_64-softmmu xtensa-softmmu xtensaeb-softmmu aarch64-linux-user aarch64_be-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user hexagon-linux-user hppa-linux-user i386-linux-user m68k-linux-user microblaze-linux-user microblazeel-linux-user mips-linux-user mips64-linux-user mips64el-linux-user mipsel-linux-user mipsn32-linux-user mipsn32el-linux-user nios2-linux-user or1k-linux-user ppc-linux-user ppc64-linux-user ppc64le-linux-user riscv32-linux-user riscv64-linux-user s390x-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc32plus-linux-user sparc64-linux-user x86_64-linux-user xtensa-linux-user xtensaeb-linux-user
default devices: YES
out of process emulation: YES
Block layer support
coroutine backend: ucontext
coroutine pool: YES
Block whitelist (rw):
Block whitelist (ro):
VirtFS support: NO
build virtiofs daemon: NO
Live block migration: YES
replication support: YES
bochs support: YES
cloop support: YES
dmg support: YES
qcow v1 support: YES
vdi support: YES
vvfat support: YES
qed support: YES
parallels support: YES
FUSE exports: NO
Crypto
TLS priority: "NORMAL"
GNUTLS support: NO
libgcrypt: NO
nettle: NO
crypto afalg: NO
rng-none: NO
Linux keyring: YES
Dependencies
SDL support: NO
SDL image support: NO
GTK support: NO
pixman: YES
VTE support: NO
slirp support: internal
libtasn1: NO
PAM: NO
iconv support: YES
curses support: YES
virgl support: NO
curl support: NO
Multipath support: NO
VNC support: YES
VNC SASL support: NO
VNC JPEG support: NO
VNC PNG support: YES
brlapi support: NO
vde support: NO
netmap support: NO
Linux AIO support: NO
Linux io_uring support: NO
ATTR/XATTR support: YES
RDMA support: NO
PVRDMA support: NO
fdt support: internal
libcap-ng support: NO
spice support: NO
rbd support: NO
xfsctl support: NO
smartcard support: NO
U2F support: NO
libusb: NO
usb net redir: NO
OpenGL support: NO
GBM: NO
libiscsi support: NO
libnfs support: NO
seccomp support: NO
GlusterFS support: NO
TPM support: YES
libssh support: NO
lzo support: NO
snappy support: NO
bzip2 support: NO
lzfse support: NO
zstd support: NO
NUMA host support: NO
libxml2: NO
capstone: internal
libpmem support: NO
libdaxctl support: NO
libudev: NO
FUSE lseek: NO
Subprojects
libvhost-user: YES
Found ninja-1.10.0 at /usr/bin/ninja
在配置qemu
的输出中,可以看到SDL support: NO
,这说明qemu
还是不支持SDL
。
到这里,打开qemu/configure
文件看一下里面是否有启用SDL
的参数或命令,可以看到第987
行,有开启SDL
的配置参数--enable-sdl
977 --host=*|--build=*|\
978 --disable-dependency-tracking|\
979 --sbindir=*|--sharedstatedir=*|\
980 --oldincludedir=*|--datarootdir=*|--infodir=*|\
981 --htmldir=*|--dvidir=*|--pdfdir=*|--psdir=*)
982 # These switches are silently ignored, for compatibility with
983 # autoconf-generated configure scripts. This allows QEMU's
984 # configure to be used by RPM and similar macros that set
985 # lots of directory switches by default.
986 ;;
987 --disable-sdl) sdl="disabled"
988 ;;
989 --enable-sdl) sdl="enabled"
990 ;;
991 --disable-sdl-image) sdl_image="disabled"
992 ;;
993 --enable-sdl-image) sdl_image="enabled"
994 ;;
995 --disable-qom-cast-debug) qom_cast_debug="no"
996 ;;
997 --enable-qom-cast-debug) qom_cast_debug="yes"
998 ;;
999 --disable-virtfs) virtfs="disabled"
1000 ;;
1001 --enable-virtfs) virtfs="enabled"
1002 ;;
1003 --disable-libudev) libudev="disabled"
1004 ;;
1005 --enable-libudev) libudev="enabled"
1006 ;;
再次尝试配置qemu
并打开SDL
imaginemiracle@:build$ ../qemu/configure --enable-sdl
The Meson build system
Version: 0.55.3
Source dir: /media/imaginemiracle/Disk_D/Linux_Workspace/cxl/qemu
Build dir: /media/imaginemiracle/Disk_D/Linux_Workspace/cxl/build
Build type: native build
Project name: qemu
Project version: 6.0.50
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
../qemu/meson.build:10: WARNING: Module unstable-keyval has no backwards or forwards compatibility and might not exist in future releases.
Program sh found: YES
Program python3 found: YES (/usr/bin/python3)
Program bzip2 found: YES
C++ compiler for the host machine: c++ (gcc 9.3.0 "c++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C++ linker for the host machine: c++ ld.bfd 2.34
Program cgcc found: NO
Library m found: YES
Library util found: YES
Run-time dependency appleframeworks found: NO (tried framework)
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency pixman-1 found: YES 0.38.4
Library aio found: NO
Run-time dependency zlib found: YES 1.2.11
Run-time dependency libnfs found: NO (tried pkgconfig)
Run-time dependency appleframeworks found: NO (tried framework)
Run-time dependency libseccomp found: NO (tried pkgconfig)
Has header "cap-ng.h" : NO
Run-time dependency xkbcommon found: NO (tried pkgconfig)
Library rt found: YES
Run-time dependency libiscsi found: NO (tried pkgconfig)
Run-time dependency libzstd found: NO (tried pkgconfig)
Run-time dependency libcurl found: NO (tried pkgconfig)
Run-time dependency libudev found: NO (tried pkgconfig)
Library mpathpersist found: NO
Run-time dependency ncursesw found: YES 6.2.20200212
Has header "brlapi.h" : NO
sdl2-config found: NO
Run-time dependency sdl2 found: NO (tried pkgconfig and config-tool)
../qemu/meson.build:693:2: ERROR: Dependency "sdl2" not found, tried pkgconfig and config-tool
A full log can be found at /media/imaginemiracle/Disk_D/Linux_Workspace/cxl/build/meson-logs/meson-log.txt
ERROR: meson setup failed
配置过程中报错ERROR: Dependency "sdl2" not found, tried pkgconfig and config-tool
,这是由于没找到SDL2
库文件,所以报错,安装即可,安装命令如下。
imaginemiracle@:~$ sudo apt-get install libsdl2-dev
再次尝试配置qemu
并开启SDL
imaginemiracle@:build$ ../qemu/configure --enable-sdl
The Meson build system
Version: 0.55.3
Source dir: /media/imaginemiracle/Disk_D/Linux_Workspace/cxl/qemu
Build dir: /media/imaginemiracle/Disk_D/Linux_Workspace/cxl/build
Build type: native build
Project name: qemu
Project version: 6.0.50
C compiler for the host machine: cc (gcc 9.3.0 "cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C linker for the host machine: cc ld.bfd 2.34
Host machine cpu family: x86_64
Host machine cpu: x86_64
../qemu/meson.build:10: WARNING: Module unstable-keyval has no backwards or forwards compatibility and might not exist in future releases.
Program sh found: YES
Program python3 found: YES (/usr/bin/python3)
Program bzip2 found: YES
C++ compiler for the host machine: c++ (gcc 9.3.0 "c++ (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0")
C++ linker for the host machine: c++ ld.bfd 2.34
Program cgcc found: NO
Library m found: YES
Library util found: YES
Run-time dependency appleframeworks found: NO (tried framework)
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Run-time dependency pixman-1 found: YES 0.38.4
Library aio found: NO
Run-time dependency zlib found: YES 1.2.11
Run-time dependency libnfs found: NO (tried pkgconfig)
Run-time dependency appleframeworks found: NO (tried framework)
Run-time dependency libseccomp found: NO (tried pkgconfig)
Has header "cap-ng.h" : NO
Run-time dependency xkbcommon found: YES 0.10.0
Library rt found: YES
Run-time dependency libiscsi found: NO (tried pkgconfig)
Run-time dependency libzstd found: NO (tried pkgconfig)
Run-time dependency libcurl found: NO (tried pkgconfig)
Run-time dependency libudev found: YES 245
Library mpathpersist found: NO
Run-time dependency ncursesw found: YES 6.2.20200212
Has header "brlapi.h" : NO
Run-time dependency sdl2 found: YES 2.0.10
Run-time dependency sdl2_image found: NO (tried pkgconfig)
Library rados found: NO
Has header "rbd/librbd.h" : NO
Run-time dependency glusterfs-api found: NO (tried pkgconfig)
Has header "bzlib.h" : NO
Has header "lzfse.h" : NO
Run-time dependency gtk+-3.0 found: NO (tried pkgconfig)
Run-time dependency libpng found: YES 1.6.37
Run-time dependency libjpeg found: NO (tried pkgconfig)
Has header "sasl/sasl.h" : NO
Has header "snappy-c.h" : NO
Has header "lzo/lzo1x.h" : NO
Run-time dependency u2f-emu found: NO (tried pkgconfig)
Run-time dependency libkeyutils found: NO (tried pkgconfig)
Checking for function "gettid" : YES
Run-time dependency fuse3 found: NO (tried pkgconfig)
Has header "linux/btrfs.h" : YES
Has header "libdrm/drm.h" : NO
Has header "pty.h" : YES
Has header "sys/ioccom.h" : NO
Has header "sys/kcov.h" : NO
Checking for function "system" : YES
Checking for function "preadv" : YES
..............................
.............................. (此处省略一些不重要的输出信息)
..............................
qemu 6.0.50
Directories
Install prefix: /usr/local
BIOS directory: share/qemu
firmware path: /usr/local/share/qemu-firmware
binary directory: bin
library directory: lib
module directory: lib/qemu
libexec directory: libexec
include directory: include
config directory: /usr/local/etc
local state directory: /usr/local/var
Manual directory: share/man
Doc directory: /usr/local/share/doc
Build directory: /media/imaginemiracle/Disk_D/Linux_Workspace/cxl/build
Source path: /media/imaginemiracle/Disk_D/Linux_Workspace/cxl/qemu
GIT submodules: ui/keycodemapdb tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 meson dtc capstone slirp
Host binaries
git: git
make: make
python: /usr/bin/python3 (version: 3.8)
sphinx-build: NO
gdb: /usr/bin/gdb
genisoimage: /usr/bin/genisoimage
smbd: "/usr/sbin/smbd"
Configurable features
Documentation: NO
system-mode emulation: YES
user-mode emulation: YES
block layer: YES
Install blobs: YES
module support: NO
plugin support: NO
fuzzing support: NO
Audio drivers: pa oss
Trace backends: log
QOM debugging: YES
vhost-kernel support: YES
vhost-net support: YES
vhost-crypto support: YES
vhost-scsi support: YES
vhost-vsock support: YES
vhost-user support: YES
vhost-user-blk server support: YES
vhost-user-fs support: YES
vhost-vdpa support: YES
build guest agent: YES
Compilation
host CPU: x86_64
host endianness: little
C compiler: cc
Host C compiler: cc
C++ compiler: c++
ARFLAGS: rv
CFLAGS: -O2 -g
CXXFLAGS: -O2 -g
QEMU_CFLAGS: -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong
QEMU_LDFLAGS: -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -m64 -fstack-protector-strong
profiler: NO
link-time optimization (LTO): NO
PIE: YES
static build: NO
malloc trim support: YES
membarrier: NO
preadv support: YES
fdatasync: YES
madvise: YES
posix_madvise: YES
posix_memalign: YES
debug stack usage: NO
mutex debugging: NO
memory allocator: system
avx2 optimization: YES
avx512f optimization: NO
gprof enabled: NO
gcov: NO
thread sanitizer: NO
CFI support: NO
strip binaries: YES
sparse: NO
mingw32 support: NO
x86_64 tests: cc
Targets and accelerators
KVM support: YES
HAX support: NO
HVF support: NO
WHPX support: NO
NVMM support: NO
Xen support: NO
TCG support: YES
TCG backend: native (x86_64)
TCG debug enabled: NO
target list: aarch64-softmmu alpha-softmmu arm-softmmu avr-softmmu cris-softmmu hppa-softmmu i386-softmmu m68k-softmmu microblaze-softmmu microblazeel-softmmu mips-softmmu mips64-softmmu mips64el-softmmu mipsel-softmmu nios2-softmmu or1k-softmmu ppc-softmmu ppc64-softmmu riscv32-softmmu riscv64-softmmu rx-softmmu s390x-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu tricore-softmmu x86_64-softmmu xtensa-softmmu xtensaeb-softmmu aarch64-linux-user aarch64_be-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user hexagon-linux-user hppa-linux-user i386-linux-user m68k-linux-user microblaze-linux-user microblazeel-linux-user mips-linux-user mips64-linux-user mips64el-linux-user mipsel-linux-user mipsn32-linux-user mipsn32el-linux-user nios2-linux-user or1k-linux-user ppc-linux-user ppc64-linux-user ppc64le-linux-user riscv32-linux-user riscv64-linux-user s390x-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc32plus-linux-user sparc64-linux-user x86_64-linux-user xtensa-linux-user xtensaeb-linux-user
default devices: YES
out of process emulation: YES
Block layer support
coroutine backend: ucontext
coroutine pool: YES
Block whitelist (rw):
Block whitelist (ro):
VirtFS support: NO
build virtiofs daemon: NO
Live block migration: YES
replication support: YES
bochs support: YES
cloop support: YES
dmg support: YES
qcow v1 support: YES
vdi support: YES
vvfat support: YES
qed support: YES
parallels support: YES
FUSE exports: NO
Crypto
TLS priority: "NORMAL"
GNUTLS support: NO
libgcrypt: NO
nettle: NO
crypto afalg: NO
rng-none: NO
Linux keyring: YES
Dependencies
SDL support: YES
SDL image support: NO
GTK support: NO
pixman: YES
VTE support: NO
slirp support: internal
libtasn1: NO
PAM: NO
iconv support: YES
curses support: YES
virgl support: NO
curl support: NO
Multipath support: NO
VNC support: YES
VNC SASL support: NO
VNC JPEG support: NO
VNC PNG support: YES
brlapi support: NO
vde support: NO
netmap support: NO
Linux AIO support: NO
Linux io_uring support: NO
ATTR/XATTR support: YES
RDMA support: NO
PVRDMA support: NO
fdt support: internal
libcap-ng support: NO
spice support: NO
rbd support: NO
xfsctl support: NO
smartcard support: NO
U2F support: NO
libusb: NO
usb net redir: NO
OpenGL support: NO
GBM: NO
libiscsi support: NO
libnfs support: NO
seccomp support: NO
GlusterFS support: NO
TPM support: YES
libssh support: NO
lzo support: NO
snappy support: NO
bzip2 support: NO
lzfse support: NO
zstd support: NO
NUMA host support: NO
libxml2: NO
capstone: internal
libpmem support: NO
libdaxctl support: NO
libudev: YES
FUSE lseek: NO
Subprojects
libvhost-user: YES
Found ninja-1.10.0 at /usr/bin/ninja
这里可以看到SDL support: YES
,这说明现在qemu
的配置中是将SDL
开启了,现在尝试编译并安装qemu
。编译并安装命令如下,它的输出由于过于的多,这里就不贴出了。(注:这里耗时比较久,需要耐心等待。
)
imaginemiracle@:build$ make; make install
问题已解决,测试运行
等待安装完成后,尝试运行虚拟机,可以看到虚拟机已经正常启动。
Help
qemu
运行起来可能会找不到鼠标,虽然软件框上有提示,在这里再提示一下。将鼠标从qemu
虚拟机中切换出来的快捷键:Ctrl+Alt+G
更多推荐
所有评论(0)