Skip to content

Instantly share code, notes, and snippets.

<domain type='kvm'>
<name>ubuntu-4b</name>
<uuid>7dfbcb8a-77da-11e6-a116-408d5cb4b9e6</uuid>
<memory unit='KiB'>12582912</memory>
<currentMemory unit='KiB'>12582912</currentMemory>
<vcpu placement='static'>2</vcpu>
<os>
<type arch='x86_64' machine='pc-q35-2.5'>hvm</type>
<loader readonly='no' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
<nvram>/var/lib/libvirt/qemu/nvram/ubuntu-4b_VARS.fd</nvram>
## Options to set on the command line
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
d-i netcfg/disable_autoconfig boolean false
d-i netcfg/choose_interface select auto
d-i base-installer/kernel/override-image string linux-server
d-i clock-setup/utc-auto boolean true
#!/bin/bash
sudo qemu-img create -f qcow2 /home/username/$1.img 250G &&
sudo virt-install \
--name $1 \
--boot uefi \
--machine q35 \
--ram 16384 \
--vcpus 2 \
# the upstream component nginx needs to connect to
upstream django {
server unix:///opt/adagios/adagios/adagios.sock; # for a file socket
}
# configuration of the server
server {
# the port your site will be served on
listen 8080;
# the domain name it will serve for