]>
git.madduck.net Git - code/vinst.git/blobdiff - vinst
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
+ (-d|--dns)
+ shift
+ if [ -z "$1" ]; then
+ echo >&2 'E: --dns/-d needs IP address'
+ exit 1
+ fi
+ NAMESERVER="$1"
+ ;;
(-g|--gateway)
shift
if [ -z "$1" ]; then
(-g|--gateway)
shift
if [ -z "$1" ]; then
netcfg/get_gateway=$GATEWAY \
netcfg/get_nameservers=$NAMESERVER"
netcfg/get_gateway=$GATEWAY \
netcfg/get_nameservers=$NAMESERVER"
else
extra_args="$extra_args netcfg/disable_dhcp=false"
else
extra_args="$extra_args netcfg/disable_dhcp=false"
ram: $RAM MiB
disk: $DISK GiB
console: $CONSOLE
ram: $RAM MiB
disk: $DISK GiB
console: $CONSOLE
_eof
if [ -n "$IPADDRESS" ]; then
cat >&2 <<_eof
_eof
if [ -n "$IPADDRESS" ]; then
cat >&2 <<_eof
exec virt-install --connect=$QEMU_URI \
-n $HOSTNAME \
-r $RAM \
exec virt-install --connect=$QEMU_URI \
-n $HOSTNAME \
-r $RAM \
- --disk pool=default,size=$SIZ E \
- -w bridge=virt-br \
+ --disk vol=$STORAGE_POOL/virt-$HOSTNAM E \
+ -w bridge=$BRIDGE \
--graphics=vnc \
--serial=pty \
--watchdog i6300esb,action=reset \
--graphics=vnc \
--serial=pty \
--watchdog i6300esb,action=reset \