Last active
February 21, 2018 09:28
-
-
Save EmmanuelKasper/5861319 to your computer and use it in GitHub Desktop.
A script to automatically install Debian Wheezy on a KVM guest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# You can optionally connect to the VM with | |
# virt-viewer -c qemu:///system Debian7 | |
export OS=Debian7 | |
virt-install \ | |
--connect qemu:///system \ | |
--name ${OS} \ | |
--ram 1024 \ | |
--vcpus 1 \ | |
--file /tmp/${OS}.img \ | |
--file-size=8 \ | |
--location http://http.debian.net/debian/dists/stable/main/installer-amd64/ \ | |
--virt-type kvm \ | |
--os-variant debianwheezy \ | |
--network bridge=br0 \ | |
--extra-args "auto=true hostname=${OS} domain= url=http://subsole.org/static/misc/debian-preseed.cfg text" |
hi,what dose the "url" mean in the last line? thanks a lot!
hi, it connects to a server of mine where I have a preseed file (automated answers for installer)
The big_ question is, how did you_ produce the the preseed.cfg_. With which tools and against which interface specs?
It should be included in the post for being essential, imho.
Thanks for sharing, anyway.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
最后一句那个URL是什么意思啊?