Giving access to linux device in a VE [message #34615] |
Wed, 21 January 2009 04:42  |
devonblzx
Messages: 127 Registered: December 2006
|
Senior Member |
|
|
I was trying to give access to /dev/sda1 to VE 567.
When I type:
vzctl set 567 --devices b:8:0:rw --devices b:8:1:rw --save
and access into the VE it states both /dev/sda1 & /dev/sda do not exist.
I have tried restarting the VE and have made sure the partition is Linux (82) in fdisk.
Any ideas?

ByteOnSite President
[Updated on: Wed, 21 January 2009 04:50] Report message to a moderator
|
|
|
Re: Giving access to linux device in a VE [message #34621 is a reply to message #34615] |
Wed, 21 January 2009 18:40  |
n00b_admin
Messages: 77 Registered: July 2006 Location: Romania
|
Member |
|
|
Hello,
Please use the --devnodes option.
As per the manual of the vzctl tool, the devices option will not automatically create the required block devices.
Try something like:
vzctl set 567 --devnodes /dev/sda:rw --save
Then mount the required partition inside the VE.
If the partition /dev/sda1 is required to be automatically mounted at startup, use the local service for the mount command.
In the past i had problems using the fstab file.
|
|
|