alamahant wrote: Fri Dec 20, 2019 1:56 pm
Virtual machines are really cool.
But VirtualBox isnt so much...
Firstly it is proprietary and secondly it is really horribly slow.
But let us not fret because we do have Qemu/KVM available in Linux.
I love KVM because it is blazing fast(almost @bare-metal speeds) but needs a little bit of effort to get it going.
I've been seeing references to KVM here and there for a while. I looked into it a couple of times, but could not get it working so was stuck using VirtualBox and thinking it was good enough.
Then I saw this post with a quick step-by-step and thought, "Well, why not give it a go?" So I did.
Be warned - the following is anecdotal.
First, this is the host:
Code: Select all
System: Host: <filter> Kernel: 5.6.0-2-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.6.0-2-amd64 root=UUID=<filter> ro quiet
splash
Desktop: KDE Plasma 5.14.5 wm: kwin_x11 dm: SDDM Distro: MX-19.2_KDE_x64 patito feo August 16 2020
base: Debian GNU/Linux 10 (buster)
Machine: Type: Desktop Mobo: ASUSTeK model: PRIME B450-PLUS v: Rev X.0x serial: <filter> UEFI: American Megatrends
v: 2008 date: 12/06/2019
Battery: Device-1: hidpp_battery_0 model: Logitech Marathon Mouse/Performance Plus M705 serial: <filter>
charge: 55% (should be ignored) rechargeable: yes status: Discharging
CPU: Topology: 8-Core model: AMD Ryzen 7 2700 bits: 64 type: MT MCP arch: Zen+ family: 17 (23) model-id: 8
stepping: 2 microcode: 800820D L2 cache: 4096 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 108794
Speed: 1373 MHz min/max: 1550/3400 MHz boost: disabled Core speeds (MHz): 1: 1373 2: 1380 3: 1368 4: 1362
5: 2247 6: 1364 7: 1363 8: 1368 9: 1376 10: 1369 11: 2223 12: 1373 13: 1371 14: 1367 15: 1377 16: 1464
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics: Device-1: NVIDIA GF106 [GeForce GTS 450] driver: nvidia v: 390.138 bus ID: 08:00.0 chip ID: 10de:0dc4
Display: x11 server: X.Org 1.20.4 driver: nvidia unloaded: fbdev,modesetting,nouveau,vesa alternate: nv
compositor: kwin_x11 resolution: 1600x1200~60Hz, 1600x1200~60Hz
OpenGL: renderer: GeForce GTS 450/PCIe/SSE2 v: 4.6.0 NVIDIA 390.138 direct render: Yes
Audio: Device-1: NVIDIA GF106 High Definition Audio driver: snd_hda_intel v: kernel bus ID: 08:00.1
chip ID: 10de:0be9
Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel
bus ID: 0a:00.3 chip ID: 1022:1457
Sound Server: ALSA v: k5.6.0-2-amd64
Network: Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASUSTeK driver: r8169 v: kernel
port: f000 bus ID: 03:00.0 chip ID: 10ec:8168
IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
IF-ID-1: br0 state: up speed: 100 Mbps duplex: unknown mac: <filter>
IF-ID-2: virbr0 state: down mac: <filter>
IF-ID-3: virbr0-nic state: down mac: <filter>
Drives: Local Storage: total: 447.13 GiB used: 32.46 GiB (7.3%)
ID-1: /dev/sda vendor: PNY model: CS900 480GB SSD size: 447.13 GiB block size: physical: 512 B
logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: 06B3 scheme: GPT
Partition: ID-1: / raw size: 30.00 GiB size: 29.40 GiB (98.01%) used: 8.75 GiB (29.8%) fs: ext4 dev: /dev/sda3
ID-2: /home raw size: 412.88 GiB size: 405.40 GiB (98.19%) used: 23.30 GiB (5.7%) fs: ext4 dev: /dev/sda4
ID-3: swap-1 size: 4.00 GiB used: 0 KiB (0.0%) fs: swap swappiness: 15 (default 60)
cache pressure: 100 (default) dev: /dev/sda2
Sensors: System Temperatures: cpu: 30.8 C mobo: N/A gpu: nvidia temp: 41 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 30%
Repos: No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ buster main
Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
1: deb http://deb.debian.org/debian buster-updates main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/debian.list
1: deb http://deb.debian.org/debian buster main contrib non-free
2: deb http://deb.debian.org/debian-security buster/updates main contrib non-free
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb https://mirror.vcu.edu/pub/gnu_linux/mxlinux/mx/repo/ buster main non-free
2: deb https://mirror.vcu.edu/pub/gnu_linux/mxlinux/mx/repo/ buster ahs
No active apt repos in: /etc/apt/sources.list.d/various.list
Info: Processes: 327 Uptime: 23m Memory: 15.64 GiB used: 1.51 GiB (9.7%) Init: SysVinit v: 2.93 runlevel: 5
default: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: quick-system-in running in: quick-system-in inxi: 3.0.36
As you can see, it's no slouch.
So, I go through the steps outlines in the OP and, wonder of wonders, I get it working. This is a testament to the fact that the OP was written such that I could understand it and says very little about my skills - of which there are few.
One thing that I did find missing from the guide was in the list of packages needed to be installed. Turns out I had to install qemu-utils. Don't know why, just that I got an error message when I attempted to boot a guest, the error message indicating that this was missing. Installed that package and things went much better after that.
TL;DR
I created a KVM guest using the latesteed SolydK .iso (wanting something similar to MX Linux KDE, but different) and did a few simple tests. The most telling of which was to load and play a YouTube video. All kinds of screen tearing, video and audio stutter - making it almost unwatchable.
Then, I installed the VirtualBox packages from the MX Package Installer (the Test repo) and created a VB guest using the same .iso. Then ran the same tests. The YouTub video ran well, very little stutter of either the video or the audio. Quite nice.
This, of course, doesn't address one of the OP's concerns - the fact that VirtualBox is no FOSS.
Finally - I understand that not every problem is a nail and that commonly one needs to acquire a different tool to handle a situation. Additionally, there's every good chance that I did something not quite right. In that spirit, I would love to learn how to make the KVM experience better.