All Projects → pin → debian-vm-install

pin / debian-vm-install

Licence: other
Debian unattended VM installation with virt-install and pressed.cfg

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to debian-vm-install

Packer Build
Packer Automated VM Image and Vagrant Box Builds
Stars: ✭ 199 (+485.29%)
Mutual labels:  debian, kvm
Qemu Images
A collection of disk images and virtual machines that can be used by the QEMU emulator
Stars: ✭ 145 (+326.47%)
Mutual labels:  debian, kvm
yosild
Yosild is a single shell script that builds a full, minimal Linux distribution based on BusyBox.
Stars: ✭ 97 (+185.29%)
Mutual labels:  debian, kvm
Terrible
An Ansible playbook that apply the principle of the Infrastructure as Code on a QEMU/KVM environment.
Stars: ✭ 161 (+373.53%)
Mutual labels:  debian, kvm
Kvm Install Vm
Bash script to build local virtual machines using KVM/libvirt and cloud-init.
Stars: ✭ 248 (+629.41%)
Mutual labels:  debian, kvm
The-Debian-Gotham-Needs
The sanest page for downloading a Debian ISO
Stars: ✭ 36 (+5.88%)
Mutual labels:  debian, debian-installer
packer-kvm
Create VM templates with Packer for usage with Libvirt/KVM virtualization : CentOS 7, CentOS 8, CentOS 8 Stream, Alma Linux, Rocky Linux, Bionic (Ubuntu 1804), Focal (Ubuntu 2004), Debian 11 (stable), Kali Linux, Fedora 33 and Fedora 34.
Stars: ✭ 99 (+191.18%)
Mutual labels:  debian, kvm
ufw-docker-automated
Manage docker containers firewall with UFW!
Stars: ✭ 114 (+235.29%)
Mutual labels:  debian
linux-dersleri.github.io
Linux Dokümantasyonu Web Platformu
Stars: ✭ 33 (-2.94%)
Mutual labels:  debian
docker-debian-releases
Creates docker images of historic Debian-based distribution releases
Stars: ✭ 19 (-44.12%)
Mutual labels:  debian
MisakaLinuxToolbox
御坂妹妹们的Linux VPS工具箱
Stars: ✭ 237 (+597.06%)
Mutual labels:  debian
ConPan
ConPan: Analyze your Docker container in peace
Stars: ✭ 45 (+32.35%)
Mutual labels:  debian
airgeddon deb packages
Useful related to airgeddon packages for Debian based Linux distributions
Stars: ✭ 22 (-35.29%)
Mutual labels:  debian
cv4pve-botgram
Telegram Bot for Proxmox VE
Stars: ✭ 26 (-23.53%)
Mutual labels:  kvm
beleyenv
A dev-focused, idempotent system bootstrap script for ChromeOS's officially supported Linux container. Designed for me, but flexible enough for you to use too!
Stars: ✭ 45 (+32.35%)
Mutual labels:  debian
deber
📦🐋 Debian packaging with Docker
Stars: ✭ 20 (-41.18%)
Mutual labels:  debian
zfs-installer
Shell script program that prepares ZFS on a system, and installs Linux
Stars: ✭ 137 (+302.94%)
Mutual labels:  debian
notion-linux
Native Notion packages for Linux
Stars: ✭ 887 (+2508.82%)
Mutual labels:  debian
sdwdate
Secure Distributed Web Date; privacy, anonymity and Tor friendly; console time fetcher and daemon; optional graphical user interface etc. Website: https://www.whonix.org/wiki/sdwdate
Stars: ✭ 28 (-17.65%)
Mutual labels:  debian
ansible-role-daemonize
Ansible Role - Daemonize.
Stars: ✭ 14 (-58.82%)
Mutual labels:  debian

Debian Stretch unattended VM guest installer

While Debian Stretch is not released yet, script uses daily-images. If you want to use Debian Jessie (e.g. current stable) please check out release v8.0 or update DIST_URL

Simple script that uses virt-install and configures Debian installer for unattended installation and custom configuration using preseed config in order to create freshly installed Debian KVM guest.

Usage: ./install.sh <GUEST_NAME> [MAC_ADDRESS]

  GUEST_NAME    used as guest hostname, name of the VM and image file name
  MAC_ADDRESS   allows to use specific MAC on the network, this is helpful
                when DHCP server expects your guest to have predefined MAC

Guest OS is minimal no-GUI Debian installation configured with serial console for ability to virsh console <GUEST_NAME>, and OpenSSH server with your SSH key or/and password pre-configured.

It is easy to change the script to add any extra packages and configuration files during unattended installation.

Actually, the main point of sharing this script is to provide an example of unattended Debian VM creation or a base for your own script.

Prerequisites

  • virt-install: apt-get install virtinst
  • KVM/qemu: apt-get install qemu-kvm libvirt-daemon # something else?

Things to check before the first use

  • Set your login name and full name in preseed.cfg, update your GitHub name in install.sh in order to install your SSH key for authentication by guest. If you want to use different SSH key, not the one from GitHub, just put authorized_keys to preseed directory and remove wget command that fetches key from GitHub. Update your login name in postinst.sh, where SSH key is installed.
  • It's worth considering to enable password authentication in preseed.cfg at least during first run so you could virsh console <GUEST_NAME> in case network connection in guest does not comes up with DHCP or IP of the guest is unclear.
  • Check RAM size and disk size for the guest in arguments to virst-install in install.sh and modify them if needed.
  • Add apt-get install <your_favorite> or whatever you want to postinst.sh and any configuration files you want to add to the guest into postinst directory.

Network configuration

Script works best with bridged network, when guests are able to use DHCP server. In case you want something else, replace br0 in arguments to virt-install in install.sh.

Example of network configuration in /etc/network/interfaces:

auto lo
iface lo inet loopback

auto eth0 # replace eth0 with your actual interface name
iface eth0 inet manual

auto br0
iface br0 inet dhcp
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0

More Info

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].