/srv/irclogs.ubuntu.com/2021/01/28/#ubuntu-server.txt

=== jancoow3 is now known as jancoow
=== halvors1 is now known as halvors
=== philroche_ is now known as philroche
=== DArqueBish0p is now known as DArqueBishop
lordievaderGood morning07:14
=== denningsrogue1 is now known as denningsrogue
de-factowhat would be the best solution for snapshots in a server? BTRFS or is there some better way?10:35
tomreynzfs, lvm10:37
julianktomreyn: lvm snapshots are scary :D10:58
juliank- Classic lvm snapshots just get trashed once you write more than their size10:58
juliank- thin volume snapshotting is cooler, but it might just trash your fs eventually if you run out of space in the thinpool10:58
juliankYou gotta be super careful and attentive with these things10:59
tomreynyes, but it can be done11:00
v0lksmandid something change with cron on 20.04 and the ability to set env vars? I have a cron that I run daily and it doesn't even seem to be firing after an upgrade to a 20.04 server14:14
v0lksmanI see a RELOAD action in syslog when the cron is supposed to fire but never the CMD entry I see for successful runs14:15
MIFwhat is a good VM for ubuntu server?14:15
MIFI need kinda a "test" zone14:15
RoyKa good vm? or a good hypervisor?14:16
MIFwhat is the difference14:17
RoyKa VM is a virtual machine, a hypervisor is something that runs on a physical machine upon which virtual machines run14:18
MIFI have my server already set up and in production, I just need a space to play around with stuff that "could" mess things up14:19
MIFso I think a VM is what I am looking for14:20
sdezielMIF: lxd would let you create containers and VMs at will which is perfect for testing, see https://linuxcontainers.org/lxd/getting-started-cli/14:22
DArqueBishopMIF: there are numerous different supported hypervisors. Are you planning on running the VM on your desktop or on a server?14:29
MIFserver14:29
DArqueBishopOn its own dedicated server?14:30
MIFyes14:31
DArqueBishopI'd suggest something like Proxmox. Proxmox VE can be run for free and it's a dedicated hypervisor OS.14:32
MIFit is looking like lxd is working14:32
RoyKMIF: kvm/libvirt is my choice - 100% separation14:33
RoyKisn't proxmox commercial?14:33
RoyKkvm/libvirt comes with ubuntu and just works14:34
sdezielMIF: you can also have lxd running on your server and configure your client (laptop) to interact with this remote lxd server. This gives you easy access to the server's horsepower14:37
MIFhow do I know if it started?14:38
sdezielMIF: "lxc list" will show you the list of instances (containers and VMs) running or not14:40
sdezielthe lxd daemon itself is started automatically on demand14:41
RoyKMIF: just to clear up a bit - lxd is part of lxc and lxc is "linux containers". these are usermode VMs, so things like the kernel is shared with the host. kvm is hardware virtualisation, that is, usually paravirt, but still, everything is isolated from the host14:41
RoyKkvm is a bit heavier, but for most use that is neglishable14:42
RoyKI have 10ish VMs on kvm myself on an old athlon - works well14:42
sdezielRoyK: FYI lxd now drives VMs too (backed by QEMU)14:42
RoyKsdeziel: lxd drives kvm VMs?14:42
sdezielRoyK: yep, since 3.19 (now at 4.10)14:43
RoyKok - neat14:43
RoyKdidn't know that14:43
sdezielI've switched away from libvirt and wouldn't look back ;)14:43
RoyKhehe14:43
RoyKI guess I'll try that whenever I reinstall my home server14:43
RoyKbut then - works with libvirt for now14:43
MIFthis is what I get for lxc list14:43
sdezielyou get the exact same CLI experience as with containers14:43
MIF+-----------------+---------+------+------+-----------------+-----------+14:44
MIF|      NAME       |  STATE  | IPV4 | IPV6 |      TYPE       | SNAPSHOTS |14:44
MIF+-----------------+---------+------+------+-----------------+-----------+14:44
MIF| actual-finch    | STOPPED |      |      | VIRTUAL-MACHINE | 0         |14:44
MIF+-----------------+---------+------+------+-----------------+-----------+14:44
MIF| civil-bluegill  | RUNNING |      |      | CONTAINER       | 0         |14:44
MIF+-----------------+---------+------+------+-----------------+-----------+14:44
MIF| flowing-monster | STOPPED |      |      | VIRTUAL-MACHINE | 0         |14:44
MIF+-----------------+---------+------+------+-----------------+-----------+14:44
MIFsorry14:44
RoyK!pastebin14:44
ubot3For posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.14:44
sdezielMIF: you can enter the running container with: lxc shell civil-bluegill14:44
MIFok14:45
MIFit works thank you14:45
sdezielnp14:46
MIF1. how do I exit the shell and 2. how do I stop it?14:46
sdezielyou can exit by closing all the shells (typing "exit" or Ctrl-D)14:48
MIFok14:48
sdezielto stop, if you are in the instance, "halt -p" will do, if you are in the host, "lxc stop $instance"14:48
MIFok14:48
MIFthank you again14:49
sdezielyw14:50
MIFok one more question, how do I get internet access into the CONTAINER14:50
sdezielMIF: you should already have that. By default, lxd creates a bridge (lxdbr0) that uses NAT'ing. You can test it by running "ping 1.1.1.1" inside the container14:51
MIFping: connect: Network is unreachable14:51
sdezielMIF: indeed, your previous '14:55
sdeziel'lxc list' didn't report any IP assigned to the container. Is the container a Ubuntu one?14:55
MIFI think so14:56
sdezielthose are configured with a DHCP client in them14:57
sdezielI have a meeting to go to now but you should check if for some reason you've configured lxd to NOT use DHCP/NAT (default config is both enabled) or if the container isn't running a DHCP client14:58
MIFit has a user in home called ubuntu14:58
MIFok thank you14:58
=== ijohnson is now known as ijohnson|lunch
=== ijohnson|lunch is now known as ijohnson
=== halvors1 is now known as halvors
=== boxrick_ is now known as boxrick

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!