add physical disk to guest (openvz)

  • Thread starter Thread starter Exilebear
  • Start date Start date
E

Exilebear

Guest
Dear readers,

Recently I installed proxmox and created 3 guests. My proc doesn't support KVM guests so I installed them as openvz containers. Now I have 3 physical disks which I want to add to a guest.

On the forum I saw a couple of threads which contained the answer for KVM guests but none for openvz. Is this even possible?

Thanks in advance,

Exilebear
 
Hello,

do you want to set up seperate disk for OpenVZ VE?

If yes - copy /vz/private/VEID to other hdd which you want to assign, and then change in /etc/vz/conf/VEID.conf VE_PRIVATE="/var/lib/vz/private/$VEID" to VE_PRIVATE="/newhdd/$VEID" (VE_ROOT leave, do not do any changes).

You can see your hdd's via:

fdisk -l
 
Last edited:
On the forum I saw a couple of threads which contained the answer for KVM guests but none for openvz. Is this even possible?

OpenVZ does not allow you to directly use block devices. Instead you need to mount them somewhere on the host, and then use 'bind' mounts to attach it to the container.