Added ISO and DRIVE variables to qemu
This commit is contained in:
		
							parent
							
								
									03c9b5b15d
								
							
						
					
					
						commit
						7f941344d2
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -6,7 +6,8 @@ | ||||||
| # libvirt-daemon for /shrug | # libvirt-daemon for /shrug | ||||||
| SPICE_PORT=5930 | SPICE_PORT=5930 | ||||||
| CHARDEV_ID='spicechannel0' | CHARDEV_ID='spicechannel0' | ||||||
| # change drive if needed (default: /dev/sdb) | DRIVE='/dev/sdb'    # change drive if needed | ||||||
|  | ISO='win.iso' | ||||||
| qemu-system-x86_64 \ | qemu-system-x86_64 \ | ||||||
|     -enable-kvm \ |     -enable-kvm \ | ||||||
|     -daemonize \ |     -daemonize \ | ||||||
|  | @ -16,8 +17,8 @@ qemu-system-x86_64 \ | ||||||
|     -net user,hostname=windowsvm \ |     -net user,hostname=windowsvm \ | ||||||
|     -m 4G \ |     -m 4G \ | ||||||
|     -boot d \ |     -boot d \ | ||||||
|     -cdrom win.iso \ |     -cdrom ${ISO} \ | ||||||
|     -drive file=/dev/sdb,cache=none,if=virtio \ |     -drive file=${DRIVE},format=raw,cache=none,if=virtio \ | ||||||
|     -vga qxl \ |     -vga qxl \ | ||||||
|     -device virtio-serial-pci \ |     -device virtio-serial-pci \ | ||||||
|     -spice port=${SPICE_PORT},disable-ticketing=on \ |     -spice port=${SPICE_PORT},disable-ticketing=on \ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue