OpenVZ Forum


Home » Mailing lists » Users » Access Cdrom, reboot and other questions
Re: Access Cdrom, reboot and other questions [message #9103 is a reply to message #9083] Mon, 18 December 2006 09:17 Go to previous messageGo to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Romeo Theriault wrote:
> Hi, I have a program which needs to access a cdrom. What is the best way to
> access a cdrom via a vps?
# vzctl set --devices
or mount cdrom from host system and then bindmount to /vz/root/<VEID>/mnt/cdrom

> On another note, I noticed that from within a vps if I send the command
> "reboot", the vps goes down but does not come back up. I need to start it
> from the HN. It seems to me that this worked for me a few days ago. But I
> recently upgraded to the recently released stable kernel. Is this a possible
> cause?
check cron jobs on your host. cron job should check
rebooted VEs every minute and start them back.
Probably you have not waited for a minute :)

> Also, is it recommended to shutdown all of the vps's before doing a reboot
> on the HN? I did a reboot today on the HN after installing the new kernel
> and got to thinking I probably should have stopped the vps's first. Is this
> true?
`service vz stop` does stop VEs first. So if you did a gracefull node reboot
VEs should have stopped automatically (service vz is stopped on node shutdown).
Sure, apps should be stopped first for gracefull applications shutdown.
Otherwise some applications can be disappointed by broken/not-closed data files.

> Thanks for any insight in these matters.
You are welcome!

Thanks,
Kirill
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OpenVZ vs. Virtuozzo...
Next Topic: Out-of-memory question
Goto Forum:
  


Current Time: Wed Oct 15 21:31:55 GMT 2025

Total time taken to generate the page: 0.30930 seconds