Skip to content

Commit

Permalink
Merge pull request China-HPC#1 from ansiz/master
Browse files Browse the repository at this point in the history
 fix: missing OS_ISO parameter for qemu command
  • Loading branch information
ansiz committed Oct 10, 2018
2 parents 82d5343 + e59abbd commit e51dba9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions runvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
: ${AUTO_ATTACH:='Y'}
mkdir -p /etc/qemu
# https://www.cnblogs.com/york-hust/archive/2012/06/12/2546334.html, how to change cd
ISO_WIN10=$OS_ISO
ISO_DRV=$DRV_ISO #mkisofs -r -l -o destination-filename.iso source
QEMU=qemu-system-x86_64
MEM=$RAM #OOM Killer, sysctl -w vm.overcommit_memory=2,https://blog.csdn.net/fm0517/article/details/73105309/
BOOT_SPLASH='/kvm/gnu_tux-800x600.jpg'
Expand Down Expand Up @@ -442,7 +440,8 @@ func_idv_start() {
-vga none \
-device vfio-pci,host=$VGAHOST_SHORT,id=hostdev0,bus=pci.0,addr=0x02,romfile=$ROM_FILE \
-device $AUDIO_DEVICE \
-drive file=$ISO_DRV,index=2,media=cdrom \
-drive file=$OS_ISO,index=2,media=cdrom \
-drive file=$DRV_ISO,index=3,media=cdrom \
-boot order=$BOOT_ORDER,menu=on,splash=/kvm/boot.jpg,splash-time=5000 \
-drive id=disk0,cache=writeback,if=virtio,format=qcow2,file=$DISK_FILE \
$KVM_NET_OPTS \
Expand Down

0 comments on commit e51dba9

Please sign in to comment.