# 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.

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ghoulsec.gitbook.io/ghoulsec-vault/server-are-fun/virtualization/proxmox/importing-disk-into-proxmox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
