[SOLVED] Import Virtual Machine in local-lvm

sushi

New Member
Jul 4, 2016
8
0
1
38
Hello,

I'm new on proxmox (4.2) and I try to import my VMs (vdmk format).

So I read the documentation. I try to import Metaspoitable, a vulnerable VM.

So I ignored windows specific instructions and I just do this:

1) I create my VM on the web proxmox interface

2) I copy Metaspoitable.vdmk on my server in this path: /var/lib/vz/images/100

3) I execute this command:

qemu-img convert -f vmdk Metaspoitable.vdmk -O qcow2 Metaspoitable.qcow2

And when I start the VM, the boot fail (repetitive boot).

By defaut, I have two "storage": local and local-lvm. Metaspoitable.qcow2 is in local but not in local-lvm.

Maybe it is the source of the problem.

This is a screenshoot on my web interface administration:

66FsE2V.png


Regards,

sushi
 
Hi,

what error message do you get?
 
I follow your instruction Alexender and this is my 100.conf file:

bootdisk: ide0
cores: 1
ide2: none,media=cdrom
memory: 1024
name: metaspoitable
net0: bridge=vmbr0,e1000=62:66:38:30:30:66
numa: 0
ostype: l26
smbios1: uuid=44c64ee9-f664-45f3-8e25-b415a5274a91
sockets: 1
ide0: file=local:100/Metaspoitable.qcow2,size=16G

And when I try to start the VM, I obtain this message:
Error: Volume 'local:100/Metaspoitable.qcow2' does not exist

And I confirm: /var/lib/vz/images/100/Metasploitable.qcow2 exists.

By defaut, it is not ide0 but it is virtuo0 (in the last line).

This is the first time that I use proxmox, I don't have old VMs from to other proxmox version < 4.2.
 
I follow your instruction Alexender and this is my 100.conf file:

ide0: file=local:100/Metaspoitable.qcow2,size=16G

Error: Volume 'local:100/Metaspoitable.qcow2' does not exist

And I confirm: /var/lib/vz/images/100/Metasploitable.qcow2 exists.

This is the first time that I use proxmox, I don't have old VMs from to other proxmox version < 4.2.

Check attentively file names. Don't copy/paste without thinking. I mistake and lose 'l' in file name on sample, you copy these without check.
 

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!