[SOLVED] Import Virtual Machine in local-lvm

sushi

New Member
Jul 4, 2016
8
0
1
36
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
 

wolfgang

Proxmox Staff Member
Staff member
Oct 1, 2014
6,496
480
103
Hi,

what error message do you get?
 

Alexander Pytlev

Active Member
Apr 14, 2016
64
12
28
51
Look you VM config (/etc/pve/qemu-server/100.conf), what name of your disks. Best chose in you situation - rename Metaspoitable.qcow2 to vm-100-disk-1.qcow2 and edit VM config.

sample for ide:
boot: cdn
bootdisk: ide0
ide0: file=local:100/vm-100-disk-1.qcow2,size=8G

Read this: https://pve.proxmox.com/wiki/Storage_Model
 
  • Like
Reactions: sushi

sushi

New Member
Jul 4, 2016
8
0
1
36
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.
 

Alexander Pytlev

Active Member
Apr 14, 2016
64
12
28
51
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 your own in 60 seconds.

Buy now!