OpenVZ Forum


Home » Mailing lists » Users » music and movie in the CT during the migration
music and movie in the CT during the migration [message #47049] Sun, 01 July 2012 13:18 Go to next message
Tommy is currently offline  Tommy
Messages: 9
Registered: November 2011
Junior Member
Hi all:
I'm testing the migration of OpenVZ with music and movie playing in the CT

1
As far as I know, I can enable the sound in CT through cloning the sound devices on the host
such as:
mknod /dev/snd/controlC0 c 116 6
mknod /dev/snd/pcmC0D0c c 116 5
mknod /dev/snd/pcmC0D0p c 116 4
mknod /dev/snd/seq c 116 3
mknod /dev/snd/timer c 116 2
chmod 660 /dev/snd/*
chown :audio /dev/snd/*
Is it the only way to enable sound in the container?

2
When I migrate the CT with sound in it, I got unsupported dev 116.
Is it possible to migrate CT with sound?

3
When I migrate the CT with movie play in it(no sound, see the video through vnc).
Nothing goes wrong but the movie hangs up at the moment CT suspend and I can't continue playing it.
The only thing I can do is closing the movie player and restarting the movie player.
So can the migration be achieved in some other way with movie going on playing?

Does anyone know about these problems or pls give me some clues!

Thanks!

Tommy
Re: music and movie in the CT during the migration [message #47115 is a reply to message #47049] Mon, 09 July 2012 17:21 Go to previous messageGo to next message
Tommy is currently offline  Tommy
Messages: 9
Registered: November 2011
Junior Member
hello guys,
Sorry for get this thread up again
But I really want to know some information about these and Does
anyone can give me some suggestion?

2012/7/1 Tommy Tang <thfbjhkhtdx@gmail.com>

> **
> Hi all:
> I'm testing the migration of OpenVZ with music and movie playing in the CT
>
> 1
> As far as I know, I can enable the sound in CT through
> cloning the sound devices on the host
> such as:
>
> mknod /dev/snd/controlC0 c 116 6
> mknod /dev/snd/pcmC0D0c c 116 5
> mknod /dev/snd/pcmC0D0p c 116 4
> mknod /dev/snd/seq c 116 3
> mknod /dev/snd/timer c 116 2
> chmod 660 /dev/snd/*
> chown :audio /dev/snd/*
>
> Is it the only way to enable sound in the container?
>
> 2
> When I migrate the CT with sound in it, I got unsupported dev 116.
> Is it possible to migrate CT with sound?
>
> 3
> When I migrate the CT with movie play in it(no sound, see the video
> through vnc).
> Nothing goes wrong but the movie hangs up at the moment CT suspend and I
> can't continue playing it.
> The only thing I can do is closing the movie player and restarting the
> movie player.
> So can the migration be achieved in some other way with movie going on
> playing?
>
> Does anyone know about these problems or pls give me some clues!
>
> Thanks!
>
> Tommy
>
>
>
>
>
>
>
>
>
>
Re: Re: music and movie in the CT during the migration [message #47116 is a reply to message #47115] Mon, 09 July 2012 17:42 Go to previous messageGo to next message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
Tommy,

----- Original Message -----
> Sorry for get this thread up again
> But I really want to know some information about these and Does
> anyone can give me some suggestion?

So far as I'm aware, OpenVZ does NOT virtualize the sound stuff at all... so if you are able to get it working inside of one container, I don't think it would work in any others.

Some remoting protocols do virtualize the sound stuff so maybe using one of those inside of a container will make that possible. The only one I'm aware of would be No Machine's NX 4 which isn't out yet but they have been releasing previews... and are upto Preview 6. I think it'll take a while before the final version comes out... and I haven't tried it inside of an OpenVZ container yet... so whether or not it would provide you with sound remains to be seen. I guess if NX does all of the work and doesn't rely on the underlying hardware/device support, it has a chance of working.

TYL,
--
Scott Dowdle
704 Church Street
Belgrade, MT 59714
(406)388-0827 [home]
(406)994-3931 [work]


--
TYL, Scott Dowdle
Belgrade, Montana, USA
Re: Re: music and movie in the CT during the migration [message #47120 is a reply to message #47116] Tue, 10 July 2012 09:39 Go to previous messageGo to next message
Tommy is currently offline  Tommy
Messages: 9
Registered: November 2011
Junior Member
Hi, Scott
Thank you for your reply and I'll have a try.
BTW:
Is it possible to virtualize the sound stuff. or OpenVZ does not do
this for it's impossible?
If this is possible, are there some stuffs which have been
virtualized in OpenVZ for me to draw from?

Thanks

2012/7/10 Scott Dowdle <dowdle@montanalinux.org>

> Tommy,
>
> ----- Original Message -----
> > Sorry for get this thread up again
> > But I really want to know some information about these and Does
> > anyone can give me some suggestion?
>
> So far as I'm aware, OpenVZ does NOT virtualize the sound stuff at all...
> so if you are able to get it working inside of one container, I don't think
> it would work in any others.
>
> Some remoting protocols do virtualize the sound stuff so maybe using one
> of those inside of a container will make that possible. The only one I'm
> aware of would be No Machine's NX 4 which isn't out yet but they have been
> releasing previews... and are upto Preview 6. I think it'll take a while
> before the final version comes out... and I haven't tried it inside of an
> OpenVZ container yet... so whether or not it would provide you with sound
> remains to be seen. I guess if NX does all of the work and doesn't rely on
> the underlying hardware/device support, it has a chance of working.
>
> TYL,
> --
> Scott Dowdle
> 704 Church Street
> Belgrade, MT 59714
> (406)388-0827 [home]
> (406)994-3931 [work]
Re: Re: music and movie in the CT during the migration [message #47124 is a reply to message #47116] Tue, 10 July 2012 14:16 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Sound stuff does not need to be virtualized by OpenVZ. There are already
enough pieces of software to facilitate it. For example, pulseaudio (which
is there by default in most modern distros) can work in client/server mode
over the network... so you can have a client in CT and server on the
hardware node.

As for the video, I remember we tried migrating some video streaming server
some 6-7 years ago, it went fine. As for client video, I guess you have to
find a VNC-like solution that lets you watch video without much delay...
Again, this has nothing to do with migration per se, since we basically
migrate apps and their networking connections.
10.07.2012 13:43 пользователь "Tommy Tang" <thfbjhkhtdx@gmail.com> написал:


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Re: Re: music and movie in the CT during the migration [message #47127 is a reply to message #47124] Tue, 10 July 2012 14:44 Go to previous message
Tommy is currently offline  Tommy
Messages: 9
Registered: November 2011
Junior Member
hi kir:
Thanks for your reply.

As for the video, I remember we tried migrating some video streaming server some 6-7 years ago, it went fine. As for client video, I guess you have to find a VNC-like solution that lets you watch video without much delay... Again, this has nothing to do with migration per se, since we basically migrate apps and their networking connections.
I actually use the vnc to connect to the CT and the movie is played through movie player
After I migrate the CT, the movie player can't continue playing the movie anymore




Tommy

From: Kir Kolyshkin
Date: 2012-07-10 22:16
To: users
Subject: Re: [Users] Re: music and movie in the CT during the migration
Sound stuff does not need to be virtualized by OpenVZ. There are already enough pieces of software to facilitate it. For example, pulseaudio (which is there by default in most modern distros) can work in client/server mode over the network... so you can have a client in CT and server on the hardware node.
As for the video, I remember we tried migrating some video streaming server some 6-7 years ago, it went fine. As for client video, I guess you have to find a VNC-like solution that lets you watch video without much delay... Again, this has nothing to do with migration per se, since we basically migrate apps and their networking connections.
10.07.2012 13:43 пользователь "Tommy Tang" <thfbjhkhtdx@gmail.com> написал:
Previous Topic: IPv4 in IPv6 tunnel
Next Topic: cat: /proc/self/mountinfo: Cannot allocate memory
Goto Forum:
  


Current Time: Wed May 08 10:22:02 GMT 2024

Total time taken to generate the page: 0.01439 seconds