virter icon indicating copy to clipboard operation
virter copied to clipboard

Documentation additions/edits

Open vphan13 opened this issue 1 year ago • 2 comments

  1. Required packages (I'm using Rocky/Fedora) sudo yum install libvirt, qemu, libvirt-nss
  2. 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
  1. The ssh documentation Simply editing the nssswitch.conf file does not work on RHEL9, the following command does authselect enable-feature with-libvirt
  2. Lastly, the default loglevel does not show any output like the video
  • What are the other loglevel options that can be specified?

vphan13 avatar Sep 22 '24 04:09 vphan13

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.

exu-g avatar Sep 25 '24 07:09 exu-g

  1. 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

chrboe avatar Sep 25 '24 13:09 chrboe

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

vphan13 avatar Oct 01 '24 05:10 vphan13