mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Add floppy disk image support
This commit is contained in:
		
							parent
							
								
									11c0933b0c
								
							
						
					
					
						commit
						e5a0bdf876
					
				
					 2 changed files with 13 additions and 0 deletions
				
			
		|  | @ -271,6 +271,13 @@ Add additional lines to your virtual machine configuration: | ||||||
|   * `cpu_cores="4"` - Specify the number of CPU cores allocated to the VM |   * `cpu_cores="4"` - Specify the number of CPU cores allocated to the VM | ||||||
|   * `ram="4G"` - Specify the amount of RAM to allocate to the VM |   * `ram="4G"` - Specify the amount of RAM to allocate to the VM | ||||||
|   * `disk="16G"` - Specify the size of the virtual disk allocated to the VM |   * `disk="16G"` - Specify the size of the virtual disk allocated to the VM | ||||||
|  | ## Floppy disks | ||||||
|  | 
 | ||||||
|  | If you're like [Alan Pope](https://popey.com) you'll probably want to mount a | ||||||
|  | floppy disk image in the guest. To do so add the following line to the VM | ||||||
|  | configuration: | ||||||
|  | 
 | ||||||
|  |   * `floppy="/path/to/floppy.img"` | ||||||
| 
 | 
 | ||||||
| # Network port forwarding | # Network port forwarding | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
							
								
								
									
										6
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -483,6 +483,11 @@ function vm_boot() { | ||||||
|          -monitor none |          -monitor none | ||||||
|          -serial mon:stdio) |          -serial mon:stdio) | ||||||
| 
 | 
 | ||||||
|  |   if [ -n "${floppy}" ] && [ -e "${floppy}" ]; then | ||||||
|  |     # shellcheck disable=SC2054 | ||||||
|  |     args+=(-drive file=${floppy},index=0,if=floppy,format=raw) | ||||||
|  |   fi | ||||||
|  | 
 | ||||||
|   # Add the disks |   # Add the disks | ||||||
|   if [ "${boot}" == "efi" ] || [ "${boot}" == "uefi" ]; then |   if [ "${boot}" == "efi" ] || [ "${boot}" == "uefi" ]; then | ||||||
|     # shellcheck disable=SC2054 |     # shellcheck disable=SC2054 | ||||||
|  | @ -608,6 +613,7 @@ cpu_cores="" | ||||||
| disk_img="" | disk_img="" | ||||||
| disk="64G" | disk="64G" | ||||||
| fixed_iso="" | fixed_iso="" | ||||||
|  | floppy="" | ||||||
| guest_os="linux" | guest_os="linux" | ||||||
| img="" | img="" | ||||||
| iso="" | iso="" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue