Modified spice to gentoo recommendations
This commit is contained in:
		
							parent
							
								
									3c92f5a2fe
								
							
						
					
					
						commit
						88345836c8
					
				
					 2 changed files with 10 additions and 7 deletions
				
			
		|  | @ -5,8 +5,10 @@ src/iso.sh | |||
| # add answerfile | ||||
| cp data/autounattend.xml win/ | ||||
| 
 | ||||
| # install mkisofs | ||||
| # recreate iso | ||||
| dd if=win of=win.iso | ||||
| #dd if=win of=win.iso | ||||
| mkisofs --allowed-limited-size -o win.iso win | ||||
| 
 | ||||
| # clean up iso extract | ||||
| rm -rf win | ||||
|  |  | |||
							
								
								
									
										13
									
								
								src/vm.sh
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								src/vm.sh
									
										
									
									
									
								
							|  | @ -4,7 +4,8 @@ | |||
| # install spice-client-gtk for spicy | ||||
| # install spice-vdagent for spice and vdagent | ||||
| # libvirt-daemon for /shrug | ||||
| SPICE_PORT=5924 | ||||
| SPICE_PORT=5930 | ||||
| CHARDEV_ID='spicechannel0' | ||||
| # change drive if needed (default: /dev/sdb) | ||||
| qemu-system-x86_64 \ | ||||
|     -enable-kvm \ | ||||
|  | @ -13,14 +14,14 @@ qemu-system-x86_64 \ | |||
|     -smp 4 \ | ||||
|     -net nic \ | ||||
|     -net user,hostname=windowsvm \ | ||||
|     -m 8G \ | ||||
|     -vga qxl \ | ||||
|     -m 4G \ | ||||
|     -boot d \ | ||||
|     -cdrom win.iso \ | ||||
|     -drive file=/dev/sdb,cache=none,if=virtio \ | ||||
|     -vga qxl \ | ||||
|     -device virtio-serial-pci \ | ||||
|     -spice port=${SPICE_PORT},disable-ticketing=on \ | ||||
|     -device virtio-serial \ | ||||
|     -chardev spicevmc,id=vdagent,name=vdagent \ | ||||
|     -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 | ||||
|     -device virtserialport,chardev=${CHARDEV_ID},name=com.redhat.spice.0 \ | ||||
|     -chardev spicevmc,id=${CHARDEV_ID},name=vdagent | ||||
| 
 | ||||
| exec spicy --title Windows 127.0.0.1 -p ${SPICE_PORT} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue