OpenVZ Forum


Home » General » Support » *SOLVED* CDWriter at a VPS?
*SOLVED* CDWriter at a VPS? [message #2369] Fri, 31 March 2006 09:16 Go to next message
slg2001 is currently offline  slg2001
Messages: 20
Registered: March 2006
Location: Germany
Junior Member

Hallo,

is it possible to add a hardware-cd-writer to a VPS as an normal device /dev/hdX ?

Because i want to use this VPS in a DMZ as an cd-burn-server over LAN.

Thanks.
slg2001


To follow the path:
look to the master, follow the master, walk with the master, see through the master, become the master.

[Updated on: Wed, 05 April 2006 14:46]

Report message to a moderator

Re: CDWriter at a VPS? [message #2370 is a reply to message #2369] Fri, 31 March 2006 09:28 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Sure, use smth like
vzctl set VEID --devnodes hdX:rw --save


The needed device file will be created in VE, and access will be granted.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: CDWriter at a VPS? [message #2372 is a reply to message #2369] Fri, 31 March 2006 11:49 Go to previous messageGo to next message
slg2001 is currently offline  slg2001
Messages: 20
Registered: March 2006
Location: Germany
Junior Member

Hi kir,

thanks for your support, but it doesn't work! If i mount a cd at the vps, i get the following messages.

#################### code #######################
[root@vps-burn ~]# mount /dev/hdh /media/cdrecorder
mount: unknown filesystem type 'iso9660'
[root@vps-burn ~]# mount /dev/hdh /media/cdrecorder -t iso9660
mount: unknown filesystem type 'iso9660'
[root@vps-burn ~]# ls -sla /dev/hd*
0 brw-r----- 1 root root 34, 0 Mar 31 15:23 /dev/hdg
0 brw-r----- 1 root root 34, 64 Mar 31 15:23 /dev/hdh
[root@vps-burn ~]
#################### code #######################

Some rpm package missing?

thanks
slg2001


To follow the path:
look to the master, follow the master, walk with the master, see through the master, become the master.
Re: CDWriter at a VPS? [message #2425 is a reply to message #2372] Tue, 04 April 2006 11:08 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
iso9660 filesystem isn't virtualized in openVZ...
Re: CDWriter at a VPS? [message #2429 is a reply to message #2372] Tue, 04 April 2006 11:35 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Oh, sorry forgot, that isofs is not allowed in VSP by default.

Can you simply apply the following patch please?

--- ./fs/isofs/inode.c.isofs	2006-03-20 18:29:32.000000000 +0300
+++ ./fs/isofs/inode.c	2006-04-04 15:39:52.000000000 +0400
@@ -1459,7 +1459,7 @@ static struct file_system_type iso9660_f
 	.name		= "iso9660",
 	.get_sb		= isofs_get_sb,
 	.kill_sb	= kill_block_super,
-	.fs_flags	= FS_REQUIRES_DEV,
+	.fs_flags	= FS_REQUIRES_DEV | FS_VIRTUALIZED,
 };
 
 static int __init init_iso9660_fs(void)


I think, we need to make this run-time configurable in future.


http://static.openvz.org/userbars/openvz-developer.png
Re: CDWriter at a VPS? [message #2434 is a reply to message #2429] Tue, 04 April 2006 20:03 Go to previous messageGo to next message
slg2001 is currently offline  slg2001
Messages: 20
Registered: March 2006
Location: Germany
Junior Member

OK, thanks for the patch.

I have only one question!

How to add this patch?

slg2001


To follow the path:
look to the master, follow the master, walk with the master, see through the master, become the master.
Re: CDWriter at a VPS? [message #2435 is a reply to message #2434] Tue, 04 April 2006 20:14 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

1. you need to install SRC RPM (http://openvz.org/download/kernel/)

2. somewhere in /usr/src (depending on host OS you use. e.g. redhat usually keeps them in /usr/src/redhat, SUSE in /usr/src/packages)
you will have directory SPECS and kernel-ovz.spec file in it.

3. in kernel-ovz.spec there is list of patches to apply.
For example, if you say the patch I proposed as /usr/src/.../SOURCES/isofs.patch, then in kernel-ovz.spec you need to add line (after the last 'PatchXXXX: ...' there):
Patch9999: isofs.patch

and line (right after the last '%patch ...':
%patch 9999 -p1


4. after that you simply need to build new RPMs with:
# rpmbuild -ba --target=i686 kernel-ovz.spec

5. build RPMs will be saved in /usr/src/.../RPMS/i686/


http://static.openvz.org/userbars/openvz-developer.png

[Updated on: Tue, 04 April 2006 20:14]

Report message to a moderator

Re: CDWriter at a VPS? [message #2450 is a reply to message #2369] Wed, 05 April 2006 12:48 Go to previous messageGo to next message
dwebwarm is currently offline  dwebwarm
Messages: 11
Registered: February 2006
Location: Hewlett-Packard Global De...
Junior Member
sorry for the offtopic, but what about configuration option, that sets the file systems that have to be virtualized in a VPS?

[Updated on: Wed, 05 April 2006 12:48]

Report message to a moderator

Re: CDWriter at a VPS? [message #2451 is a reply to message #2450] Wed, 05 April 2006 12:55 Go to previous messageGo to next message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

I want to make it runtime configurable. Do you mean this?


http://static.openvz.org/userbars/openvz-developer.png
Re: CDWriter at a VPS? [message #2452 is a reply to message #2451] Wed, 05 April 2006 13:13 Go to previous messageGo to next message
dwebwarm is currently offline  dwebwarm
Messages: 11
Registered: February 2006
Location: Hewlett-Packard Global De...
Junior Member
actualy yes...

something like:

vzctl set VPSID --fstype +iso9660,+nfs,-xfs --save

where +/- enables/disables a feature for the VPS.

what do you think about this?
Re: CDWriter at a VPS? [message #2453 is a reply to message #2369] Wed, 05 April 2006 13:31 Go to previous messageGo to next message
slg2001 is currently offline  slg2001
Messages: 20
Registered: March 2006
Location: Germany
Junior Member

Hi,

i build the new kernel from last rpm-source-package.

/usr/src/redhat/BUILD/ovzkernel-2.6.16/linux-2.6.16/fs/isofs /inode.c
----------------------- cut -------------------------
static struct file_system_type iso9660_fs_type = {
.owner = THIS_MODULE,
.name = "iso9660",
.get_sb = isofs_get_sb,
.kill_sb = kill_block_super,
.fs_flags = FS_REQUIRES_DEV | FS_VIRTUALIZED,
};
----------------------- cut -------------------------

installed kernel: 2.6.16-026test007.1.2006040502 #1 Wed Apr 5 13:27:32 CEST 2006 i686 i686 i386 GNU/Linux

But i get the same errors!
----------------------- cut -------------------------
[root@vps-burn ~]# mount /dev/hdg /media/cdrecorder
mount: unknown filesystem type 'iso9660'
[root@vps-burn ~]# mount /dev/hdh /media/cdrecorder
mount: unknown filesystem type 'iso9660'
----------------------- cut -------------------------

slg2001


To follow the path:
look to the master, follow the master, walk with the master, see through the master, become the master.
Re: CDWriter at a VPS? [message #2454 is a reply to message #2453] Wed, 05 April 2006 13:42 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Please, can you post
cat /proc/filesystems
output from VE?
Re: CDWriter at a VPS? [message #2455 is a reply to message #2453] Wed, 05 April 2006 14:09 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hmm... I've compiled kernel with this patch on my PC and
was able to mount /dev/hdc from inside VE.

Can you provide, please, .config-file, that you've used compiling your kernel?
Re: CDWriter at a VPS? [message #2456 is a reply to message #2369] Wed, 05 April 2006 14:25 Go to previous messageGo to next message
slg2001 is currently offline  slg2001
Messages: 20
Registered: March 2006
Location: Germany
Junior Member

Hi,

here are the desired informations.

slg2001


To follow the path:
look to the master, follow the master, walk with the master, see through the master, become the master.
Re: CDWriter at a VPS? [message #2457 is a reply to message #2456] Wed, 05 April 2006 14:34 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
I see, that you've compiled isofs as a module.

Please, load it before trying to use cd!
You can check, if the module is loaded, using lsmod command.

Re: CDWriter at a VPS? [message #2458 is a reply to message #2369] Wed, 05 April 2006 14:45 Go to previous message
slg2001 is currently offline  slg2001
Messages: 20
Registered: March 2006
Location: Germany
Junior Member

Hi,

it works! The iso9660 module was not loaded!

Thank's all for your support!!!

slg2001


To follow the path:
look to the master, follow the master, walk with the master, see through the master, become the master.
Previous Topic: allocate more ptys to ve
Next Topic: * SOLVED * Problem with last kernel SUSE10
Goto Forum:
  


Current Time: Tue Oct 08 20:19:15 GMT 2024

Total time taken to generate the page: 0.05701 seconds