#!/bin/bash set -o errexit name="${1:-xenguest}" xen-create-image --hostname="${name}" \ --randommac \ --ip=10.1.0.2 \ --gateway=10.1.0.1 \ --netmask=255.255.255.0 \ --mirror=http://http.debian.net/debian/ \ --dist=bullseye \ --lvm=vg_1 \ --bridge=xenbr0 \ --vifname=vif."${name}".0 \ --partitions=my-disk-set \ --vcpus=1 \ --memory=512Mb \ --arch=amd64 \ --nokeep \ --nohosts \ --boot \ --password "" \ --pygrub xl console "${name}"