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 | # add answerfile | ||||||
| cp data/autounattend.xml win/ | cp data/autounattend.xml win/ | ||||||
| 
 | 
 | ||||||
|  | # install mkisofs | ||||||
| # recreate iso | # 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 | # clean up iso extract | ||||||
| rm -rf win | rm -rf win | ||||||
|  |  | ||||||
							
								
								
									
										13
									
								
								src/vm.sh
									
										
									
									
									
								
							
							
						
						
									
										13
									
								
								src/vm.sh
									
										
									
									
									
								
							|  | @ -4,7 +4,8 @@ | ||||||
| # install spice-client-gtk for spicy | # install spice-client-gtk for spicy | ||||||
| # install spice-vdagent for spice and vdagent | # install spice-vdagent for spice and vdagent | ||||||
| # libvirt-daemon for /shrug | # libvirt-daemon for /shrug | ||||||
| SPICE_PORT=5924 | SPICE_PORT=5930 | ||||||
|  | CHARDEV_ID='spicechannel0' | ||||||
| # change drive if needed (default: /dev/sdb) | # change drive if needed (default: /dev/sdb) | ||||||
| qemu-system-x86_64 \ | qemu-system-x86_64 \ | ||||||
|     -enable-kvm \ |     -enable-kvm \ | ||||||
|  | @ -13,14 +14,14 @@ qemu-system-x86_64 \ | ||||||
|     -smp 4 \ |     -smp 4 \ | ||||||
|     -net nic \ |     -net nic \ | ||||||
|     -net user,hostname=windowsvm \ |     -net user,hostname=windowsvm \ | ||||||
|     -m 8G \ |     -m 4G \ | ||||||
|     -vga qxl \ |  | ||||||
|     -boot d \ |     -boot d \ | ||||||
|     -cdrom win.iso \ |     -cdrom win.iso \ | ||||||
|     -drive file=/dev/sdb,cache=none,if=virtio \ |     -drive file=/dev/sdb,cache=none,if=virtio \ | ||||||
|  |     -vga qxl \ | ||||||
|  |     -device virtio-serial-pci \ | ||||||
|     -spice port=${SPICE_PORT},disable-ticketing=on \ |     -spice port=${SPICE_PORT},disable-ticketing=on \ | ||||||
|     -device virtio-serial \ |     -device virtserialport,chardev=${CHARDEV_ID},name=com.redhat.spice.0 \ | ||||||
|     -chardev spicevmc,id=vdagent,name=vdagent \ |     -chardev spicevmc,id=${CHARDEV_ID},name=vdagent | ||||||
|     -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 |  | ||||||
| 
 | 
 | ||||||
| exec spicy --title Windows 127.0.0.1 -p ${SPICE_PORT} | exec spicy --title Windows 127.0.0.1 -p ${SPICE_PORT} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue