Documentation additions/edits
- Required packages (I'm using Rocky/Fedora)
sudo yum install libvirt, qemu, libvirt-nss - Non-privileged user requirements (I'm not sure if this is right, but if not done, then you can start images as a non-privileged user but the command below will be empty
virsh list --all
- user has to be in the libvirt and kvm group
- The ssh documentation Simply editing the nssswitch.conf file does not work on RHEL9, the following command does
authselect enable-feature with-libvirt - Lastly, the default loglevel does not show any output like the video
- What are the other loglevel options that can be specified?
I also had to install qemu on Arch. One error I had specifically mentioned qemu-img, but I went with qemu-full to make sure I had everything.
If you run virsh as your user, it will access the qemu:///session socket by default. Create a config file in ~/.config/libvirt/libvirt.conf and add uri_default = "qemu:///system" to change it to the system socket.
For me just adding the libvirt group sufficed.
- Lastly, the default loglevel does not show any output like the video What are the other loglevel options that can be specified?
That video is from 2021; we have since significantly reduced the verbosity of the "regular" commands (like running a VM).
See virter --help:
-l, --loglevel string Log level, default may be set with environment variable "VIRTER_LOG_LEVEL" (default "info")
Available log levels are trace, debug, info, warn, error, fatal, panic. According to https://github.com/sirupsen/logrus/blob/v1.9.3/logrus.go#L25
I think this can be closed out. Docs could use a few more examples, but otherwise, I've gotten everything to work. Thank you for a great project