[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-hackers
Subject: Re: How to use Virtio GPU on FreeBSD as guest OS.
From: Mario Marietto <marietto2008 () gmail ! com>
Date: 2024-05-02 8:13:56
Message-ID: CA+1FSih_QedR=HXpmwdWNCKfCVpBFOPqNOKogM1YwHttnB1KNQ () mail ! gmail ! com
[Download RAW message or body]
What I find strange is that this configuration works on Windows 11 to
virtualize FreeBSD using -device vmware-svga :
I:\OS\vms\qemu\qemu-system-x86_64w.exe -accel whpx -machine q35 -cpu
kvm64,hv_relaxed,hv_time,hv_synic -m 8G -device
vmware-svga,id=video0,vgamem_mb=16,bus=pcie.0,addr=0x1 -audiodev
dsound,id=snd0 -device ich9-intel-hda -device hda-duplex,audiodev=snd0 -hda
"I:\Backup\FreeBSD\FreeBSD-140-zfs.img" -device hda-duplex,audiodev=snd0
-drive file=\\.\PhysicalDrive4 -drive file=\\.\PhysicalDrive5 -drive
file=\\.\PhysicalDrive6 -drive file=\\.\PhysicalDrive8 -drive
file=\\.\PhysicalDrive12 -rtc base=localtime -device
usb-ehci,id=usb,bus=pcie.0,addr=0x3 -device usb-tablet -device usb-kbd
-smbios type=2 -nodefaults -netdev
tap,id=mynet0,ifname="OpenVPN-TAP-Windows",script=no,downscript=no -device
e1000,netdev=mynet0,mac=52:55:00:d1:55:01 -device ich9-ahci,id=sata -bios
"I:\OS\vms\qemu\OVMF_combined.fd"
One can think that it will work even on Linux for the same setup (qemu +
hyper-V on Windows 11),but it does not. I'm experiencing a lot of problems
when I add -accel whpx on a Debian VM. These problems go away if I remove
it.
Adding " -device vmware-svga,id=video0,vgamem_mb=16,bus=pcie.0,addr=0x1" to
the qemu / Debian parameters will cause it won't boot. So,this :
I:\OS\vms>I:\OS\vms\qemu\qemu-system-x86_64.exe -machine q35 -cpu
kvm64,hv_relaxed,hv_time,hv_synic -m 8G -device
vmware-svga,id=video0,vgamem_mb=16,bus=pcie.0,addr=0x1 -audiodev
dsound,id=snd0 -device ich9-intel-hda -device hda-duplex,audiodev=snd0 -hda
"I:\Backup\Linux\Debian.img" -drive file=\\.\PhysicalDrive5 -drive
file=\\.\PhysicalDrive6 -drive file=\\.\PhysicalDrive8 -rtc base=localtime
-device usb-ehci,id=usb,bus=pcie.0,addr=0x3 -device usb-tablet -device
usb-kbd -smbios type=2 -nodefaults -netdev user,id=net0 -device
e1000,netdev=net0,id=net0,mac=52:54:00:11:22:33 -device ich9-ahci,id=sata
-bios "I:\OS\vms\qemu\OVMF_combined.fd"
will cause the Debian VM to freeze before reaching the login prompt. I
don't know if Linux has the proper vmware-svga driver,I didn't find it.
Regarding virtualizing Windows 7 on Windows 11 using the same setup,I can't
add -accel whpx and most importantly,what I care more, the -device
vmware-svga does not work. So,in this kind of setup,
*FreeBSD is the winner because it supports everything (hyper-V and the
vmware-svga 3D accelerated device.*
On Sat, Apr 27, 2024 at 9:41 PM Yusuf Khan <yusisamerican@gmail.com> wrote:
> So your issue is that the performance is worse than Linux?
>
> There is no 3d graphics driver for virtio in mainline drm-kmod but
> https://github.com/freebsd/drm-kmod/pull/119 has
> experimental support, although that PR exists it seems to be
> non-functional with a crash.
>
--
Mario.
[Attachment #3 (text/html)]
<div dir="ltr">
<div class="gmail-h7 gmail-bg" role="listitem" aria-expanded="true" \
tabindex="-1"><div class="gmail-Bk"><div class="gmail-G3 gmail-G2"><div><div \
id="gmail-:1hj"><div><div class="gmail-adn gmail-ads"><div class="gmail-gs"><div \
class="gmail-"><div id="gmail-:1im" class="gmail-ii gmail-gt"><div id="gmail-:1il" \
class="gmail-a3s gmail-aiL"><div dir="ltr"><div>What I find strange is that this \
configuration works on Windows 11 to virtualize FreeBSD using
-device vmware-svga :<br></div><div><br></div><div>I:\OS\vms\qemu\qemu-system-x86_64w.exe \
-accel whpx -machine q35 -cpu kvm64,hv_relaxed,hv_time,hv_synic -m 8G -device \
vmware-svga,id=video0,vgamem_mb=16,bus=pcie.0,addr=0x1
-audiodev dsound,id=snd0 -device ich9-intel-hda -device
hda-duplex,audiodev=snd0 -hda "I:\Backup\FreeBSD\FreeBSD-140-zfs.img"
-device hda-duplex,audiodev=snd0 -drive file=\\.\PhysicalDrive4 -drive
file=\\.\PhysicalDrive5 -drive file=\\.\PhysicalDrive6 -drive
file=\\.\PhysicalDrive8 -drive file=\\.\PhysicalDrive12 -rtc
base=localtime -device usb-ehci,id=usb,bus=pcie.0,addr=0x3 -device usb-tablet -device \
usb-kbd -smbios type=2 -nodefaults -netdev \
tap,id=mynet0,ifname="OpenVPN-TAP-Windows",script=no,downscript=no -device \
e1000,netdev=mynet0,mac=52:55:00:d1:55:01 -device ich9-ahci,id=sata -bios \
"I:\OS\vms\qemu\OVMF_combined.fd"</div><div><br></div><div>One can think \
that it will work even on Linux for the same setup (qemu + hyper-V on Windows \
11),but it does not. I'm experiencing a lot of problems when I add -accel whpx \
on a Debian VM. These problems go away if I remove it. \
<br></div><div><br></div><div> <div>Adding "
-device vmware-svga,id=video0,vgamem_mb=16,bus=pcie.0,addr=0x1" to the qemu / \
Debian parameters will cause it won't boot. So,this \
:</div><div><br></div><div><br></div><div>I:\OS\vms>I:\OS\vms\qemu\qemu-system-x86_64.exe \
-machine q35 -cpu kvm64,hv_relaxed,hv_time,hv_synic -m 8G -device \
vmware-svga,id=video0,vgamem_mb=16,bus=pcie.0,addr=0x1
-audiodev dsound,id=snd0 -device ich9-intel-hda -device
hda-duplex,audiodev=snd0 -hda "I:\Backup\Linux\Debian.img" -drive
file=\\.\PhysicalDrive5 -drive file=\\.\PhysicalDrive6 -drive
file=\\.\PhysicalDrive8 -rtc base=localtime -device
usb-ehci,id=usb,bus=pcie.0,addr=0x3 -device usb-tablet -device
usb-kbd -smbios type=2 -nodefaults -netdev user,id=net0 -device
e1000,netdev=net0,id=net0,mac=52:54:00:11:22:33 -device ich9-ahci,id=sata -bios \
"I:\OS\vms\qemu\OVMF_combined.fd"</div><div><br></div><div><br></div><div></div><div>will
cause the Debian VM to freeze before reaching the login prompt. I
don't know if Linux has the proper vmware-svga driver,I didn't find \
it.</div><div><br></div>
</div><div>Regarding virtualizing Windows
7 on Windows 11 using the same setup,I can't add -accel whpx and most
importantly,what I care more, the
-device vmware-svga does not work. So,in this kind of setup,<b>FreeBSD is
the winner because it supports everything (hyper-V and the vmware-svga 3D accelerated \
device.<br></b></div></div></div></div></div></div></div></div></div></div></div></div></div><table \
cellpadding="0" class="gmail-cf gmail-gJ"><tbody><tr class="gmail-acZ"><td \
class="gmail-gH"><br></td><td class="gmail-gH gmail-acX gmail-bAm" \
rowspan="2"></td></tr></tbody></table><table cellpadding="0" class="gmail-cf \
gmail-gJ"><tbody><tr class="gmail-acZ gmail-xD"><td colspan="3"><table \
cellpadding="0" class="gmail-cf gmail-adz"><tbody><tr><td \
class="gmail-ady"></td></tr></tbody></table></td></tr></tbody></table></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 27, 2024 at \
9:41 PM Yusuf Khan <<a \
href="mailto:yusisamerican@gmail.com">yusisamerican@gmail.com</a>> \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">So your issue is that \
the performance is worse than Linux?<br> <br>
There is no 3d graphics driver for virtio in mainline drm-kmod but<br>
<a href="https://github.com/freebsd/drm-kmod/pull/119" rel="noreferrer" \
target="_blank">https://github.com/freebsd/drm-kmod/pull/119</a> has<br> experimental \
support, although that PR exists it seems to be<br> non-functional with a crash.<br>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- \
</span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic