Tech/HowTo/Network Install with Libvirt

From lathama
< Tech‎ | HowTo
Jump to navigation Jump to search

Update First

libvirt and tools use osinfo database to match install information against various OS releases. You may need to update this first. I spent the time to find a more dynamic way of updating.

After locating the latest release at https://releases.pagure.org/libosinfo/ run the following as root

cd /tmp/
wget <latest release you found>
osinfo-db-import --system osinfo-db-*.xz


Network install urls

Clean installs directly from the repos... Using libvirt (virsh/virt-install/virt-manager) you can install from the HTTP repo of a Linux distribution to be super lazy. During installation you simply provide the URI in the location field or tools like virt-manager will have an option in the wizard.

For Debian you would use:

http://deb.debian.org/debian/dists/stable/main/installer-amd64/

Or Ubuntu (lacks stable link, numbered releases etc)

http://mirrors.edge.kernel.org/ubuntu/dists/trusty/main/installer-amd64/
http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/
http://archive.ubuntu.com/ubuntu/dists/disco/main/installer-amd64/
http://archive.ubuntu.com/ubuntu/dists/eoan/main/installer-amd64/
http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/

For CentOS which lacks a CDN mirror or I could not find it quickly, you can try:

http://mirrors.kernel.org/centos/7/os/x86_64/
http://mirrors.kernel.org/centos/8/BaseOS/x86_64/os/