LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Virtualization host (https://www.linuxquestions.org/questions/slackware-14/virtualization-host-4175655724/)

petejc 06-14-2019 03:49 PM

Virtualization host
 
What do people use as a host for virtulisation? I've run qemu-kvm under slackware 14.2 with some success, but any guest with a DM heavier than XCFE is a no go and I have failed miserably to pass through the GPU on this machine. At the moment the I'm having trouble with the video not getting through. Not sure whether this is slackware, the 5.1.8 kernel I;ve installed or something else.

I'm going to use my old machine as a host as I don't want this machine messed up again. Any thoughts on what would be painless as a host?

Slackware 14.2 with stock kernel?
Slackware-current with stock kernel?
Debian
Arch

or:
Proxmox
xcp-ng

I'm just wondering what other people do for relatively pain free virtualization?

sevendogsbsd 06-14-2019 04:01 PM

I run Virtualbox on FreeBSD as a host with multiple guests. The only guest with a "desktop" is BlackArch though: the other guests I run are hackable VMs, most of which are headless. I don't run a desktop of any sort except for BlackArch and that uses Fluxbox so performance is fast virtualized or not.

Sorry, not sure that is helpful...

upnort 06-14-2019 04:47 PM

I use VirtualBox at home and Proxmox at work. Either way, use a system with a reasonable CPU that supports virtualization extensions. My home system is a 4-core i4-6400. No problems running VMs. At work the Proxmox systems are dual socket, multi-core Xeons. No problems running VMs. :) I do not tinker with GPU pass-through on either platform.

I use an Ubuntu MATE desktop VM at home to remote into work. No issues at all. For example, today I spent 8 hours straight cranking and testing.

Long on my bucket list is learning KVM and virt-manager and moving away from VirtualBox. Some day....

Quote:

Any thoughts on what would be painless as a host?
Define painless. :) For several years I grunted with a dual core AM2. I could run most VMs okay, but when I finally got the i5-6400 I saw a world of difference. I do not want to return to a dual core system to run VMs.

rkelsen 06-14-2019 05:16 PM

Virtualization host
 
+1 more for Virtualbox. I use it on my work machine without issues.

Gerard Lally 06-14-2019 07:15 PM

Quote:

Originally Posted by petejc (Post 6005370)
What do people use as a host for virtulisation? I've run qemu-kvm under slackware 14.2 with some success, but any guest with a DM heavier than XCFE is a no go and I have failed miserably to pass through the GPU on this machine. At the moment the I'm having trouble with the video not getting through. Not sure whether this is slackware, the 5.1.8 kernel I;ve installed or something else.

I'm going to use my old machine as a host as I don't want this machine messed up again. Any thoughts on what would be painless as a host?

Slackware 14.2 with stock kernel?
Slackware-current with stock kernel?
Debian
Arch

or:
Proxmox
xcp-ng

I'm just wondering what other people do for relatively pain free virtualization?

By far the best virtualisation host for me was Xen and NetBSD 6. It was the cleanest, tidiest, lightest system ever. I had a Slackware domU (guest) which I could run on bare metal or as a domU. Blazing fast system, and the dom0 (controlling domain) used barely any resources. Love the isolation that Xen imposes. I've also had a Slackware KVM host running for years but I much prefer a Type 1 hypervisor.

I had trouble getting Xen working with NetBSD 7, mainly because the NetBSD team are only now catching up with Linux on the graphics front. I'm hoping to get back to Xen when NetBSD 9 is released, although I am keeping an eye on nvmm as well, NetBSD's new virtual machine monitor.

I'm happy to use Slackware as a guest system but getting a Xen+Slackware host working was painful. Then again I had a new board and I was unfamiliar with UEFI and grub at the time, so mea culpa in some ways. I was trying to boot the Xen dom0 from raid-1 with LVM and just couldn't get it going.

As far as PCI and graphics passthru is concerned, I had these working smoothly with NetBSD 6 and Xen, but not with 7. It was ridiculously simple getting it all to work, while anything similar in Linux with KVM is ridiculously complex.

Take a look at FreeBSD, Alpine or OpenSUSE for a Xen host. OpenSUSE documentation is very good. Graphics passthru should work on a Linux Xen host. Just use the xl commands and plain config files for creating your domUs; don't bother with the byzantine mess that is virt-manager and libvirt. If Linux can make something more complicated than it needs to be they will surely do so.

edit -- So far nvmm is for AMD CPUs only; NetBSD also has HAXM which works for Intel CPUs.

Richard Cranium 06-14-2019 08:29 PM

Quote:

Originally Posted by petejc (Post 6005370)
What do people use as a host for virtulisation? I've run qemu-kvm under slackware 14.2 with some success, but any guest with a DM heavier than XCFE is a no go and I have failed miserably to pass through the GPU on this machine. At the moment the I'm having trouble with the video not getting through. Not sure whether this is slackware, the 5.1.8 kernel I;ve installed or something else.

I'm going to use my old machine as a host as I don't want this machine messed up again. Any thoughts on what would be painless as a host?

Slackware 14.2 with stock kernel?
Slackware-current with stock kernel?
Debian
Arch

or:
Proxmox
xcp-ng

I'm just wondering what other people do for relatively pain free virtualization?

Slackware64 host (I have used an AMD Phenom(tm) II X6 1100T w/16G RAM, but am now using an AMD FX(tm)-8350 Eight-Core w/32G RAM) and virt-manager (available from Slackbuilds.org). Stock kernel.

Make sure that you use the virtio video driver.

rkelsen 06-14-2019 11:16 PM

For a "bare metal" hypervisor, I've had great success with VMware ESXi. It ran without interruption, and with daily use for years at a time on a box I was once in charge of administering.

solarfields 06-15-2019 03:39 AM

I've been using VirtualBox, installed from the all distributions *.run installer. I still use the latest of the 5.* series, because I had problems with the mouse cursor with the 6.* release and other issues. The Kernel 4.4.172 issue has been fixed in the latest 5.* releases, too.

Hardware-wise, I had been using an FX4100 for a very long time, however last year I did a 'budget upgrade' to FX8350 with 16GB RAM.

Gerard Lally 06-15-2019 04:34 AM

Quote:

Originally Posted by solarfields (Post 6005516)
I've been using VirtualBox, installed from the all distributions *.run installer. I still use the latest of the 5.* series, because I had problems with the mouse cursor with the 6.* release and other issues.

I solved the cursor problem by switching from the default VMSVGA display adapter to the VBoxSVGA adapter.

Gerard Lally 06-15-2019 04:38 AM

Quote:

Originally Posted by rkelsen (Post 6005470)
For a "bare metal" hypervisor, I've had great success with VMware ESXi.

Does it allow you to pass a video adapter through to a guest, which is one of OP's requirements? And what kind of console does it have - local (SDL) or just remote?

petejc 06-15-2019 05:00 AM

Quote:

Originally Posted by sevendogsbsd (Post 6005373)
I run Virtualbox on FreeBSD as a host with multiple guests. The only guest with a "desktop" is BlackArch though: the other guests I run are hackable VMs, most of which are headless. I don't run a desktop of any sort except for BlackArch and that uses Fluxbox so performance is fast virtualized or not.

Sorry, not sure that is helpful...

I'd not even thought of FreeBSD, thanks. I'm considering this for desktop only, as I'm quite happy, headless, with Slackware in LXC containers. Blackbox, that ought ot be fast on a 486. A bit too stripped down for me!

petejc 06-15-2019 05:17 AM

Quote:

Originally Posted by upnort (Post 6005383)
I use VirtualBox at home and Proxmox at work. Either way, use a system with a reasonable CPU that supports virtualization extensions. My home system is a 4-core i4-6400. No problems running VMs. At work the Proxmox systems are dual socket, multi-core Xeons. No problems running VMs. :) I do not tinker with GPU pass-through on either platform.

I use an Ubuntu MATE desktop VM at home to remote into work. No issues at all. For example, today I spent 8 hours straight cranking and testing.

Long on my bucket list is learning KVM and virt-manager and moving away from VirtualBox. Some day....


Define painless. :) For several years I grunted with a dual core AM2. I could run most VMs okay, but when I finally got the i5-6400 I saw a world of difference. I do not want to return to a dual core system to run VMs.

I specced my main machine for virtualization, Ryzen 2700X, and a motherboard that was good for IOMMUs, but when I tried it at Christmas I just could not get it to do what I wanted and in the frequent hangs and reboots bricked my root filesystem. That means I will leave that system alone and go back to my old system with he six core Phenom II. On the new system, with Virtualbox, I could finally get the graphics to work without unacceptable lag, provided I was using a lightweight desktop environment. However, on the old system I never could, though I have put in a newer (not new) GPU and it does not matter much if I hose that system. Unfortunately though I've had bad luck so far with virtualization, fragile configs, laggy graphics, inability to share parts of the host file system etc.

I'm ssh-ing into slackware current with X forwarding. But for some reason Firefox graphics do not like that, and I'd like not to be restricted, so I'm thinking again of the virtualisation option.

petejc 06-15-2019 05:19 AM

Quote:

Originally Posted by rkelsen (Post 6005388)
+1 more for Virtualbox. I use it on my work machine without issues.

Host system?

rkelsen 06-15-2019 08:23 AM

Quote:

Originally Posted by petejc (Post 6005543)
Quote:

Originally Posted by rkelsen (Post 6005388)
+1 more for Virtualbox. I use it on my work machine without issues.

Host system?

Slackware-current from some time around June last year, running on an i7 with 32gb ram.

Richard Cranium 06-15-2019 06:45 PM

Quote:

Originally Posted by petejc (Post 6005542)
I specced my main machine for virtualization, Ryzen 2700X, and a motherboard that was good for IOMMUs, but when I tried it at Christmas I just could not get it to do what I wanted and in the frequent hangs and reboots bricked my root filesystem. That means I will leave that system alone and go back to my old system with he six core Phenom II. On the new system, with Virtualbox, I could finally get the graphics to work without unacceptable lag, provided I was using a lightweight desktop environment. However, on the old system I never could, though I have put in a newer (not new) GPU and it does not matter much if I hose that system. Unfortunately though I've had bad luck so far with virtualization, fragile configs, laggy graphics, inability to share parts of the host file system etc.

I'm ssh-ing into slackware current with X forwarding. But for some reason Firefox graphics do not like that, and I'd like not to be restricted, so I'm thinking again of the virtualisation option.

FWIW, I was running KDE on the system I mentioned earlier. Youtube appeared to run fine in Firefox but I did not attempt to listen to sound from the VM.

petejc 06-16-2019 08:17 AM

Quote:

Originally Posted by Gerard Lally (Post 6005412)
...
Take a look at FreeBSD, Alpine or OpenSUSE for a Xen host. OpenSUSE documentation is very good. Graphics passthru should work on a Linux Xen host. Just use the xl commands and plain config files for creating your domUs; don't bother with the byzantine mess that is virt-manager and libvirt. If Linux can make something more complicated than it needs to be they will surely do so.
...

Thanks. Some good run-throughs looking around. I'd probally not go the FeeBSD route as I'm wandering too far from linux - but, it should not be that different. Some good articles out there.

petejc 06-16-2019 08:18 AM

Quote:

Originally Posted by rkelsen (Post 6005586)
Slackware-current from some time around June last year, running on an i7 with 32gb ram.

Thanks. Perhaps a clean -current install will work well, as the install on _this_ machine is more than a little complex.

petejc 06-16-2019 08:23 AM

Thanks all. It looks like there are some good options.
NetBSD/Alipne/OpenSUSE + Xen for one way.
VirtualBox as the other - if I try this on Slackware I'll do it on a clean(ish) install.

I'll likely give both a go.

From looking on the web at xcp-ng and Proxmox these look interesting but are more aimed at servers. Intesting for later but I'll not go that route right now.

Thanks,

Pete

gaitos 06-18-2019 04:41 PM

I'm somewhat behind the times - for me, server-side is Slackware 14.1 running Xen 4.5.1 (from SlackBuilds). This is at work but at a very small company. I installed it in 2015 and since then I only switched the host machine once (but kept the same software configuration). It runs 5 domU instances (4 Slackware 14.1 and 1 Windows 7). On occasion I start a NetBSD or another Windows instance for different needs/experiments.

All regular domU instances are using partitions on a RAID1 array - I think it gives better performance than regular files; I don't have guest (storage) snapshots, but I have good enough backups.

My main reason was that it's free and feels "light" on resources. It also feels simpler/better documented than other options. I like its configuration files and it fits quite well with Slackware.

I should move to newer versions (both Xen and Slackware) but all the virtualized machines are in my administration so I don't worry too much about security issues regarding guest-host interactions (and of course, time is always lacking). The main reason for virtualization was energy savings (power/cooling). It's easier to cool one big..-ish computer than it was to power and cool 5. Not to mention less hardware issues. The only server still on bare metal is the company fileserver (also Slackware 14.1/Samba). The performance for those under Xen feels ok, but there aren't heavy loads involved.

Side-note: The Windows 7 installation functions as license server for an accounting package. This required qemu which takes around 15% of CPU on dom0 by itself, despite the guest not doing much.

Another thing I like about XEN was that it helps with maintenance - in fact I did a somewhat unorthodox move of all guests from one host to another using drbd (shared storage) at one point; this still resulted in 1-2 minutes of downtime because in testing I couldn't get it to move running guests reliably between hosts. Shutting down the guests on one host and starting them up on the other worked fine, though.

Aeterna 06-19-2019 10:31 AM

my system (laptop):
i7-4810MQ
RAM 32GB
2xSSD (Samsung)
video hybrid with host intel video in use
host OS Slackware-current with latest kernels (just for fun, does not matter for VM)
VM VirtualBox 5.x (from Oracle site - just works better)
tested VirtualBox 6.x but disk access performance below 5.x
current guests:
Slackware-current (for safe testing upgrades)
OpenIndiana
MX Linux (some software accesibility)
Funtoo (getting rid of this - too much problems with updates)
FreeBSD (my first personal OS since mid 90')
Windows 8.1 (photo editing software)

all work well: sound is available and works with youtube/music (no stuttering), youtube/movies visible sound delay
video no issues

hope this will help


All times are GMT -5. The time now is 04:31 PM.