Skip to content

Instantly share code, notes, and snippets.

@EmmanuelKasper
Last active February 21, 2018 09:28
Show Gist options
  • Save EmmanuelKasper/5861319 to your computer and use it in GitHub Desktop.
Save EmmanuelKasper/5861319 to your computer and use it in GitHub Desktop.
A script to automatically install Debian Wheezy on a KVM guest
#!/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"
@hamjl
Copy link

hamjl commented Nov 8, 2014

最后一句那个URL是什么意思啊?

@hamjl
Copy link

hamjl commented Nov 8, 2014

hi,what dose the "url" mean in the last line? thanks a lot!

@EmmanuelKasper
Copy link
Author

hi, it connects to a server of mine where I have a preseed file (automated answers for installer)

@qemu-buro-point-dpkg
Copy link

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