mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Add $GUEST_TWEAKS variable to allow for guest_os specific tweaks
This commit is contained in:
		
							parent
							
								
									061abfe9b5
								
							
						
					
					
						commit
						6e6b5ae702
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		
							
								
								
									
										4
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -91,6 +91,7 @@ function vm_boot() { | ||||||
|   local VMDIR=$(dirname ${disk_img}) |   local VMDIR=$(dirname ${disk_img}) | ||||||
|   local BIOS="" |   local BIOS="" | ||||||
|   local CPU="-cpu host,kvm=on" |   local CPU="-cpu host,kvm=on" | ||||||
|  |   local GUEST_TWEAKS="" | ||||||
|   local VIDEO_DRV="" |   local VIDEO_DRV="" | ||||||
|   local GL="on" |   local GL="on" | ||||||
|   local VIRGL="on" |   local VIRGL="on" | ||||||
|  | @ -125,6 +126,7 @@ function vm_boot() { | ||||||
|       ;; |       ;; | ||||||
|     windows) |     windows) | ||||||
|       CPU="${CPU},hv_time" |       CPU="${CPU},hv_time" | ||||||
|  |       GUEST_TWEAKS="-no-hpet" | ||||||
|       VIDEO_DRV="qxl" |       VIDEO_DRV="qxl" | ||||||
|       ;; |       ;; | ||||||
|     *) |     *) | ||||||
|  | @ -265,7 +267,7 @@ function vm_boot() { | ||||||
| 
 | 
 | ||||||
|   # Boot the iso image |   # Boot the iso image | ||||||
|   ${QEMU} -name ${VMNAME},process=${VMNAME} \ |   ${QEMU} -name ${VMNAME},process=${VMNAME} \ | ||||||
|     ${BIOS} \ |     ${BIOS} ${GUEST_TWEAKS} \ | ||||||
|     -drive id=disk,file=${disk_img},format=qcow2,if=virtio,aio=native,cache.direct=on \ |     -drive id=disk,file=${disk_img},format=qcow2,if=virtio,aio=native,cache.direct=on \ | ||||||
|     ${ISO_BOOT} ${ISO_DRIVER} \ |     ${ISO_BOOT} ${ISO_DRIVER} \ | ||||||
|     -enable-kvm \ |     -enable-kvm \ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue