Gentoo Archives: gentoo-user

From: Grant Taylor <gtaylor@×××××××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] installing virtual machine under gentoo
Date: Fri, 31 Dec 2021 17:50:41
Message-Id: 5520dcd1-a58b-3268-bbdd-48bbfd1e2c6a@spamtrap.tnetconsulting.net
In Reply to: Re: [gentoo-user] installing virtual machine under gentoo by Rich Freeman
1 On 12/31/21 8:12 AM, Rich Freeman wrote:
2 > ++
3
4 +++ to KVM / libvirt / VirtManager (GUI)
5
6 > This is just a front-end to libvirt and kvm, so you're building
7 > entirely on solid technologies, and anything you set up with the
8 > GUI can be edited or run or otherwise managed from the command line,
9 > and vice-versa.
10
11 Close, but not quite.
12
13 Yes, anything that can be done in the GUI can be done at the CLI /
14 config files.
15
16 Though I have had some more essoteric things that had to be done at the
17 CLI / config files that couldn't be done in the GUI. This usually has
18 to do with more advanced things like iSCSI, Fibre Channel, ZFS pools /
19 dataset per guest, etc.
20
21 The vast majority of the things that someone starting with KVM will want
22 to do can be done with the Virtual Machine Manager GUI.
23
24 > It ends up resembling something like VirtualBox or the old VMWare
25 > Workstation edition, but it is all FOSS and in-kernel so it just is
26 > more reliable/etc.
27
28 Yep. There are only so many ways that you can present a concept;
29 inventory of VMs, VM console, VM management. They start to look similar
30 after a while.
31
32 > That said, I only use VMs situationally and at this point just
33 > about everything I'm doing is in containers if it can be linux-based.
34 > Way lighter all-around, even if I'm running a full OS in the container.
35 > I personally prefer to run my containers with nspawn and virtual
36 > ethernet, so each container gets its own IP via DHCP.
37
38 The Virtual Machine Manager GUI can also administer / manage some
39 aspects of containers.
40
41 I would highly suggest giving Virtual Machine Manager GUI for
42 KVM+libvert+qemu a try. It is probably the quintessential Linux
43 virtualization method.
44
45 > Oh, and for kvm if you want to run your guests on your main LAN you'll
46 > probably need to set up a bridge interface.
47
48 Yes, bridging is very nice and is my preferred way for most VM use
49 cases. Though it might be a bit more than someone wants to tackle while
50 getting their feet wet with virtualization. Especially if you're trying
51 to share a single NIC for other aspects of the hosting system. It can
52 all be done, but there is a lot of minutia (methods and configurations
53 therein) that are easy to get lost in. I'd probably recommend a second
54 NIC, even if it's an inexpensive USB NIC just for the virtualization.
55 Doing that will avoid complexities that don't need to be dealt with
56 /now/. -- Reduce the number of variables that you're working with at
57 one time.
58
59
60
61 --
62 Grant. . . .
63 unix || die

Replies

Subject Author
Re: [gentoo-user] installing virtual machine under gentoo John Covici <covici@××××××××××.com>