Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@h2g2w ~]#
- [root@h2g2w ~]# virsh list
- ID Nom État
- ----------------------------------------------------
- [root@h2g2w ~]# virsh list --all
- ID Nom État
- ----------------------------------------------------
- - 9frontVM1 fermé
- - debianVM2 fermé
- - RancherOS_VM fermé
- [root@h2g2w ~]# virsh start debianVM2
- Domaine debianVM2 démarré
- [root@h2g2w ~]# virsh start RancherOS_VM
- Domaine RancherOS_VM démarré
- [root@h2g2w ~]# virsh start RancherOS_VM
- erreur :Le domaine est déjà actif
- [root@h2g2w ~]# virsh list
- ID Nom État
- ----------------------------------------------------
- 1 debianVM2 en cours d'exécution
- 2 RancherOS_VM en cours d'exécution
- [root@h2g2w ~]# virsh start 9frontVM1
- Domaine 9frontVM1 démarré
- [root@h2g2w ~]# service postgresql start
- [root@h2g2w ~]# service postgresql start
- Redirecting to /bin/systemctl start postgresql.service
- [root@h2g2w ~]#
- [root@h2g2w ~]#
- [root@h2g2w ~]# ssh francois@debianVM2
- francois@debianvm2's password:
- Linux debian 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64
- The programs included with the Debian GNU/Linux system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
- permitted by applicable law.
- Last login: Sat Jan 13 19:42:57 2018 from 192.168.122.1
- francois@debian:~$
- francois@debian:~$
- francois@debian:~$ sudo su -
- [sudo] Mot de passe de francois :
- root@debian:~#
- root@debian:~#
- root@debian:~# cat >>/etc/modules <<EOF
- > loop
- > virtio
- > 9p
- > 9pnet
- > 9pnet_virtio
- EOF
- root@debian:~#
- root@debian:~# service kmod start
- root@debian:~# mount test /opt -t 9p -o trans=virtio
- root@debian:~# df -h
- Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
- udev 487M 0 487M 0% /dev
- tmpfs 100M 1,8M 98M 2% /run
- /dev/mapper/debian--vg-root 3,5G 2,0G 1,3G 62% /
- tmpfs 499M 0 499M 0% /dev/shm
- tmpfs 5,0M 0 5,0M 0% /run/lock
- tmpfs 499M 0 499M 0% /sys/fs/cgroup
- /dev/mapper/debian--vg-home 5,1G 21M 4,8G 1% /home
- /dev/vda1 236M 62M 162M 28% /boot
- tmpfs 100M 0 100M 0% /run/user/107
- tmpfs 100M 0 100M 0% /run/user/1000
- test 3,9G 16M 3,7G 1% /opt
- root@debian:~# ls /opt
- fileexemple lost+found
- root@debian:~#
- root@debian:~# exit
- déconnexion
- francois@debian:~$ exit
- déconnexion
- Connection to debianvm2 closed.
- [root@h2g2w ~]# ls -l /opt
- total 16
- -rw-r--r--. 1 root root 0 16 janv. 20:54 fileexemple
- drwx------. 2 root root 16384 15 nov. 15:07 lost+found
- [root@h2g2w ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement