Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

commented Nov 8, 2014

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

@hamjl

This comment has been minimized.

Copy link

commented Nov 8, 2014

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

@EmmanuelKasper

This comment has been minimized.

Copy link
Owner Author

commented Jan 9, 2015

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

@qemu-buro-point-dpkg

This comment has been minimized.

Copy link

commented Apr 16, 2016

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
You can’t perform that action at this time.