OpenVZ Forum


Home » General » Support » using cdrom from inside VE
using cdrom from inside VE [message #12874] Mon, 14 May 2007 07:45 Go to next message
goeldi
Messages: 92
Registered: June 2006
Member
I followed instructions in the manual page 66 (--devices b:3:0:r --save) for this, but the cdrom does not show up inside the ve. These are my versions:

HN: kernel 2.6.9-023stab043.2-smp on CentOS4
VE: SuSE ELS 10

ls -l /dev/hda (this is the cdrom):
brw-rw---- 1 root disk 3, 0 May 2 11:18 /dev/hda

my 482.conf contains:
DEVICES="b:3:0:r "

I restarted VE 482. This is my /dev inside VE:
# ls -l /dev
total 0
crw------- 1 root root   5,   1 Jun 16  2006 console
lrwxrwxrwx 1 root root       11 May 14 09:28 core -> /proc/kcore
lrwxrwxrwx 1 root root       13 May 14 09:28 fd -> /proc/self/fd
crw------- 1 root root  10, 200 Jun 16  2006 fwmonitor
crw-rw---- 1 root root  89,   0 Jun 16  2006 i2c-0
prw------- 1 root root        0 May 14 09:28 initctl
crw------- 1 root root   1,  11 Jun 16  2006 kmsg
brw-r----- 1 root disk   9,   0 Jun 16  2006 md0
brw-r----- 1 root disk   9,   1 Jun 16  2006 md1
brw-r----- 1 root disk   9,  10 Jun 16  2006 md10
brw-r----- 1 root disk   9,  11 Jun 16  2006 md11
brw-r----- 1 root disk   9,  12 Jun 16  2006 md12
brw-r----- 1 root disk   9,  13 Jun 16  2006 md13
brw-r----- 1 root disk   9,  14 Jun 16  2006 md14
brw-r----- 1 root disk   9,  15 Jun 16  2006 md15
brw-r----- 1 root disk   9,  16 Jun 16  2006 md16
brw-r----- 1 root disk   9,  17 Jun 16  2006 md17
brw-r----- 1 root disk   9,  18 Jun 16  2006 md18
brw-r----- 1 root disk   9,  19 Jun 16  2006 md19
brw-r----- 1 root disk   9,   2 Jun 16  2006 md2
brw-r----- 1 root disk   9,  20 Jun 16  2006 md20
brw-r----- 1 root disk   9,  21 Jun 16  2006 md21
brw-r----- 1 root disk   9,  22 Jun 16  2006 md22
brw-r----- 1 root disk   9,  23 Jun 16  2006 md23
brw-r----- 1 root disk   9,  24 Jun 16  2006 md24
brw-r----- 1 root disk   9,  25 Jun 16  2006 md25
brw-r----- 1 root disk   9,  26 Jun 16  2006 md26
brw-r----- 1 root disk   9,  27 Jun 16  2006 md27
brw-r----- 1 root disk   9,  28 Jun 16  2006 md28
brw-r----- 1 root disk   9,  29 Jun 16  2006 md29
brw-r----- 1 root disk   9,   3 Jun 16  2006 md3
brw-r----- 1 root disk   9,  30 Jun 16  2006 md30
brw-r----- 1 root disk   9,  31 Jun 16  2006 md31
brw-r----- 1 root disk   9,   4 Jun 16  2006 md4
brw-r----- 1 root disk   9,   5 Jun 16  2006 md5
brw-r----- 1 root disk   9,   6 Jun 16  2006 md6
brw-r----- 1 root disk   9,   7 Jun 16  2006 md7
brw-r----- 1 root disk   9,   8 Jun 16  2006 md8
brw-r----- 1 root disk   9,   9 Jun 16  2006 md9
drwxr-xr-x 2 root root       60 Apr 20 16:23 net
crw-rw-rw- 1 root root   1,   3 Jun 16  2006 null
crw------- 1 root root 108,   0 Jun 16  2006 ppp
crw-rw-rw- 1 root tty    5,   2 May 14 09:43 ptmx
drwxr-xr-x 2 root root        0 May 14 09:28 pts
crw------- 1 root root  36,   0 Jun 16  2006 route
crw------- 1 root root  10, 135 Jun 16  2006 rtc
drwxrwxrwt 2 root root       40 Jun 16  2006 shm
crw------- 1 root root  10, 200 Jun 16  2006 skip
lrwxrwxrwx 1 root root       15 May 14 09:28 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 root root       15 May 14 09:28 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root       15 May 14 09:28 stdout -> /proc/self/fd/1
crw-rw-rw- 1 root tty    5,   0 Jun 16  2006 tty
crw--w---- 1 root tty    4,   1 Jun 16  2006 tty1
crw------- 1 root uucp   4,  64 Jun 16  2006 ttyS0
crw------- 1 root uucp   4,  65 Jun 16  2006 ttyS1
crw------- 1 root uucp   4,  66 Jun 16  2006 ttyS2
crw------- 1 root uucp   4,  67 Jun 16  2006 ttyS3
crw------- 1 root uucp   4,  68 Jun 16  2006 ttyS4
crw------- 1 root uucp   4,  69 Jun 16  2006 ttyS5
crw------- 1 root uucp   4,  70 Jun 16  2006 ttyS6
crw------- 1 root uucp   4,  71 Jun 16  2006 ttyS7
crw------- 1 root root  10, 130 Jun 16  2006 watchdog
crw-rw-rw- 1 root root   1,   5 Jun 16  2006 zero


where is the cdrom?
Re: using cdrom from inside VE [message #12881 is a reply to message #12874] Mon, 14 May 2007 09:36 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello,

1) `--devices b:3:0:r --save` does not create a device node in /dev. It only grants permissions to the device! You can use `--devnodes hda:r --save` command, which not only grants permissions, but aslo creates a node.

2) However, if you're using udev in VE (just check whether tmpfs is mounted on /dev, if it is so, then you're using udev), you need to create a device node inside VE manually once again:
vzctl exec <veid> mknod /dev/hda b 3 0

HTH,
Vasily.
Re: using cdrom from inside VE [message #12883 is a reply to message #12881] Mon, 14 May 2007 09:42 Go to previous messageGo to next message
goeldi
Messages: 92
Registered: June 2006
Member
thank you, now hda shows up inside of ve.

But when I try to mount it, I get this:

mount: unknown filesystem type iso9660

Re: using cdrom from inside VE [message #12886 is a reply to message #12883] Mon, 14 May 2007 10:27 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Ouch, I forgot you to tell you about it. Rolling Eyes This filesystem isn't virtualized, so you can't use it easily in VE. If the solution with bindmounts doesn't suite you, then you can make a tiny correction of kernel code: add to the iso9660_fs_type structure's fs_flags field FS_VIRTUALIZED flag:
fs_flags = FS_REQUIRES_DEV | FS_VIRTUALIZED
and then recompile the kernel manually.

Actually we have a enhancement bug at bugzilla: http://bugzilla.openvz.org/show_bug.cgi?id=559
After fixing this bug it'll be possible to add a wishful filesystem to VE very easy:
vzctl set <veid> --addfs iso9660

But it isn't fixed now Wink

Thanks,
Vasily.
Previous Topic: VE_PRIVATE on GFS2
Next Topic: NAT enabled but VE cannot communicate beyond HN
Goto Forum:
  


Current Time: Tue Aug 06 00:23:51 GMT 2024

Total time taken to generate the page: 0.03183 seconds