Error "qm importdisk"

languy99

New Member
Nov 3, 2022
1
0
1
Hello,

I am following this guide to install Home Assistant on proxmox. https://community.home-assistant.io/t/google-coral-usb-frigate-proxmox/383737

When I get to part 2 step 12 and i need to run this argument qm importdisk 104 ./haos_ova–7.1.qcow2 local-lvm -–format qcow2

I get the following error in the shell

root@home:~# qm importdisk 100 ./haos_ova–9.3.qcow2 local-lvm -–format qcow2 Unknown option: –format 400 unable to parse option qm importdisk <vmid> <source> <storage> [OPTIONS]

Any advice would be great.
 
Based on "man qm":
Code:
qm importdisk <vmid> <source> <storage> [OPTIONS]

       Import an external disk image as an unused disk in a VM. The image format has to be supported by qemu-img(1).

       <vmid>: <integer> (1 - N)
           The (unique) ID of the VM.

       <source>: <string>
           Path to the disk image to import

       <storage>: <string>
           Target storage ID

       --format <qcow2 | raw | vmdk>
           Target format

--format defines the _TARGET_ format when that target is a file storage.
"local-lvm" is block storage, you dont have an option of "format" there. And you dont need to specify the source format type - the underlying command qemu-img can figure it out on its own.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Hi,
I think the real issue is that this is not a normal minus sign in the command ;) But yes, for the local-lvm storage, the option would just be ignored, because (currently) raw is the only possible format there.
 
  • Like
Reactions: bbgeek17
Hi,
I think the real issue is that this is not a normal minus sign in the command ;) But yes, for the local-lvm storage, the option would just be ignored, because (currently) raw is the only possible format there.
Hi, sorry to ask I'm total new at Proxmox and having the same issues and not fully understand what you mean! At me guessing are you saying the - sign should not be there? I have also tried a different way to install Home Assistant but Im not having much look. I keep getting error message rather in the shell or it not doing as expected in the shell! I have installed it now 6 times from a fresh copy.
 
Hi, sorry to ask I'm total new at Proxmox and having the same issues and not fully understand what you mean! At me guessing are you saying the - sign should not be there? I have also tried a different way to install Home Assistant but Im not having much look. I keep getting error message rather in the shell or it not doing as expected in the shell! I have installed it now 6 times from a fresh copy.
You should probably open your own thread, rather than resurrect 13 month old one, and post actual commands you are running along with errors you are getting. Use CODE tags when providing information.

The problem with original post was that the user typed/pasted a different but similar looking ASCII character in "-format".


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!