-
-
Save richardsonlima/5bf035c92d25cb76cd04ce11e8f94b52 to your computer and use it in GitHub Desktop.
Create VM for ubuntu 20.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [email protected] # use ip address from previous step |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment