Difference between revisions of "Machine/template-focal"
< Machine
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
virt-install -v --accelerate --nographics -x console=ttyS0,115200 \ | virt-install -v --accelerate --nographics -x console=ttyS0,115200 \ | ||
--name template-focal --vcpus=3 --ram $((1 * 1024)) \ | --name template-focal --vcpus=3 --ram $((1 * 1024)) \ | ||
− | --os-type=linux --os-variant= | + | --os-type=linux --os-variant=ubuntu18.04 --network bridge:br0 \ |
--disk path=/var/lib/libvirt/images/boot/template-focal-boot.img,bus=virtio,size=0.25,format=raw \ | --disk path=/var/lib/libvirt/images/boot/template-focal-boot.img,bus=virtio,size=0.25,format=raw \ | ||
--disk path=/dev/justice/template-focal-root,bus=virtio,size=10 \ | --disk path=/dev/justice/template-focal-root,bus=virtio,size=10 \ |
Revision as of 09:00, 16 November 2020
VM Creation (host part)
virt-install -v --accelerate --nographics -x console=ttyS0,115200 \ --name template-focal --vcpus=3 --ram $((1 * 1024)) \ --os-type=linux --os-variant=ubuntu18.04 --network bridge:br0 \ --disk path=/var/lib/libvirt/images/boot/template-focal-boot.img,bus=virtio,size=0.25,format=raw \ --disk path=/dev/justice/template-focal-root,bus=virtio,size=10 \ --location http://ubuntu.media.mit.edu/ubuntu/dists/focal/main/installer-amd64/
Obs: format=raw is mandatory, otherwise qcow2 format will be used by default.
raw format allows us to easily create device mappings for the image.
The new VM will boot into the installer. Answer all questions with the defaults, except:
- Hostname: template-focal
- Mirror: enter information manually
- Mirror hostname: ubuntu.media.mit.edu
- (create your user with a strong password and no encrypted home)
- Partitioning: manual (see Partitioning below)
- Automatically install security updates
- Software selection:
- Basic Ubuntu Server
- OpenSSH server
- GRUB: let the installer setup grub on /dev/vba (which contains /boot)