Hello, We use a selfmade GUI environment which utilizes Xen to provide preinstalled OS images. The state of a specific vm is shown in the user''s GUI and used by the web application. To decide whether or not a vm is running we call "/usr/sbin/xm list <vmid>". If the call is successful we know that the vm is running. If it fails, we know that there''s no vm running ;-) So far so good... My question: what happens if a user triggers a reboot inside of the vm, e.g. by executing "reboot" in Linux. Are Xen vm images always running even if the user has rebooted the image or is it stopped for a short moment right before the OS image is restarted? And if it''s stopped, is it possible to say how long it is approximately stopped and/or not listed by "xm list"? I have tried to google some information but weren''t really successful and I don''t know how to find out on my own if the vm is stopped while it is rebooted. Thanks in advance! Ruediger Schmidt _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello, We use a selfmade GUI environment which utilizes Xen to provide preinstalled OS images. The state of a specific vm is shown in the user''s GUI and used by the web application. To decide whether or not a vm is running we call "/usr/sbin/xm list <vmid>". If the call is successful we know that the vm is running. If it fails, we know that there''s no vm running ;-) So far so good... My question: what happens if a user triggers a reboot inside of the vm, e.g. by executing "reboot" in Linux. Are Xen vm images always running even if the user has rebooted the image or is it stopped for a short moment right before the OS image is restarted? And if it''s stopped, is it possible to say how long it is approximately stopped and/or not listed by "xm list"? I have tried to google some information but weren''t really successful and I don''t know how to find out on my own if the vm is stopped while it is rebooted. Thanks in advance! Ruediger Schmidt _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ruediger Schmidt wrote:>My question: what happens if a user triggers a reboot inside of the >vm, e.g. by executing "reboot" in Linux. Are Xen vm images always >running even if the user has rebooted the image or is it stopped for >a short moment right before the OS image is restarted? And if it''s >stopped, is it possible to say how long it is approximately stopped >and/or not listed by "xm list"?Firstly, that fact that your question wasn''t answered probably means that no-one has the answer - just asking again isn''t the best way to go about things. As far as I know, the VM remains running when a guest is rebooting - but I''m no expert. -- Simon Hobson WANTED: "Software CD ROM Kit" for Canon CLBP 360-PS printer (Canon part no RH6-3612, or possibly RH6-3810, or RH6-3610 might do). I''ve a dead HD and need this CD so I can replace the disk and re-install the printer OS on it. This is NOT the same thing as the printer drivers to load on the computer - there''s no problem there. If anyone knows where I might get hold of one I''d be grateful - requests to Canon drew a blank, it''s been out of support for years. Alternatively, if anyone has one of these and would let me image their hard disk ... Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Actually, when a VM is rebooted, it is destroyed and a new one is created. This should only take as long as a destroy and create would take on the command line. The only way to determine how long it took or when it happened would be to look at the appropriate line(s) in the appropriate logs. I''m not an expert here and can''t tell you where to look, and in reality, I am simply making an assumption that is the opposite of Simons. My reasoning for this assumption is as follows: 1) The VM ID in xm list changes 2) The cpu time counter in xm list resets I can''t tell you which log(s) to look in to figure out what you want, but I should imagine it is possible. Dustin -----Original Message----- From: xen-users-bounces@lists.xensource.com [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Simon Hobson Sent: Friday, March 19, 2010 11:47 To: xen-users@lists.xensource.com Subject: Re: [Xen-users] State of a rebooting vm Ruediger Schmidt wrote:>My question: what happens if a user triggers a reboot inside of the >vm, e.g. by executing "reboot" in Linux. Are Xen vm images always >running even if the user has rebooted the image or is it stopped for >a short moment right before the OS image is restarted? And if it''s >stopped, is it possible to say how long it is approximately stopped >and/or not listed by "xm list"?Firstly, that fact that your question wasn''t answered probably means that no-one has the answer - just asking again isn''t the best way to go about things. As far as I know, the VM remains running when a guest is rebooting - but I''m no expert. -- Simon Hobson WANTED: "Software CD ROM Kit" for Canon CLBP 360-PS printer (Canon part no RH6-3612, or possibly RH6-3810, or RH6-3610 might do). I''ve a dead HD and need this CD so I can replace the disk and re-install the printer OS on it. This is NOT the same thing as the printer drivers to load on the computer - there''s no problem there. If anyone knows where I might get hold of one I''d be grateful - requests to Canon drew a blank, it''s been out of support for years. Alternatively, if anyone has one of these and would let me image their hard disk ... Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed author Gladys Hobson. Novels - poetry - short stories - ideal as Christmas stocking fillers. Some available as e-books. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users