Skip to content

Instantly share code, notes, and snippets.

@rkamradt
Created May 7, 2020 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rkamradt/7be814a8a278e095e300a9c7d970621e to your computer and use it in GitHub Desktop.
Save rkamradt/7be814a8a278e095e300a9c7d970621e to your computer and use it in GitHub Desktop.
Create VM for ubuntu 20.04
virt-install --name vm1 --ram=8192 --disk size=10 --vcpus 1 --os-type linux --os-variant ubuntu20.04 --graphics none --location 'http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/' --extra-args "console=tty0 console=ttyS0,115200n8"
# When prompted, use the vm name for the host name, and be sure to add openssh when asked for software to pre-install
# otherwise take defaults or most reasonable options. Follow install instructions till reboot, then ^]
virsh domifaddr vm1 # get ip address
ssh-copy-id rkamradt@192.168.122.95 # use ip address from previous step
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment