Vous n'êtes pas identifié(e).
L'icône rouge permet de télécharger chaque page du wiki visitée au format PDF et la grise au format ODT →
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente Prochaine révision Les deux révisions suivantes | ||
utilisateurs:lagrenouille:tutos:vm [27/02/2024 10:10] lagrenouille [Installation] |
utilisateurs:lagrenouille:tutos:vm [27/02/2024 10:14] lagrenouille [Installation] |
||
---|---|---|---|
Ligne 39: | Ligne 39: | ||
-rw-r--r-- 1 root root 336M déc. 5 13:47 debian-10.7.0-amd64-netinst.iso | -rw-r--r-- 1 root root 336M déc. 5 13:47 debian-10.7.0-amd64-netinst.iso | ||
</code> | </code> | ||
+ | |||
+ | * installation toujours sur le serveur | ||
+ | |||
+ | <code user>sudo systemctl status libvirtd.service | ||
+ | [sudo] Mot de passe de lagrenouille : | ||
+ | ● libvirtd.service - Virtualization daemon | ||
+ | Loaded: loaded (/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled) | ||
+ | Active: active (running) since Tue 2021-01-05 09:22:34 CET; 2 weeks 3 days ago | ||
+ | Docs: man:libvirtd(8) | ||
+ | https://libvirt.org | ||
+ | Main PID: 914 (libvirtd) | ||
+ | Tasks: 37 (limit: 32768) | ||
+ | Memory: 70.6M | ||
+ | CGroup: /system.slice/libvirtd.service | ||
+ | ├─ 914 /usr/sbin/libvirtd | ||
+ | ├─ 1647 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leas | ||
+ | ├─ 1648 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leas | ||
+ | ├─ 1773 /usr/bin/qemu-system-x86_64 -name guest=openbsd,debug-threads=on -S -objec | ||
+ | └─23246 /usr/bin/qemu-system-x86_64 -name guest=blz-debian10,debug-threads=on -S - | ||
+ | |||
+ | janv. 22 22:31:29 lebug dnsmasq-dhcp[1647]: DHCPREQUEST(virbr0) 192.168.122.183 52:54:00:7e:f | ||
+ | janv. 22 22:31:29 lebug dnsmasq-dhcp[1647]: DHCPACK(virbr0) 192.168.122.183 52:54:00:7e:fa:0f | ||
+ | janv. 22 22:54:54 lebug dnsmasq-dhcp[1647]: DHCPREQUEST(virbr0) 192.168.122.121 52:54:00:5f:9 | ||
+ | janv. 22 22:54:54 lebug dnsmasq-dhcp[1647]: DHCPACK(virbr0) 192.168.122.121 52:54:00:5f:95:d0 | ||
+ | janv. 22 22:58:32 lebug dnsmasq-dhcp[1647]: DHCPREQUEST(virbr0) 192.168.122.183 52:54:00:7e:f | ||
+ | janv. 22 22:58:32 lebug dnsmasq-dhcp[1647]: DHCPACK(virbr0) 192.168.122.183 52:54:00:7e:fa:0f | ||
+ | janv. 22 23:17:19 lebug dnsmasq-dhcp[1647]: DHCPREQUEST(virbr0) 192.168.122.121 52:54:00:5f:9 | ||
+ | janv. 22 23:17:19 lebug dnsmasq-dhcp[1647]: DHCPACK(virbr0) 192.168.122.121 52:54:00:5f:95:d0 | ||
+ | janv. 22 23:25:07 lebug dnsmasq-dhcp[1647]: DHCPREQUEST(virbr0) 192.168.122.183 52:54:00:7e:f | ||
+ | janv. 22 23:25:07 lebug dnsmasq-dhcp[1647]: DHCPACK(virbr0) 192.168.122.183 52:54:00:7e:fa:0f | ||
+ | lines 1-25/25 (END) | ||
+ | </code> | ||
+ | |||
+ | * Pour améliorer l’accès à la VM sans taper le password à chaque connexion ssh : | ||
+ | |||
+ | * Sur le client donc | ||
+ | |||
+ | * installation sur le client | ||
+ | |||
+ | <code user> | ||
+ | ~$ ssh-keygen -f ~/.ssh/labiscouille | ||
+ | Generating public/private rsa key pair. | ||
+ | Enter passphrase (empty for no passphrase): xxxxxxxxx | ||
+ | Enter same passphrase again: xxxxxxxxx | ||
+ | Your identification has been saved in /home/momo/.ssh/labiscouille. | ||
+ | Your public key has been saved in /home/momo/.ssh/labiscouille.pub. | ||
+ | The key fingerprint is: | ||
+ | SHA256:4mAyYO89jsCPUFKKOzYtL4Bdili+-/g/GSTDhfg59987OE momo@harthuro | ||
+ | The key's randomart image is: | ||
+ | +---[RSA 2048]----+ | ||
+ | | oo ..oo | | ||
+ | | . . .o . | | ||
+ | |... . . . | | ||
+ | |++. . E| | ||
+ | |*.*.o.. S | | ||
+ | |*Oo+oo . | | ||
+ | |XB.o +. | | ||
+ | |=*B.= . | | ||
+ | |o+++o= | | ||
+ | +----[SHA256]-----+ | ||
+ | $ ssh-keygen -f ~/.ssh/labiscouille | ||
+ | Generating public/private rsa key pair. | ||
+ | Enter passphrase (empty for no passphrase): xxxxxxxxx | ||
+ | Enter same passphrase again: xxxxxxxxx | ||
+ | Your identification has been saved in /home/momo/.ssh/labiscouille. | ||
+ | Your public key has been saved in /home/momo/.ssh/labiscouille.pub. | ||
+ | The key fingerprint is: | ||
+ | SHA256:4mAyYO89jsCPUFKKOzYtL4Bdili+-/g/GSTDhfg59987OE momo@harthuro | ||
+ | The key's randomart image is: | ||
+ | +---[RSA 2048]----+ | ||
+ | | oo ..oo | | ||
+ | | . . .o . | | ||
+ | |... . . . | | ||
+ | |++. . E| | ||
+ | |*.*.o.. S | | ||
+ | |*Oo+oo . | | ||
+ | |XB.o +. | | ||
+ | |=*B.= . | | ||
+ | |o+++o= | | ||
+ | +----[SHA256]-----+ | ||
+ | </code> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
===== Utilisation ===== | ===== Utilisation ===== | ||