use markdown in readme
This commit is contained in:
		
							parent
							
								
									1f3943689e
								
							
						
					
					
						commit
						ff8b3d3b54
					
				
					 1 changed files with 7 additions and 9 deletions
				
			
		
							
								
								
									
										16
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -13,14 +13,13 @@ Configuration
 | 
			
		|||
2. Give that user sudo permissions for calling virsh, so she may control (all)
 | 
			
		||||
   VMs:
 | 
			
		||||
 | 
			
		||||
  <pre>
 | 
			
		||||
  Defaults:vmadmin !requiretty
 | 
			
		||||
  vmadmin ALL = (root) NOPASSWD: /usr/bin/virsh</pre>
 | 
			
		||||
    Defaults:vmadmin !requiretty
 | 
			
		||||
    vmadmin ALL = (root) NOPASSWD: /usr/bin/virsh
 | 
			
		||||
 | 
			
		||||
3. For every one of your users, create a line in vmadmin's .ssh/authorized_keys
 | 
			
		||||
   using their SSH public keys:
 | 
			
		||||
 | 
			
		||||
   <pre>command="/usr/local/bin/virssh myfancyvm",permitopen="localhost:5915",no-X11-forwarding,no-agent-forwarding ssh-rsa AAAAB...== myfancyuser@hjome</pre>
 | 
			
		||||
    command="/usr/local/bin/virssh myfancyvm",permitopen="localhost:5915",no-X11-forwarding,no-agent-forwarding ssh-rsa AAAAB...== myfancyuser@hjome
 | 
			
		||||
 | 
			
		||||
   Instead of specifying only one VM "myfancyvm", you may also specify multiple
 | 
			
		||||
   VMs by regex, for example "(myfancyvm|myothervm)".
 | 
			
		||||
| 
						 | 
				
			
			@ -28,15 +27,14 @@ Configuration
 | 
			
		|||
Usage
 | 
			
		||||
=====
 | 
			
		||||
 | 
			
		||||
  The user may now control her VM using the following commands:
 | 
			
		||||
The user may now control her VM using the following commands:
 | 
			
		||||
 | 
			
		||||
  <pre>
 | 
			
		||||
    ssh -t vmadmin@vmserver sudo virsh list
 | 
			
		||||
    ssh -t vmadmin@vmserver sudo virsh console myfancyvm
 | 
			
		||||
    ssh -t vmadmin@vmserver sudo virsh destroy myfancyvm
 | 
			
		||||
    ssh -t vmadmin@vmserver sudo virsh shutdown myfancyvm
 | 
			
		||||
    ssh -t vmadmin@vmserver sudo virsh start myfancyvm
 | 
			
		||||
    ssh -t vmadmin@vmserver sudo virsh start myfancyvm --console</pre>
 | 
			
		||||
    ssh -t vmadmin@vmserver sudo virsh start myfancyvm --console
 | 
			
		||||
 | 
			
		||||
  If you use a "permitopen" directive, that user may also use the console 
 | 
			
		||||
  command to keep an SSH tunnel open to use VNC.
 | 
			
		||||
If you use a "permitopen" directive, that user may also use the console 
 | 
			
		||||
command to keep an SSH tunnel open to use VNC.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue