Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN
    • Domains
      • Endian
      • Fileserver
      • Hylafax
      • IPfire
      • LXC
      • Mailserver
      • Oracle 10 XE
      • PXE Netboot
      • Torrent
      • Webmail
      • Zimbra
    • Installation
    • PCI Delegation

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid
DOMAIN_NAME=lxc
DOMAIN_MAC=00:00:00:ef:11:cc
DOMAIN_RAM=2Gb
DOMAIN_HDD=128Gb

xen-create-image \
    --hostname=${DOMAIN_NAME} \
    --dist=xenial  \
    --lvm=vg1 \
    --fs=ext4 \
    --dhcp \
    --pygrub \
    --mac=${DOMAIN_MAC} \
    --mirror=http://archive.ubuntu.com/ubuntu \
    --size=${DOMAIN_HDD} \
    --memory=${DOMAIN_RAM} \
    --swap=${DOMAIN_RAM} \
    --genpass=0 \
    --password=t00r \
    --vcpus $(cat /proc/cpuinfo | grep processor | wc -l)

mv /etc/xen/${DOMAIN_NAME}.cfg /etc/xen/${DOMAIN_NAME}
ln -s /etc/xen/${DOMAIN_NAME} /etc/xen/auto/12_lxc

mount /dev/vg1/${DOMAIN_NAME}-disk /mnt/
chroot /mnt/
mount /proc/

debconf-set-selections <<\EOF
grub-pc grub-pc/install_devices_empty select true
EOF

apt-get install -y linux-image-generic

cat <> /boot/grub/menu.lst 
default         0
timeout         2

title           Ubuntu 16.04 LTS
root            (hd0,0)
kernel          /boot/vmlinuz-4.4.0-21-generic root=/dev/xvda2 ro 
initrd          /boot/initrd.img-4.4.0-21-generic

title           Ubuntu 16.04 LTS (Single-User)
root            (hd0,0)
kernel          /boot/vmlinuz-4.4.0-21-generic root=/dev/xvda2 ro single
initrd          /boot/initrd.img-4.4.0-21-generic
EOF

umount /proc/
exit
umount /mnt

xm create -c ${DOMAIN_NAME}
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung