> For the complete documentation index, see [llms.txt](https://ghoulsec.gitbook.io/ghoulsec-vault/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ghoulsec.gitbook.io/ghoulsec-vault/server-are-fun/virtualization/proxmox/importing-disk-into-proxmox.md).

# Importing disk into proxmox

Import disk is useful when we require to import the VM running on local VM onto the proxmox & we can perform it using the following commands.

#### Transfering disk into proxmox server :&#x20;

we can use softwares to transfer files via SFTP for GUI support & can leverage the command line utility called `scp` in the linux command line

```bash
scp <disk_file>.vmdk / .raw / .qcow2 root@<proxmox-ip>:/root
```

Once the file is transferred into the proxmox server we will make a dummy VM without any disk and use the command like utility to import the disk onto the VM in proxmox

```bash
qm importdisk <vm-ip> <disk_name> <datastore-volume>
```

once import is successful the disk will be assigned to the VM as `unused disk`  & we can allocate it back to roll up the machine onto proxmox server easily.

***
