Skip to content

Commit

Permalink
improve comments and help
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Oct 14, 2015
1 parent 5fab524 commit 2aaf2b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions dev-utils/fai-kvm
Expand Up @@ -51,9 +51,9 @@ usage() {
-n create a new empty disk image, which is used as a local disk
-N recreate a new empty disk image, even if one already exists
-s <size> size of the local disk (GB, defaults to 5GB)
-s <size> size of the local disk (GB, defaults to ${size}GB)
-d <num> number of local disks (default is one)
-m <mem> RAM size (MB, defaults to 2000MB)
-m <mem> RAM size (MB, defaults to ${ram}MB)
-u <num> user id. This will become the tap device number and a part of the MAC address
and part of the disk files names. Each VM must have a unique number.
-V do not use vga std with Bochs extensions, use the kvm default
Expand Down Expand Up @@ -118,11 +118,11 @@ gopt="$fix $vga -m $ram -smp 2 -name FAI-test"
if [ X$newdisk != X0 ]; then
for i in `seq 1 $disks` ; do
if [ X$newdisk = X1 -a -f $diskfile-$i.qcow2 ]; then
echo "Cannot overwrite disk image. Please use -N."
echo "Will not overwrite disk image. Please use -N."
exit 3
fi
rm -f $diskfile-$i.qcow2
qemu-img create -f qcow2 -o preallocation=metadata $diskfile-$i.qcow2 ${size}G
qemu-img create -f qcow2 -o preallocation=metadata $diskfile-$i.qcow2 ${size}G
done
fi

Expand Down
8 changes: 5 additions & 3 deletions dev-utils/fai-mk-network
Expand Up @@ -27,9 +27,11 @@ Usage: fai-mk-network {OPTION} USER
DESCRIPTION
fai-mk-network creates $tapnum tap devices which are added to a
software bridge. This bridge will be on a private subnet ($brip/24).
Also a NAT rule for iptables is used for routing traffic to the
outside internet through $netdev.
software bridge. The tap devices will belong to the user spacified.
This bridge will be on a private subnet ($brip/24). Also a NAT rule
for iptables is used for routing traffic to the outside internet through
$netdev. You can configure different settings by modifying some
variables in the script itself.
Using fai-kvm you can start virtual machines which are connected
to on of the tap devices.
Expand Down

0 comments on commit 2aaf2b7

Please sign in to comment.