Sharing a Hard Drive

KaLPo

New Member
Aug 31, 2009
2
0
1
Hello.

I have installed pve in one of my hard drives for testing. I have mounted other hard drive in the machine where pve is installed and I can access all my data using ssh. Now I would like to know how to mount this hard drive inside a virtual machine. I am using openVZ for the VMs.

Thank you for your help and congratulations for the project. It is awesome.
 
Hello.

I have installed pve in one of my hard drives for testing. I have mounted other hard drive in the machine where pve is installed and I can access all my data using ssh. Now I would like to know how to mount this hard drive inside a virtual machine. I am using openVZ for the VMs.

Thank you for your help and congratulations for the project. It is awesome.


why not with bind mounts?
see http://www.proxmox.com/forum/showthread.php?p=4540#poststop
 
Thank you Tom for your answer.

I have been able to mount the partition inside the VM.

Since I have created the /etc/vz/conf/100.mount
Code:
#!/bin/bash
/bin/mount -n --bind /mnt/disk/.data /var/lib/vz/root/100/root/.data
exit $?
I can't start the VM 100.
The virtual machine command log:
Code:
/usr/sbin/vzctl start 100
Starting container ...
Error exec /etc/vz/conf/100.mount: Permission denied
Error executing mount script /etc/vz/conf/100.mount
VM 100 start failed -
When I comment the entire 100.mount I still have the problem and it is not until I delete the file when I can start the VM.

If I run the command (/bin/mount -n --bind /mnt/disk/.data /var/lib/vz/root/100/root/.data) when the VM is running it works smothly.

Why do I have this problem?