mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Disable all network interfaces during Windows install. Close #115
During the Windows install network interfaces are completely disabled! This is to allow those users who want to create local accounts to do so. A side affect is that the first time Windows boots with the QEMU network enabled it will blue screen, automatically restart and then boot normally with fully functioning networking.,
This commit is contained in:
		
							parent
							
								
									45457c8808
								
							
						
					
					
						commit
						fd901a987c
					
				
					 2 changed files with 16 additions and 1 deletions
				
			
		|  | @ -249,6 +249,13 @@ and [Windows 11](https://www.microsoft.com/en-gb/software-download/windows11) | ||||||
| along with the [VirtIO drivers for Windows](https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/) | along with the [VirtIO drivers for Windows](https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/) | ||||||
| and creates a virtual machine configuration. | and creates a virtual machine configuration. | ||||||
| 
 | 
 | ||||||
|  | **During the Windows install network interfaces are completely disabled!** This | ||||||
|  | is to allow those users who want to create local accounts to do so. A side affect | ||||||
|  | is that the first time **Windows boots with the QEMU network enabled it will blue | ||||||
|  | screen, automatically restart and then start normally with fully functioning | ||||||
|  | networking**. | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| ```bash | ```bash | ||||||
| quickget windows 11 | quickget windows 11 | ||||||
| quickemu --vm windows-11.conf | quickemu --vm windows-11.conf | ||||||
|  |  | ||||||
							
								
								
									
										10
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -687,7 +687,6 @@ function vm_boot() { | ||||||
|          -device usb-ehci,id=input |          -device usb-ehci,id=input | ||||||
|          -device usb-kbd,bus=input.0 |          -device usb-kbd,bus=input.0 | ||||||
|          -device ${MOUSE},bus=input.0 |          -device ${MOUSE},bus=input.0 | ||||||
|          -device ${NET_DEVICE},netdev=nic -netdev ${NET},id=nic |  | ||||||
|          -audiodev pa,id=audio0,out.mixing-engine=off,out.stream-name=${LAUNCHER}-${VMNAME},in.stream-name=${LAUNCHER}-${VMNAME} |          -audiodev pa,id=audio0,out.mixing-engine=off,out.stream-name=${LAUNCHER}-${VMNAME},in.stream-name=${LAUNCHER}-${VMNAME} | ||||||
|          -device intel-hda -device hda-duplex,audiodev=audio0 |          -device intel-hda -device hda-duplex,audiodev=audio0 | ||||||
|          -rtc base=localtime,clock=host,driftfix=slew |          -rtc base=localtime,clock=host,driftfix=slew | ||||||
|  | @ -700,6 +699,15 @@ function vm_boot() { | ||||||
|          -monitor none |          -monitor none | ||||||
|          -serial mon:stdio) |          -serial mon:stdio) | ||||||
| 
 | 
 | ||||||
|  |   # Disables network interface during Windows install. | ||||||
|  |   # See https://github.com/wimpysworld/quickemu/issues/115 | ||||||
|  |   if [ "${guest_os}" == "windows" ] && [ -n "${iso}" ]; then | ||||||
|  |     args+=(-nic none) | ||||||
|  |   else | ||||||
|  |     # shellcheck disable=SC2054,SC2206 | ||||||
|  |     args+=(-device ${NET_DEVICE},netdev=nic -netdev ${NET},id=nic) | ||||||
|  |   fi | ||||||
|  | 
 | ||||||
|   # Add the disks |   # Add the disks | ||||||
|   # - https://turlucode.com/qemu-disk-io-performance-comparison-native-or-threads-windows-10-version/ |   # - https://turlucode.com/qemu-disk-io-performance-comparison-native-or-threads-windows-10-version/ | ||||||
|   if [[ "${boot}" == *"efi"* ]]; then |   if [[ "${boot}" == *"efi"* ]]; then | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue