All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 1862110] [NEW] qemu in script is not parsing properly
@ 2020-02-06  5:17 Chris Hoy
  2020-02-06  5:20 ` [Bug 1862110] " Chris Hoy
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Chris Hoy @ 2020-02-06  5:17 UTC (permalink / raw)
  To: qemu-devel

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1862110] Re: qemu in script is not parsing properly
  2020-02-06  5:17 [Bug 1862110] [NEW] qemu in script is not parsing properly Chris Hoy
@ 2020-02-06  5:20 ` Chris Hoy
  2020-02-06 18:20 ` Chris Hoy
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Chris Hoy @ 2020-02-06  5:20 UTC (permalink / raw)
  To: qemu-devel

EDIT: The backslash under the ovmf setting was commented

-- 
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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1862110] Re: qemu in script is not parsing properly
  2020-02-06  5:17 [Bug 1862110] [NEW] qemu in script is not parsing properly Chris Hoy
  2020-02-06  5:20 ` [Bug 1862110] " Chris Hoy
@ 2020-02-06 18:20 ` Chris Hoy
  2020-02-06 18:48 ` Alex Williamson
  2020-02-11 18:22 ` Alex Williamson
  3 siblings, 0 replies; 5+ messages in thread
From: Chris Hoy @ 2020-02-06 18:20 UTC (permalink / raw)
  To: qemu-devel

** Description changed:

- Bug Report: 
+ 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

-- 
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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1862110] Re: qemu in script is not parsing properly
  2020-02-06  5:17 [Bug 1862110] [NEW] qemu in script is not parsing properly Chris Hoy
  2020-02-06  5:20 ` [Bug 1862110] " Chris Hoy
  2020-02-06 18:20 ` Chris Hoy
@ 2020-02-06 18:48 ` Alex Williamson
  2020-02-11 18:22 ` Alex Williamson
  3 siblings, 0 replies; 5+ messages in thread
From: Alex Williamson @ 2020-02-06 18:48 UTC (permalink / raw)
  To: qemu-devel

Your script is broken, you cannot mix continued lines, blank lines, and
comments.  Take for instance this example:

---
#!/bin/bash

echo Hello \
World

echo Hello \

World

echo Hello \

# Earth

World
---

Which results in:

$ ./hello.sh 
Hello World
Hello
./hello.sh: line 8: World: command not found
Hello
./hello.sh: line 14: World: command not found

-- 
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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 1862110] Re: qemu in script is not parsing properly
  2020-02-06  5:17 [Bug 1862110] [NEW] qemu in script is not parsing properly Chris Hoy
                   ` (2 preceding siblings ...)
  2020-02-06 18:48 ` Alex Williamson
@ 2020-02-11 18:22 ` Alex Williamson
  3 siblings, 0 replies; 5+ messages in thread
From: Alex Williamson @ 2020-02-11 18:22 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: New => Invalid

-- 
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:
  Invalid

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-02-11 18:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-06  5:17 [Bug 1862110] [NEW] qemu in script is not parsing properly Chris Hoy
2020-02-06  5:20 ` [Bug 1862110] " Chris Hoy
2020-02-06 18:20 ` Chris Hoy
2020-02-06 18:48 ` Alex Williamson
2020-02-11 18:22 ` Alex Williamson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.