summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall-VM-grongo16
1 files changed, 8 insertions, 8 deletions
diff --git a/install-VM-grongo b/install-VM-grongo
index 104cd83..7d510bb 100755
--- a/install-VM-grongo
+++ b/install-VM-grongo
@@ -135,9 +135,9 @@ if [ -e "$target" ]; then
fi
-diskfileroot="${diskfileprefix}$guest-root"
-diskfileswap="${diskfileprefix}$guest-swap"
-diskfilelvm="${diskfileprefix}$guest-lvm"
+diskfileroot="${diskfileprefix}$fqdn-root"
+diskfileswap="${diskfileprefix}$fqdn-swap"
+diskfilelvm="${diskfileprefix}$fqdn-lvm"
mkdir "$diskfileprefix"
(umask 077 && qemu-img create -f qcow2 "$diskfileroot" "$disksize")
@@ -330,9 +330,9 @@ chroot . apt-get clean
( : #)
cat << EOF
<domain type='kvm'>
- <name>$guest</name>
+ <name>$fqdn</name>
<uuid>$(uuidgen)</uuid>
- <memory unit='MiB'>2048</memory>
+ <memory unit='MiB'>1024</memory>
<vcpu placement='static'>2</vcpu>
<os>
<type arch='x86_64' machine='pc-i440fx-2.1'>hvm</type>
@@ -421,10 +421,10 @@ echo
echo "Maybe run"
echo " echo '$hostno' '$ipaddr' '$fqdn' >> '$hostlistfile'"
echo " virsh define '$diskfileprefix/$guest.xml' && rm '$diskfileprefix/$guest.xml'"
-echo " virsh autostart '$guest'"
+echo " virsh autostart '$fqdn'"
echo
echo ' for i in `/usr/local/sbin/vm_du_ suggest`; do ln -vsf /usr/local/sbin/vm_du_ /etc/munin/plugins/vm_du_$i; done'
echo ' service munin-node restart; sleep 3; service munin-async restart'
echo
-echo " virsh start '$guest'"
-echo " virsh console '$guest'"
+echo " virsh start '$fqdn'"
+echo " virsh console '$fqdn'"