summaryrefslogtreecommitdiff
path: root/src/libvirt.rs
AgeCommit message (Collapse)AuthorFilesLines
2023-09-01fix: include filename in error message of being unable to rm imageLars Wirzenius1-2/+7
Sponsored-by: author
2023-04-07fix: bump dependency on virt, fix breakageLars Wirzenius1-3/+2
virt version 0.2.11 had virt::domain::VIR_DOMAIN_AFFECT_CONFIG and other constants. In 0.2.12 it's now virt::sys::VIR_DOMAIN_AFFECT_CONFIG. Bump the dependency version and make necessary changes. Sponsored-by: author
2021-07-24refactor: simplify Ok(...?) to just ...Lars Wirzenius1-1/+1
Sponsored-by: author
2021-03-25feat: allow ~/ in config, specification filesLars Wirzenius1-1/+1
2021-03-25refactor: clean up warnings found by clippyLars Wirzenius1-9/+6
2021-03-25feat: give more useful and specific error messagesLars Wirzenius1-16/+84
2021-03-24fix: don't fail if VM is already running and start is requestedLars Wirzenius1-2/+4
2021-03-24refactor: when starting, stopping do all VMs at onceLars Wirzenius1-1/+9
2021-03-24refactor: when deleting, ask all VMs to shut down at once, for speedLars Wirzenius1-5/+13
2021-03-21feat: optionally mark new VM as autostartedLars Wirzenius1-0/+7
2021-03-14fix: VMs can be restartedLars Wirzenius1-5/+70
Previously, the temporary file for the cloud-init configuration ISO was left attached to the VM. This meant the VM couldn't be turned off and back on again: the temporary no longer existed. Now we detach the ISO file after the VM has booted. As a side effect, vmadm has gained start and shutdown subcommands, so that the fix can be tested.
2021-03-13refactor: add a light abstraction over libvirt bindingsLars Wirzenius1-0/+111
These do only what vmadm needs, no more.