sigmoid.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A social space for people researching, working with, or just interested in AI!

Server stats:

588
active users

#libvirt

2 posts2 participants0 posts today
Tommaso Gagliardoni<p>And now for something completely different, boring, and technically mundane: I wrote a tutorial (but it's more of a set of personal notes) on the use of QEMU/KVM with libvirt on Linux:</p><p><a href="https://gagliardoni.net/#20250921_qemu" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">gagliardoni.net/#20250921_qemu</span><span class="invisible"></span></a></p><p><a href="https://infosec.exchange/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://infosec.exchange/tags/security" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>security</span></a> <a href="https://infosec.exchange/tags/hacking" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hacking</span></a> <a href="https://infosec.exchange/tags/vm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>vm</span></a> <a href="https://infosec.exchange/tags/virtualization" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>virtualization</span></a> <a href="https://infosec.exchange/tags/qemu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qemu</span></a> <a href="https://infosec.exchange/tags/kvm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>kvm</span></a> <a href="https://infosec.exchange/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a></p>
Kurt Kremitzki<p>Okay, so <a href="https://mastodon.social/tags/VirtManager" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VirtManager</span></a> (a <a href="https://mastodon.social/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> frontend) is now offering both "internal" and "external" snapshots, defaulting to the latter, except apparently you can't then go on to delete those in the UI...? And it creates a foo.snapshot1 in addition to foo.qcow2, except if you delete the former, your VM breaks? Make it make sense</p>
AskUbuntu<p>Nova-compute start but cannot discover_host <a href="https://ubuntu.social/tags/nova" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nova</span></a> <a href="https://ubuntu.social/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a></p><p><a href="https://askubuntu.com/q/1556100/612" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">askubuntu.com/q/1556100/612</span><span class="invisible"></span></a></p>
Ed Maste<p><span class="h-card" translate="no"><a href="https://gyptazy.com/fedi/gyptazy" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>gyptazy</span></a></span> I'm happy for the <a href="https://mastodon.social/tags/FreeBSD" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FreeBSD</span></a> Foundation's collaboration with Alchemilla on the sponsorship of this project, it's coming along very well! The Foundation's also sponsoring improvements to <a href="https://mastodon.social/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a>'s <a href="https://mastodon.social/tags/bhyve" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bhyve</span></a> support to help ensure it's a stable foundation to build on.</p>
Multi Purr Puss :verified:<p><span class="h-card" translate="no"><a href="https://fosstodon.org/@exu" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>exu</span></a></span> For fox' sake, i can't possibly be the 1st guy, who installs <a href="https://layer8.space/tags/Manjaro" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Manjaro</span></a> / <a href="https://layer8.space/tags/KDE" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>KDE</span></a> on <a href="https://layer8.space/tags/btrfs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>btrfs</span></a>!</p><p>How am i getting a FALSE POSITIVE "low storage" warning/notification?!</p><p>I didn't actually run df in order to figure it out - i just got a KDE / <a href="https://layer8.space/tags/Plasma" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Plasma</span></a> notification (well, and the <a href="https://layer8.space/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> VM became unresponsive).</p><p>This seems to be a double-stacker-bullshit-sandwich - i don't even know which component i'm supposed to file a bug report against!</p>
Multi Purr Puss :verified:<p>🧵 2/n i'm quite chuffed with my "Rack", though!</p><p>Most of it is my <a href="https://layer8.space/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://layer8.space/tags/NAS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NAS</span></a>, that <a href="https://layer8.space/tags/HP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HP</span></a> box, running <a href="https://layer8.space/tags/NextCloud" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>NextCloud</span></a> and <a href="https://layer8.space/tags/HomeAssistant" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HomeAssistant</span></a> VMs. (<a href="https://layer8.space/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> <a href="https://layer8.space/tags/VirtManager" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VirtManager</span></a> 🥰)</p><p>All of that, including 2 spinning HDDs, only draws around 47 Watts, ~58-64 when <a href="https://layer8.space/tags/ZFS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ZFS</span></a> scrubs the spinning mirror! 👀 see pic alt txt for details.</p>
Multi Purr Puss :verified:<p>If you're one of those idiots who partitioned their <a href="https://layer8.space/tags/Manjaro" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Manjaro</span></a> / <a href="https://layer8.space/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> wrong enough, you suck at least as hard as i! 😅</p><p>I might be able to resize / move my partitions around. <a href="https://layer8.space/tags/KDEPartitionManager" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>KDEPartitionManager</span></a> / <a href="https://layer8.space/tags/PartedMagic" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PartedMagic</span></a> / <a href="https://layer8.space/tags/Gparted" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Gparted</span></a>.</p><p>I'd have to shrink my <a href="https://layer8.space/tags/btrfs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>btrfs</span></a> SteamLibrary, which doesn't support shrinking - NAS backup+restore via 10GbE.</p><p>but you get to pass-through USB sticks to test VMs 🍻🤣👍 ..pretty neat ..you can plug the stick into other machines, and just boot it</p><p><a href="https://layer8.space/tags/libVirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libVirt</span></a> <a href="https://layer8.space/tags/VirtManager" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VirtManager</span></a> <a href="https://layer8.space/tags/KVM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>KVM</span></a> <a href="https://layer8.space/tags/qemu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qemu</span></a></p>
AskUbuntu<p>libvirt can not find rom file <a href="https://ubuntu.social/tags/virtualization" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>virtualization</span></a> <a href="https://ubuntu.social/tags/qemu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qemu</span></a> <a href="https://ubuntu.social/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a></p><p><a href="https://askubuntu.com/q/1555402/612" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">askubuntu.com/q/1555402/612</span><span class="invisible"></span></a></p>
AskUbuntu<p>Libvirt using the passt networking backend crashes because of AppArmor <a href="https://ubuntu.social/tags/networking" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>networking</span></a> <a href="https://ubuntu.social/tags/virtualization" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>virtualization</span></a> <a href="https://ubuntu.social/tags/apparmor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>apparmor</span></a> <a href="https://ubuntu.social/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a></p><p><a href="https://askubuntu.com/q/1555327/612" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">askubuntu.com/q/1555327/612</span><span class="invisible"></span></a></p>
woodsb02<p><span class="h-card" translate="no"><a href="https://layer8.space/@platymew" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>platymew</span></a></span> I really like the idea of zvols, but I hear they significantly underperform so I am instead using a dedicated zroot/vm/haos dataset with a raw disk0.img file in it. I define it in <a href="https://fosstodon.org/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> with:</p><p>&lt;disk type='file' device='disk'&gt;<br> &lt;driver name='qemu' type='raw'/&gt;<br> &lt;source file='/vm/haos/disk0.img'/&gt;<br> &lt;target dev='vda' bus='virtio'/&gt;<br> &lt;address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/&gt;<br>&lt;/disk&gt;</p>
Phil Baker :fedora: :freebsd:<p>At some point in the past 10 years, <a href="https://tootloop.com/@major" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">tootloop.com/@major</span><span class="invisible"></span></a> 's excellent tutorial about enabling normal users to manage VMs with virsh stopped working on <a href="https://fosstodon.org/tags/Fedora" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Fedora</span></a>. I'm wondering if the move to modularized libvirt a few years back is the reason. I think <a href="https://fosstodon.org/tags/RHEL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RHEL</span></a> 10 is using modularized <a href="https://fosstodon.org/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> now as well. </p><p>Not a big deal for my purposes though, as my VM launch script already requires sudo to modify /etc/hosts <br><a href="https://fosstodon.org/tags/KVM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>KVM</span></a> <a href="https://fosstodon.org/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://fosstodon.org/tags/polkit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>polkit</span></a> <br><a href="https://major.io/p/run-virsh-and-access-libvirt-as-a-regular-user/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">major.io/p/run-virsh-and-acces</span><span class="invisible">s-libvirt-as-a-regular-user/</span></a></p>
Kamalavelan<p>Back to working on my <a href="https://mastodon.xyz/tags/homelab" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>homelab</span></a> after a break. It isn't very apparent or easy to find the cloud images for <a href="https://mastodon.xyz/tags/ubuntu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ubuntu</span></a> or <a href="https://mastodon.xyz/tags/debian" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>debian</span></a> to run <a href="https://mastodon.xyz/tags/VM" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VM</span></a>. I have this setup via <a href="https://mastodon.xyz/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> <a href="https://mastodon.xyz/tags/qemu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qemu</span></a> &amp; <a href="https://mastodon.xyz/tags/cockpit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cockpit</span></a>. Took some time to find the correct permissions on <a href="https://mastodon.xyz/tags/ArchLinux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ArchLinux</span></a> but quite a breeze to use afterwards.</p>
Multi Purr Puss :verified:<p>When your VMs in the "default NAT" network don't get an IP, it's probably the <a href="https://layer8.space/tags/firewall" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>firewall</span></a> on the <a href="https://layer8.space/tags/hypervisor" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hypervisor</span></a>.</p><p>edit: <a href="https://layer8.space/tags/CachyOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CachyOS</span></a> (<a href="https://layer8.space/tags/Arch" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Arch</span></a> btw) doesn't seem to allow forwarding by default - copilot helped getting it fixed, without me learning the wrong thing for hours. 😉</p><p><a href="https://layer8.space/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://layer8.space/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> <a href="https://layer8.space/tags/virtmanager" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>virtmanager</span></a></p>
Areskul<p>Thinking of <a href="https://mastodon.social/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> and <a href="https://mastodon.social/tags/xml" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>xml</span></a> gives me itches 😨</p><p>That's why I've been baking a simpler virtual machine manager with:</p><p>- <a href="https://mastodon.social/tags/Vm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Vm</span></a> declaration in <a href="https://mastodon.social/tags/Toml" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Toml</span></a>,<br>- And easy <a href="https://mastodon.social/tags/network" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>network</span></a> configuration,</p><p>Thanks to <a href="https://mastodon.social/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> and <a href="https://mastodon.social/tags/nixos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>nixos</span></a>, things are getting increasingly smoother... 😇</p>
frdbr 🎥🌳<p>Two interesting projects I'm keeping an eye on:</p><p>✳️ Karton - A Virtual Machine manager being worked on for <a href="https://mastodon.social/tags/gsoc" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gsoc</span></a> by <span class="h-card" translate="no"><a href="https://mastodon.social/@kenoi" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>kenoi</span></a></span> </p><p>✳️ Kretro - A new <a href="https://mastodon.social/tags/libretro" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libretro</span></a> frontend by <span class="h-card" translate="no"><a href="https://social.sineware.ca/@seshpenguin" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>seshpenguin</span></a></span> </p><p><a href="https://mastodon.social/tags/emulation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>emulation</span></a> <a href="https://mastodon.social/tags/retroarch" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>retroarch</span></a> <a href="https://mastodon.social/tags/retrogaming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>retrogaming</span></a> <a href="https://mastodon.social/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> <a href="https://mastodon.social/tags/kde" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>kde</span></a> </p><p><span class="h-card" translate="no"><a href="https://lemmy.kde.social/c/kde" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>kde</span></a></span></p>
postmodern<p>What solutions do Wayland users use for passing keybindings (ex: Alt-Tab) through to a VM being viewed with <code>virt-viewer</code> or <code>remote-viewer</code> in a Wayland WM? X11 had some kind of special hint to tell the WM to pass all keybindings through to the VM's viewer window. Do you just temporarily disable keybindings while viewing a VM? Is it possible to run <code>virt-viewer</code> or <code>remote-viewer</code> in a separate instance of Wayland/wlroots that only displays that windows and passes all keyboard input to it (e.g. the Wayland equivalent of <code>xinit virt-viewer ... -- :1</code>)?</p><p><a href="https://infosec.exchange/tags/virtviewer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>virtviewer</span></a> <a href="https://infosec.exchange/tags/remoteviewer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>remoteviewer</span></a> <a href="https://infosec.exchange/tags/virtmanager" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>virtmanager</span></a> <a href="https://infosec.exchange/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> <a href="https://infosec.exchange/tags/qemu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qemu</span></a> <a href="https://infosec.exchange/tags/wayland" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>wayland</span></a> <a href="https://infosec.exchange/tags/labwc" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>labwc</span></a></p>
postmodern<p>I wonder if it's possible to do "video passthru" (not to be confused with GPU passthru) with libvirt/qemu? Is it possible to send all video data from qemu to an unallocated TTY or possibly an empty X/Wayland session and switch to it using Ctrl+Alt+F8+?</p><p><a href="https://infosec.exchange/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> <a href="https://infosec.exchange/tags/qemu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qemu</span></a> <a href="https://infosec.exchange/tags/kvm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>kvm</span></a></p>
postmodern<p>Decided to switch back to QXL+Spice, but with Spice Listen Type = None, and with CPU pinning, and directly sending audio to pipewire. Seems to have fixed the slow 2d graphics, while maintaining smooth video playback, and eliminated any random intermittent freezes that would crash the viewer.</p><p><a href="https://infosec.exchange/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> <a href="https://infosec.exchange/tags/virtio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>virtio</span></a> <a href="https://infosec.exchange/tags/qxl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qxl</span></a></p>
postmodern<p>I enabled OpenGL acceleration under VirtIO and video playback is smooth, but now other 2d things have suddenly become very slow, such as switching between windows and closing large windows. Is this a known problem? Or do I need a faster GPU or CPU?</p><p><a href="https://infosec.exchange/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> <a href="https://infosec.exchange/tags/virtio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>virtio</span></a> <a href="https://infosec.exchange/tags/virgl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>virgl</span></a> <a href="https://infosec.exchange/tags/virglrenderer" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>virglrenderer</span></a></p>
postmodern<p>Also wtf, why are Virtio Graphics so much slower than QXL Graphics? I was under the impression that Virtio was supposed to have lower overhead.</p><p><a href="https://infosec.exchange/tags/qemu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qemu</span></a> <a href="https://infosec.exchange/tags/virtio" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>virtio</span></a> <a href="https://infosec.exchange/tags/libvirt" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>libvirt</span></a> <a href="https://infosec.exchange/tags/qxl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>qxl</span></a></p>