How to add existing disk

Pak

New Member
Jun 8, 2010
23
0
1
Verona - Italy
Hi everyone,
I'm trying to add an already created disk, but I can't find how...

I created a new VirtualMachine
I've copied inside a .raw disk (from another /var/lib/vz/images/VMID/*)
Now I see only the hard disk I'd created when I created new VM, but how can I add the other disk?
I have looked around for a while, without success..
I had a debian with proxmox repository, 2.6.32 kernel
local storage is in local machine (lvm)
no cluster

I'd find some post telling about "edit VM" - Hardware tab - "Add Disk" - "Using existing disk", but I haven't this menu item.

Some hint?
Thanks

Paolo
 
Thanks for very fast reply

this video show how to add a NEW virtual disk. This features works greatly.

What I can't do, is to add one disk previously created (no matter the format)
 
you copied the file to the right dir?

try restarting pvedaemon:

Code:
/etc/init.d/pvedaemon restart
 
I rebooted the server

Code:
debborah:~# ls /var/lib/vz/images/300/ -l
totale 548
-rw------- 1 root root   8684 29 giu 18:18 SME_1.nvram
-rw-r--r-- 1 root root 196608  6 lug 17:39 SME_1.qcow2
-rw------- 1 root root    467 29 giu 19:11 SME_1.vmdk
-rw------- 1 root root      0 29 giu 18:18 SME_1.vmsd
-rw------- 1 root root   2937 29 giu 18:18 SME_1.vmx
-rw------- 1 root root    260 29 giu 18:18 SME_1.vmxf
-rw------- 1 root root  66328 29 giu 18:18 vmware-1.log
-rw------- 1 root root 152470 29 giu 18:18 vmware-2.log
-rw------- 1 root root  76194 29 giu 18:18 vmware-3.log
-rw------- 1 root root  74802 29 giu 18:18 vmware.log
debborah:~#
that was a ESXi VirtualMachine and I'm tryng to add the "qcow2" disk to new machine, but I haven't the right "menu item"
pic2.jpgpic1.jpg
 
ok, try adding it directly in the config file, maybe some strange size? do you run the latest version? post the output of 'pveversion -v'

see /etc/qemu-server/VMID.conf
 
Code:
debborah:~# pveversion -v
pve-manager: 1.5-10 (pve-manager/1.5/4822)
running kernel: 2.6.32-2-pve
proxmox-ve-2.6.32: 1.5-7
pve-kernel-2.6.32-2-pve: 2.6.32-7
qemu-server: 1.1-16
pve-firmware: 1.0-5
libpve-storage-perl: 1.0-13
vncterm: 0.9-2
vzctl: 3.0.23-1pve11
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.12.4-1
ksm-control-daemon: 1.0-3

watching other /etc/qemu-conf/xx.conf make me notice that I don't see the disk in the storage "local" too
pic3.jpg
pencil.png
 
I added the disk manually in the /etc/qemu-server/300.conf and now I can see it in the web interface too

The machine doesn't boot, but this is another issue :)
maybe something wrong about conversion (it is my first converse experience with ProxMox/kvm/qemu, so I think it's normal something goes wrong ;) )

I had to go now..
thank you so much

regards

Pak