# Import qcow2 image to proxmox and attach to vm

First we need to create a VM on Proxmox and assign an ID

then we need to upload the image, in this case we will upload from local PC to remote server

```bash
sudo scp fedora-coreos-40.20240504.3.0-qemu.x86_64.qcow2.xz root@192.168.1.100:/mnt/sdcard/images
```

Next we wll import disk to our PVE VM ID 201 in this case and select the disk we want our image to be stored - sdcard in this example

```shell
root@px:/mnt/sdcard/images# qm importdisk 201 fedora-coreos-40.20240504.3.0-qemu.x86_64.qcow2.xz sdcard
```

![image.png](https://wiki.tinod.net/uploads/images/gallery/2024-05/scaled-1680-/sVHQRfbjVZWG0vhU-image.png)

Now we select Unused disk 2 in this example and then edit then Add, make sure Bus/DEvice is set to VirtIO Block

[![image.png](https://wiki.tinod.net/uploads/images/gallery/2024-05/scaled-1680-/efbuLr3EqAHOf7AH-image.png)](https://wiki.tinod.net/uploads/images/gallery/2024-05/efbuLr3EqAHOf7AH-image.png)