Skip to main content

KVM: virt-install

(2020-03-14)

Installing a VM

This example creates a 1c, 2GB VM with a 20GB disk, booting a kernel off of my local cobbler server director.

# virt-install --name test1 \
  --ram 2048 \
  --vcpus 1 \
  --disk path=/export/vm/test1/test1a.img,size=20 \
  --os-variant=fedora31 \
  --os-type=linux \
  --network bridge=br0 \
  --graphics none \
  --console pty,target_type=serial \
  --location 'http://director/yum/Fedora-31S' \
  --extra-args 'console=ttyS0,115200n8 serial ks=http://director/kickstart/Fedora-31S.cfg'