Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.12 KB | None | 0 0
  1.  
  2. [root@h2g2w ~]#                            
  3. [root@h2g2w ~]# virsh list                  
  4.  ID    Nom                            État  
  5. ----------------------------------------------------                                    
  6.                                            
  7. [root@h2g2w ~]# virsh list --all                                                        
  8.  ID    Nom                            État                                              
  9. ----------------------------------------------------                                    
  10.  -     9frontVM1                      fermé                                            
  11.  -     debianVM2                      fermé                                            
  12.  -     RancherOS_VM                   fermé                                            
  13.                                                                                        
  14. [root@h2g2w ~]# virsh start debianVM2                                                  
  15. Domaine debianVM2 démarré                                                              
  16.                                                                                        
  17. [root@h2g2w ~]# virsh start RancherOS_VM                                                
  18. Domaine RancherOS_VM démarré                                                            
  19.                                            
  20. [root@h2g2w ~]# virsh start RancherOS_VM                                                
  21. erreur :Le domaine est déjà actif          
  22.                                                                                        
  23. [root@h2g2w ~]# virsh list                  
  24.  ID    Nom                            État                                              
  25. ----------------------------------------------------
  26.  1     debianVM2                      en cours d'exécution                              
  27. 2     RancherOS_VM                   en cours d'exécution
  28.                                                                                        
  29. [root@h2g2w ~]# virsh start 9frontVM1                                                  
  30. Domaine 9frontVM1 démarré                                                              
  31.  
  32. [root@h2g2w ~]# service postgresql start                    
  33. [root@h2g2w ~]# service postgresql start                                                
  34. Redirecting to /bin/systemctl start postgresql.service
  35. [root@h2g2w ~]#                                                                            
  36. [root@h2g2w ~]#                                                                        
  37. [root@h2g2w ~]# ssh francois@debianVM2                                                  
  38. francois@debianvm2's password:                                                          
  39. Linux debian 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64            
  40.                                                                                        
  41. The programs included with the Debian GNU/Linux system are free software;              
  42. the exact distribution terms for each program are described in the                      
  43. individual files in /usr/share/doc/*/copyright.                                        
  44.                                                                                        
  45. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent                      
  46. permitted by applicable law.                                                            
  47. Last login: Sat Jan 13 19:42:57 2018 from 192.168.122.1                                
  48. francois@debian:~$                          
  49. francois@debian:~$                            
  50. francois@debian:~$ sudo su -                
  51. [sudo] Mot de passe de francois : 
  52. root@debian:~#
  53. root@debian:~#
  54. root@debian:~# cat >>/etc/modules <<EOF
  55. >  loop
  56. >  virtio
  57. >  9p
  58. >  9pnet
  59. >  9pnet_virtio
  60. EOF
  61. root@debian:~#                              
  62. root@debian:~# service kmod start  
  63. root@debian:~# mount test /opt -t 9p -o trans=virtio
  64. root@debian:~# df -h
  65. Sys. de fichiers            Taille Utilisé Dispo Uti% Monté sur
  66. udev                          487M       0  487M   0% /dev
  67. tmpfs                         100M    1,8M   98M   2% /run
  68. /dev/mapper/debian--vg-root   3,5G    2,0G  1,3G  62% /
  69. tmpfs                         499M       0  499M   0% /dev/shm
  70. tmpfs                         5,0M       0  5,0M   0% /run/lock
  71. tmpfs                         499M       0  499M   0% /sys/fs/cgroup
  72. /dev/mapper/debian--vg-home   5,1G     21M  4,8G   1% /home
  73. /dev/vda1                     236M     62M  162M  28% /boot
  74. tmpfs                         100M       0  100M   0% /run/user/107
  75. tmpfs                         100M       0  100M   0% /run/user/1000
  76. test                          3,9G     16M  3,7G   1% /opt
  77. root@debian:~# ls /opt
  78. fileexemple  lost+found
  79. root@debian:~#
  80. root@debian:~# exit                        
  81. déconnexion
  82. francois@debian:~$ exit
  83. déconnexion
  84. Connection to debianvm2 closed.
  85. [root@h2g2w ~]# ls -l /opt
  86. total 16
  87. -rw-r--r--. 1 root root     0 16 janv. 20:54 fileexemple
  88. drwx------. 2 root root 16384 15 nov.  15:07 lost+found
  89. [root@h2g2w ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement