qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 1862110] [NEW] qemu in script is not parsing properly


From: Chris Hoy
Subject: [Bug 1862110] [NEW] qemu in script is not parsing properly
Date: Thu, 06 Feb 2020 05:17:49 -0000

Public bug reported:

Bug Report: 
>>qemu-system-x86_64 --version: QEMU emulator version 4.2.0
>>Arch-linux version 2020.02.01
I was following a tutorial on how to make a windows vm and i have encountered 
and issue in the settings of my script I have listed below.

The commented code directly above the uncommented qemu instance would
boot the Windows screen but the issue arises when I try to reach the
same code block under the commented setting lines which takes me to the
default SeaBIOS loader.

 
#!/bin/bash

vmname="windows10vm"

if ps -ef | grep qemu-system-x86_64 | grep -q multifunction=on; then
echo "A passthrough VM is already running." &
exit 1

else

# use pulseaudio

export QEMU_AUDIO_DRV=pa
export QEMU_PA_SAMPLES=8192
export QEMU_AUDIO_TIMER_PERIOD=99
export QEMU_PA_SERVER=/run/user/1000/pulse/native

cp /usr/share/ovmf/x64/OVMF_VARS.fd /tmp/my_vars.fd

#qemu-system-x86_64 \
#-drive id=disk0,if=virtio,cache=none,format=raw,file=.../IMGs/win.img \
#-drive file=.../ISOs/Win10_1909_English_x64.iso,index=1,media=cdrom \

qemu-system-x86_64 \

#-name $vmname,process=$vmname \
#-machine type=q35,accel=kvm \
#-cpu host,kvm=off \
#-smp 4,sockets=1,cores=3,threads=1 \
#-m 8G \
#-balloon none \
#-rtc clock=host,base=localtime \
#-vga none \
#-nographic \
#-serial none \
#-parallel none \
#-soundhw hda \
#-usb \
#-device usb-host,vendorid=...,productid=... \
#-device usb-host,vendorid=...,productid=... \
#-device vfio-pci,host=...,multifunction=on \
#-device vfio-pci,host=... \
#-drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF_VARS.fd \
#-drive if=pflash,format=raw,file=/tmp/my_vars.fd \
#-boot order= dc \

-drive id=disk0,if=virtio,cache=none,format=raw,file=.../IMGs/win.img \
-drive file=.../ISOs/Win10_1909_English_x64.iso,index=1,media=cdrom \
-drive file=.../ISOs/virtio-0.1.171.iso,index=2,media=cdrom \

#-netdev type=tap,id=net0,ifname=vmtap0,vhost=on \
#-device virtio-net-pci,netdev=net0,mac=... \

exit 0

fi

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1862110

Title:
  qemu in script is not parsing properly

Status in QEMU:
  New

Bug description:
  Bug Report: 
  >>qemu-system-x86_64 --version: QEMU emulator version 4.2.0
  >>Arch-linux version 2020.02.01
  I was following a tutorial on how to make a windows vm and i have encountered 
and issue in the settings of my script I have listed below.

  The commented code directly above the uncommented qemu instance would
  boot the Windows screen but the issue arises when I try to reach the
  same code block under the commented setting lines which takes me to
  the default SeaBIOS loader.

   
  #!/bin/bash

  vmname="windows10vm"

  if ps -ef | grep qemu-system-x86_64 | grep -q multifunction=on; then
  echo "A passthrough VM is already running." &
  exit 1

  else

  # use pulseaudio

  export QEMU_AUDIO_DRV=pa
  export QEMU_PA_SAMPLES=8192
  export QEMU_AUDIO_TIMER_PERIOD=99
  export QEMU_PA_SERVER=/run/user/1000/pulse/native

  cp /usr/share/ovmf/x64/OVMF_VARS.fd /tmp/my_vars.fd

  #qemu-system-x86_64 \
  #-drive id=disk0,if=virtio,cache=none,format=raw,file=.../IMGs/win.img \
  #-drive file=.../ISOs/Win10_1909_English_x64.iso,index=1,media=cdrom \

  qemu-system-x86_64 \

  #-name $vmname,process=$vmname \
  #-machine type=q35,accel=kvm \
  #-cpu host,kvm=off \
  #-smp 4,sockets=1,cores=3,threads=1 \
  #-m 8G \
  #-balloon none \
  #-rtc clock=host,base=localtime \
  #-vga none \
  #-nographic \
  #-serial none \
  #-parallel none \
  #-soundhw hda \
  #-usb \
  #-device usb-host,vendorid=...,productid=... \
  #-device usb-host,vendorid=...,productid=... \
  #-device vfio-pci,host=...,multifunction=on \
  #-device vfio-pci,host=... \
  #-drive if=pflash,format=raw,readonly,file=/usr/share/ovmf/x64/OVMF_VARS.fd \
  #-drive if=pflash,format=raw,file=/tmp/my_vars.fd \
  #-boot order= dc \

  -drive id=disk0,if=virtio,cache=none,format=raw,file=.../IMGs/win.img \
  -drive file=.../ISOs/Win10_1909_English_x64.iso,index=1,media=cdrom \
  -drive file=.../ISOs/virtio-0.1.171.iso,index=2,media=cdrom \

  #-netdev type=tap,id=net0,ifname=vmtap0,vhost=on \
  #-device virtio-net-pci,netdev=net0,mac=... \

  exit 0

  fi

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1862110/+subscriptions



reply via email to

[Prev in Thread] Current Thread [Next in Thread]