Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
Host:Vm
(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!
== Virtualisierung == Die virtuellen Machinen werden mit QEMU/KVM betrieben und von libvirt verwaltet. Die Netzwerkanbindung ist über Point-to-Point realisiert, damit der Traffic zwischen den VMs sich bequem filtern lässt. Netz und Disk via virtio. Auf Hostseite wird die Netzkonfiguration mit ifupdown (`/etc/network/interfaces`) gemacht. Zum Starten der VMs wird eventuell noch das Skript `/root/bin/start-vm` verwendet. Dieses öffnet die dm-crypt-Container, startet die VMs und verbindet sich in einer screen-Sitzung mit den seriellen Konsolen. Neue VM anlegen (hier beispielhaft mit 160GB Storage und 4GiB RAM): * root@vm shell lvcreate -n meinevm.chaosdorf.de -L 160g vg0 * <local shell with [https://virt-manager.org/ virt-manager] installed> virt-install --connect qemu+ssh://root@vm.chaosdorf.de/system -n meinevm --memory 4096 --network network=default --cpu model=host-model --os-variant debian12 -l http://ftp.de.debian.org/debian/dists/stable/main/installer-amd64/ --disk source.dev=/dev/vg0/meinevm.chaosdorf.de,target.dev=vda Wir haben keinen IPv4-space übrig und nutzen derzeit kein NAT, d.h. neue VMs sind IPv6only. === libvirt-Update === Nach Update: ferm-Regeln neu einlesen.
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)