Added initial
This commit is contained in:
		
						commit
						0eb4bce8c2
					
				
					 1 changed files with 21 additions and 0 deletions
				
			
		
							
								
								
									
										21
									
								
								qemu-system-x86_64-boot
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										21
									
								
								qemu-system-x86_64-boot
									
										
									
									
									
										Executable file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,21 @@
 | 
			
		|||
#!/bin/sh
 | 
			
		||||
HDA=$1;
 | 
			
		||||
[ ! -r "$HDA" ] && { echo "Usage: $(basename "$0") <imagefile>" >&2; exit 1; }
 | 
			
		||||
shift
 | 
			
		||||
QEMU_PUBLIC_SHARE=${QEMU_PUBLIC_SHARE:-$(xdg-user-dir PUBLIC_SHARE)}
 | 
			
		||||
QEMU_MEMORY=${QEMU_MEMORY:-1G}
 | 
			
		||||
QEMU_EFI=${QEMU_EFI:-/usr/share/OVMF/OVMF_CODE.fd}
 | 
			
		||||
qemu-system-x86_64 \
 | 
			
		||||
	-nographic \
 | 
			
		||||
	-M q35 \
 | 
			
		||||
	-cpu max \
 | 
			
		||||
	-k de \
 | 
			
		||||
	-machine accel=kvm \
 | 
			
		||||
	-smp 2 \
 | 
			
		||||
	-m "${QEMU_MEMORY}" \
 | 
			
		||||
	-drive file="${HDA}",media=disk \
 | 
			
		||||
	-virtfs "local,id=shared_folder_dev_0,path=${QEMU_PUBLIC_SHARE},security_model=none,mount_tag=shared0" \
 | 
			
		||||
	-net nic -net user \
 | 
			
		||||
	-name "$(basename "$HDA")" \
 | 
			
		||||
	-bios "$QEMU_EFI" \
 | 
			
		||||
	"$@"
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue