For When You Can't Have The Real Thing
[ start | index | login ]
start > Fedora > 31 > kvm > virt-install

virt-install

Created by dave. Last edited by dave, 147 days ago. Viewed 156 times. #3
[diff] [history] [edit] [rdf]
labels
attachments
(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'
no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt