unix:virtualization:kvm:server
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| unix:virtualization:kvm:server [2020/11/22 01:20] – [Adding network to virt-lib] rodolico | unix:virtualization:kvm:server [2026/04/14 16:15] (current) – rodolico | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== libvirt |
| **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. // |
| <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 |
| reboot # brings libraries online | reboot # brings libraries online | ||
| </ | </ | ||
| 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
