当我qemu-system_x86_64使用-vga qxl/-device qxl-vga或-vga virtio/运行时-device virtio-vga,来宾没有可见的光标。鼠标可以工作,当我将鼠标悬停在项目上时,项目会突出显示,但我实际上看不到光标。使用标准 VGA 一切都按预期工作。
我在 macOS 10.15.3 上使用 QEMU 4.2.94。
\n对于客人,我尝试了 Alpine 和 Zorin OS Core。
\n这就是我正在运行的:
\nqemu-system-x86_64 -m 2048 \\ \n -hda "path/to/my/vm/image" \\\n -accel hvf \\\n -device virtio-vga,xres=1280,yres=800\nRun Code Online (Sandbox Code Playgroud)\n编辑: \n我发现问题是使用的图形驱动程序qxl支持硬件光标,但cocoa显示器不\xe2\x80\x99t支持它。现在我\xe2\x80\x99已经启用了软件光标(有关详细信息,请参阅此线程)。
有没有办法为 QEMU\xe2\x80\x99scocoa显示添加硬件光标支持?
对于任何有兴趣的人,我都是这样启用软件光标的:
\n/etc/X11/xorg.conf.d如果 \xe2\x80\x99 不存在,则创建该目录。
创建一个以(我命名为我的)xorg.conf.d结尾的文件:.confvesa-swcursor.conf
Section "Device"\n …Run Code Online (Sandbox Code Playgroud)使用时在路径中输入错误后cp,我似乎不小心将文件夹递归复制到自身中,现在我无法使用rm -rf或 Mac OS X 中的垃圾箱删除该文件夹Finder。该文件位于启动(因此为 HFS+J)磁盘上。
的输出rm -rf只是Directory not empty重复,如下所示:
rm: o/old/old/old/old/old/old/old/old: Directory not empty
rm: o/old/old/old/old/old/old/old: Directory not empty
rm: o/old/old/old/old/old/old: Directory not empty
rm: o/old/old/old/old/old: Directory not empty
rm: o/old/old/old/old: Directory not empty
rm: o/old/old/old: Directory not empty
rm: o/old/old: Directory not empty
rm: o/old: Directory not empty
rm: o: Directory not empty
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能删除这个文件夹?
如您所见,我尝试重命名第一个文件夹以缩短文件路径。该文件夹移入Trash罚款,但由于以下警报对话框而不会删除:
The operation can’t be completed because the item is in …Run Code Online (Sandbox Code Playgroud) 在我的 Mac 上,由于文件权限不正确,我无法使用 git(以及 Heroku)。root 用户可以很好地访问它们,但我的用户不能,尽管我拥有它并且它在我的主目录中。
$ ls -al
Run Code Online (Sandbox Code Playgroud)
显示我拥有该文件并且只有读写权限:
drw------- 7 george staff 238 27 Aug 16:53 .ssh
Run Code Online (Sandbox Code Playgroud)
虽然没有 ACL。
然而:
$ chmod -R 0600 /Users/george/.ssh
chmod: /Users/george/.ssh/github_rsa: Permission denied
chmod: /Users/george/.ssh/github_rsa.pub: Permission denied
chmod: /Users/george/.ssh/id_rsa: Permission denied
chmod: /Users/george/.ssh/id_rsa.pub: Permission denied
chmod: /Users/george/.ssh/known_hosts: Permission denied
chmod: /Users/george/.ssh: Permission denied
Run Code Online (Sandbox Code Playgroud)
我已经尝试了我能想到的所有方法chown,chmod以及chmod -N(删除任何 ACL)。但是我仍然无法读取或写入它们,也无法使用 git。
欢迎任何解决方案!