mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 08:54:51 +08:00 
			
		
		
		
	Network configuration
This commit is contained in:
		
							parent
							
								
									4f8bbc2559
								
							
						
					
					
						commit
						0eee9eb05e
					
				
							
								
								
									
										17
									
								
								readme.md
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								readme.md
									
									
									
									
									
								
							@ -119,17 +119,16 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
    Be sure to modify these values to match your local subnet. 
 | 
					    Be sure to modify these values to match your local subnet. 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Once you have created the network, modify the container's configuration in your compose file as follows:
 | 
					    Once you have created the network, change your compose file to make it look as follows:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ```yaml
 | 
					    ```yaml
 | 
				
			||||||
    networks:
 | 
					    services:
 | 
				
			||||||
        vdsm:             
 | 
					        dsm:
 | 
				
			||||||
            ipv4_address: 192.168.0.100
 | 
					            ..<snip>..
 | 
				
			||||||
    ```
 | 
					            networks:
 | 
				
			||||||
    
 | 
					                vdsm:             
 | 
				
			||||||
    Finally, add the network to the bottom of your compose file:
 | 
					                    ipv4_address: 192.168.0.100
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ```yaml
 | 
					 | 
				
			||||||
    networks:
 | 
					    networks:
 | 
				
			||||||
        vdsm:
 | 
					        vdsm:
 | 
				
			||||||
            external: true
 | 
					            external: true
 | 
				
			||||||
@ -151,7 +150,7 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti
 | 
				
			|||||||
    devices:
 | 
					    devices:
 | 
				
			||||||
        - /dev/vhost-net
 | 
					        - /dev/vhost-net
 | 
				
			||||||
    device_cgroup_rules:
 | 
					    device_cgroup_rules:
 | 
				
			||||||
        - 'c 510:* rwm'
 | 
					        - 'c 511:* rwm'
 | 
				
			||||||
    ```
 | 
					    ```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Please note that the exact `cgroup` rule number may vary depending on your system, but the log output will indicate the correct number in case of an error.
 | 
					    Please note that the exact `cgroup` rule number may vary depending on your system, but the log output will indicate the correct number in case of an error.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user