diff options
author | Erik Skultety <eskultet@redhat.com> | 2022-07-14 14:00:14 +0200 |
---|---|---|
committer | Erik Skultety <eskultet@redhat.com> | 2022-07-14 15:14:19 +0200 |
commit | 5cd9a465ac25d159b4411732f867bddd0500b6a7 (patch) | |
tree | ee20acbdf8d594d0cb735d5170089555e05cad97 /docs | |
parent | d0132d430d7e7c06886abcb1418135fed9758abb (diff) | |
download | libvirt-ci-5cd9a465ac25d159b4411732f867bddd0500b6a7.zip libvirt-ci-5cd9a465ac25d159b4411732f867bddd0500b6a7.tar.gz libvirt-ci-5cd9a465ac25d159b4411732f867bddd0500b6a7.tar.bz2 |
docs: vms: Add a section on guest updates
We never really documented updates properly. While at it, move the
mention of crontab out of 'Configuration' and put it to the new
section on updating as it feels a bit off in its current place.
Signed-off-by: Erik Skultety <eskultet@redhat.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/vms.rst | 61 |
1 files changed, 42 insertions, 19 deletions
diff --git a/docs/vms.rst b/docs/vms.rst index ee6056f..6ccff72 100644 --- a/docs/vms.rst +++ b/docs/vms.rst @@ -18,15 +18,6 @@ refer to your machines by their name in the Ansible inventory. As for the plugin settings, you'll be mainly interested in the ``libvirt_guest`` variant of the plugin. -To keep guests up to date over time, you might find it useful to have an entry -such as this one - -:: - - 0 0 * * * lcitool update all all - -in your crontab. - Ansible inventory ----------------- @@ -154,6 +145,48 @@ Once these steps have been performed, FreeBSD guests can be managed just like all other guests. +Updating VMs with a given project dependencies +============================================== + +So you've installed your VM with lcitool. What's next? Next the VM needs to +go through all the post-installation configuration steps required to +make the newly-added machine usable and ready to be used for building a +project. This includes resetting the root password to the one you set in +``$HOME/.config/lcitool/config.yml``, uploading your SSH key, updating the +system, etc. + + +``$project``. set up (in other words update) with a given project's package dependencies so +that the respective project + +:: + + $ lcitool projects + +You can run update on the VM with + +:: + + # the syntax is 'lcitool update $guest $project' + $ lcitool update my_vm_name libvirt + +More hosts (external bare metal hosts are supported as well) can be updated +with more projects at the same time + +:: + + $ lcitool update my_vm_name,my_bare_metal_host libvirt,qemu + +It is also recommended to run the same command periodically to +ensure the machine configuration is sane and all installed packages are updated +for maintenance purposes. This is where the special keyword **all** might come +handy as you can go as far as putting the following in your crontab + +:: + + 0 0 * * * lcitool update all all + + Cloud-init ========== @@ -223,16 +256,6 @@ knows about the host, either by installing a new guest or updating the Ansible inventory with an external one as mentioned in previous sections. Then you need run the following: -:: - - $ lcitool update $guest $project - -This will go through all the post-installation configuration steps required to -make the newly-added machine usable and ready to be used for building -``$project``. It is also recommended to run the same command periodically to -ensure the machine configuration is sane and all installed packages are updated -for maintenance purposes. - To get a list of known target platforms run: :: |