Creating VM in Linux

sudo virt-install \
  --name homeassistant \
  --ram 4096 \
  --vcpus 2 \
  --disk path=/var/lib/libvirt/images/disk.qcow2,size=20,format=qcow2 \
  --location ./ubuntu-26.10-live-server-amd64.iso,kernel=casper/vmlinuz,initrd=casper/initrd \
  --network default \
  --graphics none \
  --osinfo ubuntu25.10 \
  --console pty,target_type=serial \
  --extra-args 'console=ttyS0,115200n8'

REFERENCES:


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *