aqemu does not escape spaces in filenames when generating a script

Bug #1992170 reported by Ken Sharp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aqemu (Ubuntu)
New
Undecided
Unassigned

Bug Description

aqemu has the option to create a script for VMs, but when doing so fails to escape any space in the filenames.

$ VM_Windows_10_Pro
qemu-system-x86_64: -drive file=/home/ken/Windows: Could not open '/home/ken/Windows': No such file or directory

Command line in script:

/usr/bin/qemu-system-x86_64 -cpu host -soundhw hda -k en-gb -vga qxl -machine accel=kvm -m 8192 -no-fd-bootchk -drive file=/home/ken/Windows 10 Pro.qcow2 -boot once=c,menu=off -net nic,macaddr=00:5d:28:70:d8:97,model=virtio -net user -rtc base=localtime -name "Windows 10 Pro" -device virtio-rng-pci $*

Fixed:

/usr/bin/qemu-system-x86_64 -cpu host -soundhw hda -k en-gb -vga qxl -machine accel=kvm -m 8192 -no-fd-bootchk -drive file=/home/ken/Windows\ 10\ Pro.qcow2 -boot once=c,menu=off -net nic,macaddr=00:5d:28:70:d8:97,model=virtio -net user -rtc base=localtime -name "Windows 10 Pro" -device virtio-rng-pci $*

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: aqemu 0.9.2-3
ProcVersionSignature: Ubuntu 5.15.0-50.56-generic 5.15.60
Uname: Linux 5.15.0-50-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: MATE
Date: Fri Oct 7 14:11:15 2022
SourcePackage: aqemu
UpgradeStatus: Upgraded to jammy on 2022-09-26 (10 days ago)
modified.conffile..etc.apport.crashdb.conf: [modified]
mtime.conffile..etc.apport.crashdb.conf: 2019-08-06T11:56:22.315382

Revision history for this message
Ken Sharp (kennybobs) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.