Gentoo Archives: gentoo-user

From: n952162 <n952162@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] virtualbox in headless configuration broken after update: delayed echo [ RESOLVED, kinda ]
Date: Wed, 17 Jun 2020 05:48:17
Message-Id: 8715d566-6d8c-69ee-aed6-47e054e5b902@web.de
In Reply to: Re: [gentoo-user] virtualbox in headless configuration broken after update: delayed echo [ RESOLVED, kinda ] by "J. Roeleveld"
1 On 06/17/20 06:48, J. Roeleveld wrote:
2 > On Tuesday, June 16, 2020 11:08:23 PM CEST n952162 wrote:
3 >> On 06/16/20 22:36, J. Roeleveld wrote:
4 >>>
5 >>> Are these Virtualbox VMs critical?
6 >>> If yes, I would suggest migrating them to a more reliable virtualisation
7 >>> technology.
8 >>>
9 >>> I do not consider Virtualbox suitable for anything but a desktop based VM
10 >>> method for a quick test or simulation.
11 >>>
12 >>> Gor anything serious, I would suggest Xen, KVM or VMWare.
13 >>>
14 >>> --
15 >>> Joost
16 >> Well, no, they're really not critical, but your comment surprises me.
17 >> I've been using vbox for years, on various assignments, and never
18 >> encountered anything else. Can you say a word or two to that, or
19 >> provide a URL? Which free vm is "the best"?
20 > I never bothered bookmarking URLs about this, but can elaborate on my
21 > reasoning and experience.
22 >
23 > Virtualbox is a nice product and I do use it when it is convenient. It is
24 > perfect for quickly starting a VM to test something. It integrates nicely with
25 > the desktop to be able to quickly copy/paste data across and also easy to
26 > connect to the filesystem on the host.
27 >
28 > This also mentions the reason why it is NOT suitable for actual production
29 > use. It is a virtualisation tool for a desktop.
30 >
31 > If you want your VMs to run as fast and stable as possible, you want the host
32 > to be as minimal as possible. This means:
33 > - it runs headless (no GUI, just text) and the host has only 1 task: Run VMs.
34 > - it doesn't contain anything else (only exception is stuff for monitoring)
35 >
36 > Virtualbox does not (afaik) support block-devices for VMs. It only supports
37 > file-based disks. This is fine as it allows you to "quickly" move these to
38 > different storage. But it adds another layer between the hardware and VM
39 > (filesystem on the host) which adds it's own write-caching and potential
40 > corruption (I have had this on several occasions).
41 >
42 > The virtualisation systems I mentioned in my previous email (Xen, KVM, VMWare)
43 > all support block-devices and sit as close to hardware as is possible. In the
44 > case of VMWare, I am talking about the server product, not the desktop
45 > product. The VMWare desktop product has the same problems as VirtualBox.
46 >
47 > As for which free one is best, I am reluctant to answer specifically as both
48 > Xen and KVM are good.
49 >
50 > Personally, I use Xen. I have been using it since one of the 2.x versions and
51 > KVM didn't exist back then.
52 > Xen has the hypervisor in a small "kernel" and the host runs as a VM with full
53 > privileges. You can add additional privileges VMs to provide storage, further
54 > seperating tasks between VMs.
55 > Citrix also provides a free version of their Xen-product which can be managed
56 > remotely, but their remote-tool is windows-only last time I checked. I run Xen
57 > on top of Gentoo and manage everything from the CLI.
58 >
59 > KVM runs inside a Linux kernel and this instance automatically is the host. (I
60 > don't know enough to properly compare the 2, there are plenty of resources
61 > about comparisons online, most are biased to one or the other)
62 >
63 > Both Xen and KVM can be managed with other tools like virt-manager. I don't as
64 > I don't like the way those tools want to manage the whole environment.
65 >
66 > As for use of these systems, when only looking at companies where I have
67 > experience with:
68 >
69 > - VMWare is often used for virtualising servers
70 > - Xen (Citrix) is often used to provide Virtual Desktop to users
71 > - KVM is used by most VPS providers
72 > - Virtualbox is used for training sessions
73 >
74 > I have not come across MS HyperV outside of small businesses that need some
75 > local VMs. These companies tend to put all their infrastructure with one of
76 > the big cloud-VM providers (Like AWS, Azure, Googles,...)
77 >
78 > --
79 > Joost
80 >
81 >
82
83 Thank you for this excellent survey/summary.  It tells me that vbox is
84 good for my current usages, but I should start exposing myself to Xen as
85 a possible migration path.

Replies