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.
 

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!