Unable to start VM from command line[solved]

dream2038

Member
Aug 15, 2022
13
0
6
請告訴我,當我使用 qm start VMID 命令啟動虛擬機器時收到此錯誤訊息。
Code:
qm 啟動 VMID
kvm:mnt/pve/Server03/template/iso/floppy144-2.vfd:無法開啟「mnt/pve/Server03/template/iso/floppy144-2.vfd」:沒有這樣的檔案或目錄 啟動失敗:QEMU 退出,代碼為 1 [/I代碼] 使用 pvenode startall --mvs VMID --force 時會出現此錯誤 [程式碼]pvenode startall --vms VMID --force[/程式碼] [ICODE]啟動 VM 116 失敗:啟動失敗:QEMU 退出,代碼為 1
但在UI中按下「立即啟動」即可正常啟動
我該如何解決這個問題?
 
Last edited:
Please show the whole VM configuration file. Maybe you forgot a / before mnt/pve/Server03/template/iso/floppy144-2.vfd and the VM will only start when you rumqm startfrom the root of the filesystem ([do a ICODE]cd /[/ICODE] first)?
 
  • Like
Reactions: dream2038
I first
cd /mnt/pve/Server03/template/iso/
然後,再次輸入qm start VMID,又出現同樣的錯誤。

Code:
args: mnt/pve/Server03/template/iso/floppy144-2.vfd
boot:
cores: 1
memory: 16
meta: creation-qemu=7.2.0,ctime=1699738007
name: KMServer
net0: virtio=0A:B1:1E:A2:17:F3,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: l26
scsihw: virtio-scsi-pci
smbios1: uuid=5b21f6ca-d486-421b-962c-bcce603b590a
sockets: 1
unused0: Backup:vm-116-disk-0
vmgenid: 842c71c4-3b68-444b-a835-581e588b7d6e
 
Last edited:
I first
cd /mnt/pve/Server03/template/iso/
Then, enter qm start VMID again and the same error occurs.
I'm not surprised, since I think you used a relative path in the VM configuration file. Maybe try doing cd / first like I suggested? You can make the path absolute (so it does not matter where you run qm start from) by adding a / in front of it. If you would show the VM configuration file like I asked, I could show you, but feel free to do other things...
 
Sorry, I translated it through Google Translate and don’t quite understand what you said.

--------
by adding a / in front of it
--------
Don't understand the meaning of this sentence
 
Last edited:
Thank you, it's OK, as you said
Code:
 /mnt/pve/Server03/template/iso/floppy144-2.vfd
 
Last edited:
I first
cd /mnt/pve/Server03/template/iso/
然後,再次輸入qm start VMID,又出現同樣的錯誤。

Code:
args: mnt/pve/Server03/template/iso/floppy144-2.vfd
boot:
cores: 1
memory: 16
meta: creation-qemu=7.2.0,ctime=1699738007
name: KMServer
net0: virtio=0A:B1:1E:A2:17:F3,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: l26
scsihw: virtio-scsi-pci
smbios1: uuid=5b21f6ca-d486-421b-962c-bcce603b590a
sockets: 1
unused0: Backup:vm-116-disk-0
vmgenid: 842c71c4-3b68-444b-a835-581e588b7d6e
Try changing this line:
args: mnt/pve/Server03/template/iso/floppy144-2.vfd
to this:
args: -fda /mnt/pve/Server03/template/iso/floppy144-2.vfd

EDIT: For some more information about adding floppy's to VMs: https://unix.stackexchange.com/ques...-a-virtual-floppy-disk-into-a-virtual-machine. Or here: https://forum.proxmox.com/threads/virtio-drivers-baked-into-windows-iso.121426/post-552640
 
Last edited:
  • Like
Reactions: dream2038