migration from 1.3 to 1.4 -> no more local ide support

tbardin

Renowned Member
Nov 2, 2009
16
0
66
Hi there,

I used to use this method to attach physical drives to my VM's with proxmox 1.3 : http://www.proxmox.com/forum/showthread.php?t=1501&highlight=storage.

I have 3 hdd to be attached in a VM. They are identified as /dev/sdb1, /dev/sdc1, /dev/sdd1 in Proxmox. As I read in the forum, I edited the /etc/qemu-server/<VMID>.conf file and added the following lines :
ide0: /dev/sdb1
ide1: /dev/sdc1
ide2: /dev/sdd1

It worked perfectly : all 3 drives were recognized and displayed in the ubuntu VM as /dev/sdb1, /dev/sdc1, /dev/sdd1, a little /etc/fstab edit, and OK.

I migrated to 1.4 this morning. I wanted to start from scratch so I reinstall the ubuntu VM with exactly the same method described above. But there is a problem : disks are now identified in the ubuntu VM as /dev/sdb, /dev/sdc, /dev/sdd instead of /dev/sdb1, /dev/sdc1, /dev/sdd1, so that nothing is recognized, when I run a fdisk -l inside my VM, I get "sdb: unknown partition table..."...

Anyone help ??? Should I downgrade to 1.3 ??

Thanks for your help.
 
Using device names directly is a very bad idea, because there is no guarantee on the order. Please use lvm or /dev/disk/by-uuid device names instead.
 
ide0: /dev/sdb1
ide1: /dev/sdc1
ide2: /dev/sdd1

It worked perfectly : all 3 drives were recognized and displayed in the ubuntu VM as /dev/sdb1, /dev/sdc1, /dev/sdd1, a little /etc/fstab edit, and OK.

I cant believe that anyways - I am sure that is not true. Please recheck what you are doing.