Repository navigation
Conversation
…nd the nwfilter backend pin (#208)
…link already down stays down, self-update pins libvirt's networks to iptables, no broadcast DHCP offers between VMs, no table from a partial VM list, a refused batch kept for doctor (#208)
…update pins network.conf, the refused nft batch (#208)
…k and when, libvirt's filter pauses on real hosts (#208)
… pipefail cut it short (#208)
…ount made it inactive from the start (#208)
…re VM isolation (#208)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dcvm 1.0.0: the 1.x stability promise, isolation between owners, and everything the release audit, the live swarm test and the host matrix found. The full list is in CHANGELOG.md under [1.0.0].
What 1.0 adds
--jsonoutput carries"api":1, errors come as{"api":1,"error":{"code","message"}}with fixed exit statuses, the socket protocol has a version handshake, anddcvm version --jsonlists extensions. What stays stable through 1.x is written down in docs/compatibility.md; docs/non-goals.md says what dcvm won't do.dcvm ttlandmax_ttl(dcvm ttl <vm> <duration>: renew a VM's TTL #206): renew, show or remove a VM's expiry; admins cap users' VM lifetimes. An expired VM is deleted even when protected.dcvm share/unshareand--sharedopen a VM to everyone's VMs. The owner policy lives in dcvm's own nftables tables (inet dcvm,bridge dcvm), and libvirt's network filters do the anti-spoofing. A udev rule enables bridge netfilter only on dcvm's bridge.nftables.servicestarts, reloads or stops, or someone runsnft flush ruleset, dcvm puts its tables back at once and dcvm-boot.service restarts only the libvirt daemon whose rules were lost, waits for every VM's filter (including VMs still learning their address from DHCP), and only then puts the port forwards back. On Fedora, a local SELinux module lets virtnwfilterd learn VMs' addresses.dcvm doctorbounds every libvirt call, names what it skipped when libvirt doesn't answer, and--fixloads dcvm's tables even then."created":false), anddelete --jsonof a missing VM succeeds.--allcommands (start/stop/restart --all take no per-VM locks #225). Filter refreshes merge under load (The VM filter refresh fails under load and its failure is blamed on the caller's VM #238). Prompts time out (An unanswered prompt, or a cancelled create --wait, keeps the VM's lock indefinitely #240).lsof, replaces 0.9.10's port rules and closes open permissions;--reverttakes the filters off again (Tested upgrade path from 0.9.10-0.9.13 to 1.0 #213, The 1.0 update puts VMs under filters the host may not be able to load #221, self-update --revert to 0.9.x leaves the isolation filters frozen on every VM #222).Security fixes (from the audit and the swarm)
max_ttl(Restoring a backup as a new VM ignores max_ttl #224), and export reads only the backup owner's files (Export and restore-as-new read the live VM folder, which may belong to another owner #236).Live tests
All live tests ran on throwaway nested hosts.
Final run on this branch (the scripted host matrix, an upgrade from 0.9.13, then owner isolation, nftables events and a reboot on each host):
unshareonce under load (#251)--forceplus--revert, uninstall and its cleanup.nft flush rulesetplusdoctor --fix, aftersystemctl restart,stopandstart nftables, and after a reboot.Audit and swarm (#215):
libvirt-unavailable(69), and delete removes nothing.CI: shfmt, shellcheck, a bash 5.1 parse and the suite as non-root: 527 passed, 0 failed.
Docs
Closes #202, #203, #204, #205, #206, #207, #208, #209, #210, #211, #212, #213, #214, #215, #216, #217, #218, #219, #220, #221, #222, #223, #224, #225, #226, #227, #228, #229, #230, #231, #232, #233, #234, #235, #236, #237, #238, #239, #240, #241, #242, #243, #244, #245