[Users] Access Cdrom, reboot and other questions

Kirill Korotaev dev at sw.ru
Mon Dec 18 04:24:24 EST 2006


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


More information about the Users mailing list