A service of Daily Data, Inc.
Contact Form

User Tools

Site Tools


unix:virtualization:kvm:server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
unix:virtualization:kvm:server [2020/11/22 01:20] – [Adding network to virt-lib] rodolicounix:virtualization:kvm:server [2026/04/14 16:15] (current) rodolico
Line 1: Line 1:
-====== KVM on server with libvirt ======+====== libvirt installation (virsh) ======
  
 **This is a work in progress, 20201015** **This is a work in progress, 20201015**
Line 17: Line 17:
 You should see either vmx or svm in the output. You should see either vmx or svm in the output.
  
-Now, install the basic packages needed, a couple of utilities, but not all the extra crud.+Now, install the basic packages needed, a couple of utilities, but not all the extra crud. //netcat-openbsd// is only needed if you're going to cluster and migrate virtuals from one hypervisor to another, from what I can tell. **virt-top** is a nice little //top// for seeing what is running and what resources they are using in real time.
  
 <code bash> <code bash>
-apt install -y --no-install-recommends qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils libguestfs-tools genisoimage virtinst libosinfo-bin virt-top+apt install -y --no-install-recommends qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils libguestfs-tools genisoimage virtinst libosinfo-bin virt-top netcat-openbsd
 reboot # brings libraries online reboot # brings libraries online
 </code> </code>
Line 263: Line 263:
 Other useful options are Other useful options are
   * --dry-run # don't really do it   * --dry-run # don't really do it
 +  * --print-xml # this will dump the XML file instead of running the command. This is very useful when installing virtuals that will need more than one CDROM drive as you can then edit the XML file to add it. **Note**: the resulting XML is doubled, ie has two copies of the XML in it and must be edited before use.
   * --controller virtio-scsi # this is specific to KVM, but faster there   * --controller virtio-scsi # this is specific to KVM, but faster there
   * osinfo-query os # this shows the OS's available for the --os-variant flag   * osinfo-query os # this shows the OS's available for the --os-variant flag
 +
  
 most of the parameters are self evident, but I'll quickly talk about why I did some of them. most of the parameters are self evident, but I'll quickly talk about why I did some of them.
unix/virtualization/kvm/server.1606029653.txt.gz · Last modified: by rodolico