Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
Host:Helios
(section)
From Chaosdorf Wiki
Views
Read
Edit with form
Edit source
View history
associated-pages
Host
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Virtuelle Maschinen == {{#ask: [[Has location::Host:Helios]] [[Host:+]] | ?Hostname | ?Operating System | ?Disk size | ?RAM size | ?Has admins = Admins }} === VM anlegen === Zum Beispiel ein Debian Stretch im Access VLAN mit 1GiB RAM und 20GB Festplatte: <nowiki>virt-install --connect qemu+ssh://helios.chaosdorf.space/system -n testvm --memory 1024 --network network=default --cpu host --boot uefi --os-variant debian12 -l http://ftp.de.debian.org/debian/dists/stable/main/installer-amd64/ --disk pool=vmstorage,size=20</nowiki> Falls vorhanden, kann eine preseed-Konfiguration mit <tt>--initrd-inject</tt> berücksichtigt werden. === Snapshots === Am Beispiel des Dockerserver * VM herunterfahren (→ Konsistenter Dateisystemzustand) * <tt>sudo lvcreate --snapshot --size 250g --name dockerserver-backup vmstorage/dockerserver</tt> (Größe anhand des erwarteten Schreibumfangs auf dem per Snapshot gesicherten Volume anpassen) * VM starten, Dinge tun (z.B. komplexeres Dist-Upgrade) * Wenn erfolgreich: <tt>sudo lvremove vmstorage/dockerserver-backup</tt> * Andernfalls Rollback: VM herunterfahren, <tt>sudo lvconvert --merge vmstorage/dockerserver-backup</tt>, VM wieder starten
Summary:
Please note that all contributions to Chaosdorf Wiki are considered to be released under the Attribution 3.0 Unported (see
Chaosdorf Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)