Re-organized project with src and data dirs

and dependency comments for qemu
This commit is contained in:
cvoges12 2021-09-25 22:27:21 +00:00
parent f0b627e1cf
commit 2e914413cb
4 changed files with 31 additions and 26 deletions

14
src/init.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
src/iso.sh
# add answerfile
cp data/autounattend.xml win/
# recreate iso
dd if=win of=win.iso
# clean up iso extract
rm -rf win
src/vm.sh

13
src/iso.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
# extract iso
mkdir -p /mnt/iso
mount -o loop Win10* /mnt/iso
# copy iso files
mkdir -p win
cp -r /mnt/iso/* win/
# clean up mount
umount /mnt/iso
rm -rf /mnt/iso

30
init.sh → src/vm.sh Normal file → Executable file
View file

@ -1,31 +1,9 @@
#!/bin/sh
# extract iso
mkdir -p /mnt/iso
mount -o loop Win10* /mnt/iso
## copy iso files
mkdir -p win
cp -r /mnt/iso/* win/
## clean up mount
umount /mnt/iso
rm -rf /mnt/iso
rm win*
# end extract iso
# add answerfile
cp autounattend.xml win/
# recreate iso
dd if=win of=win.iso
# clean up iso extract
rm -rf win
# qemu
# install qemu libvirt-daemon spice-vdagent spice-client-gtk
# install qemu for qemu-system-x86_64
# install spice-client-gtk for spicy
# install spice-vdagent for spice and vdagent
# libvirt-daemon for /shrug
SPICE_PORT=5924
qemu-system-x86_64 \
-enable-kvm \