projects
/
mirror
/
dsa-wiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Disable backports before upgrading to buster
[mirror/dsa-wiki.git]
/
input
/
howto
/
install-kvm.creole
diff --git
a/input/howto/install-kvm.creole
b/input/howto/install-kvm.creole
index
02903e4
..
0286f1e
100644
(file)
--- a/
input/howto/install-kvm.creole
+++ b/
input/howto/install-kvm.creole
@@
-37,7
+37,13
@@
setup_env() {
echo "Boot device will be $dev_boot" &&
fs=ext4
fi &&
echo "Boot device will be $dev_boot" &&
fs=ext4
fi &&
- dev_swap="/dev/mapper/$vg-$guest--swap" &&
+ if [ "$vg" != "" ]; then
+ dev_swap="/dev/mapper/$vg-$guest--swap"
+ elif [ -d /SWAPFILES ]; then
+ dev_swap=/SWAPFILES/$guest-swap
+ else
+ echo "No idea how to do swap" && false
+ fi &&
echo -n "Use a /boot filesystem (strongly recommended)? [Y/n] " &&
read use_boot &&
echo "Swap device will be $dev_swap" &&
echo -n "Use a /boot filesystem (strongly recommended)? [Y/n] " &&
read use_boot &&
echo "Swap device will be $dev_swap" &&
@@
-93,7
+99,7
@@
trivial.
fi &&
cd "$target" &&
fi &&
cd "$target" &&
- debootstrap --variant=minbase --keyring=/usr/share/keyrings/debian-archive-keyring.gpg s
queez
e . "$mirror"
+ debootstrap --variant=minbase --keyring=/usr/share/keyrings/debian-archive-keyring.gpg s
tabl
e . "$mirror"
}}}
And finalize the setup:
}}}
And finalize the setup:
@@
-193,6
+199,14
@@
And set a password:
chroot . passwd
}}}
chroot . passwd
}}}
+Set a nameserver config that works once the VM has booted. Later in the process we will install unbound anyway.
+{{{
+cat > etc/resolv.conf << EOF
+nameserver 8.8.8.8
+search debian.org
+EOF
+}}}
+
And unmount:
{{{
And unmount:
{{{
@@
-207,7
+221,7
@@
And unmount:
=== virsh setup ===
=== virsh setup ===
-Setup a new kvm domain by creating a new file in /etc/d
a-virt
/`hostname/$guest.xml.
+Setup a new kvm domain by creating a new file in /etc/d
sa-kvm
/`hostname/$guest.xml.
* Properly configure hostname
* Pick a new uuid ({{{uuidgen}}})
* Properly configure hostname
* Pick a new uuid ({{{uuidgen}}})