1- # Debian Stretch unattended VM guest installer
2-
3- * While Debian Stretch is not released yet, script uses ` daily-images ` .
4- If you want to use Debian Jessie (e.g. current stable) please check out
5- release v8.0 or update DIST_URL*
1+ # Debian Bookworm unattended VM guest installer
62
73Simple script that uses ** virt-install** and configures Debian installer
84for unattended installation and custom configuration using ** preseed**
@@ -20,16 +16,16 @@ Guest OS is minimal no-GUI Debian installation configured with serial console
2016for ability to ` virsh console <GUEST_NAME> ` , and OpenSSH server with your SSH
2117key or/and password pre-configured.
2218
23- It is easy to change the script to add any extra packages and configuration
24- files during unattended installation.
25-
26- Actually, the main point of sharing this script is to provide an example of
27- unattended Debian VM creation or a base for your own script.
19+ It is easy to change the script to add any extra packages and
20+ configuration files during unattended installation. The main point of
21+ sharing this script is to provide an example of unattended Debian VM
22+ creation or a base for your own script.
2823
2924Prerequisites
3025-------------
31- * virt-install: ` apt-get install virtinst `
32- * KVM/qemu: ` apt-get install qemu-kvm libvirt-daemon # something else? `
26+ ```
27+ apt-get install wget virtinst libvirt-daemon-system
28+ ```
3329
3430Things to check before the first use
3531------------------------------------
@@ -41,19 +37,24 @@ Things to check before the first use
4137 Update your login name in ` postinst.sh ` , where SSH key is installed.
4238 * It's worth considering to enable password authentication in ` preseed.cfg `
4339 at least during first run so you could ` virsh console <GUEST_NAME> ` in case
44- network connection in guest does not comes up with DHCP or IP of the guest
40+ network connection in guest does not come up with DHCP or IP of the guest
4541 is unclear.
4642 * Check RAM size and disk size for the guest in arguments to ` virst-install ` in
47- ` install.sh ` and modify them if needed.
48- * Add ` apt-get install <your_favorite> ` or whatever you want to ` postinst.sh `
43+ ` install.sh ` and modify them as needed.
44+ * Add ` apt-get install -y <your_favorite> ` or whatever you want to ` postinst.sh `
4945 and any configuration files you want to add to the guest into ` postinst `
5046 directory.
5147
5248Network configuration
5349---------------------
54- Script works best with bridged network, when guests are able to use DHCP
55- server. In case you want something else, replace ` br0 ` in arguments to
56- virt-install in ` install.sh ` .
50+ Script works with bridged network, guests use DHCP and show up in local network.
51+ In case you want something else, replace ` br0 ` in arguments to virt-install
52+ in ` install.sh ` .
53+
54+ Before setting bridged network up:
55+ ```
56+ apt-get install brigde-utils
57+ ```
5758
5859Example of network configuration in ` /etc/network/interfaces ` :
5960```
0 commit comments