mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 08:54:51 +08:00 
			
		
		
		
	Update readme.md
This commit is contained in:
		
							parent
							
								
									77a6997251
								
							
						
					
					
						commit
						aebc976e4f
					
				
							
								
								
									
										17
									
								
								readme.md
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								readme.md
									
									
									
									
									
								
							@ -18,22 +18,18 @@ virtual-dsm
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
A docker container for running Synology's Virtual DSM.
 | 
					A docker container for running Synology's Virtual DSM.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Prerequisites
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
In order to use the container, you need two images called `boot.img` and `system.img` from Synology containing the Virtual DSM 7 OS. 
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
Place them in the `/home/user/images` folder. A third empty image, called `data.img` will be automaticly generated with a size of 16GB. If you need more space for your DSM instance, you can manually generate a larger file by running `truncate -s 100G data.img` on your host OS.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
## Using the container
 | 
					## Using the container
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Via `docker run`:
 | 
					Via `docker run`:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
$ docker run --rm -it \
 | 
					$ docker run --rm -it \
 | 
				
			||||||
    --device=/dev/kvm:/dev/kvm \
 | 
					    -p 5000:5000 \
 | 
				
			||||||
    --device=/dev/net/tun:/dev/net/tun \
 | 
					 | 
				
			||||||
    --cap-add NET_ADMIN \
 | 
					    --cap-add NET_ADMIN \
 | 
				
			||||||
    -p 5000:5000 -p 5001:5001 \
 | 
					    --cap-add SYS_ADMIN \
 | 
				
			||||||
 | 
					    --device=/dev/kvm:/dev/kvm \
 | 
				
			||||||
 | 
					    --device=/dev/fuse:/dev/fuse \
 | 
				
			||||||
 | 
					    --device=/dev/net/tun:/dev/net/tun \    
 | 
				
			||||||
    -v /home/user/images:/images \
 | 
					    -v /home/user/images:/images \
 | 
				
			||||||
    kroese/virtual-dsm:latest
 | 
					    kroese/virtual-dsm:latest
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
@ -47,12 +43,13 @@ services:
 | 
				
			|||||||
        image: kroese/virtual-dsm:latest
 | 
					        image: kroese/virtual-dsm:latest
 | 
				
			||||||
        cap_add:
 | 
					        cap_add:
 | 
				
			||||||
            - NET_ADMIN
 | 
					            - NET_ADMIN
 | 
				
			||||||
 | 
					            - SYS_ADMIN
 | 
				
			||||||
        devices:
 | 
					        devices:
 | 
				
			||||||
            - /dev/kvm
 | 
					            - /dev/kvm
 | 
				
			||||||
 | 
					            - /dev/fuse
 | 
				
			||||||
            - /dev/net/tun
 | 
					            - /dev/net/tun
 | 
				
			||||||
        ports:
 | 
					        ports:
 | 
				
			||||||
            - 5000:5000
 | 
					            - 5000:5000
 | 
				
			||||||
            - 5001:5001
 | 
					 | 
				
			||||||
        volumes:
 | 
					        volumes:
 | 
				
			||||||
            - /home/user/images:/images
 | 
					            - /home/user/images:/images
 | 
				
			||||||
        restart: always
 | 
					        restart: always
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user