Out of curiosity, can you share why running in a different time was important 
for you?  It does strike me that we could probably build support for this in 
the OS — changing the base offset at any rate, if there is a compelling 
justification for it.

        - Garrett

> On Mar 22, 2015, at 6:19 PM, Peter Toth <[email protected]> wrote:
> 
> Just a quick report back on this, for now I have managed to build a KVM 
> SmartOS instance and provision zones into it - it works like a charm.
> On top of this I was able to just image the original zones in SDC and point 
> the virtual KVM SmartOS to look for images in SDC.
> 
> Deploy the same SDC images and test them with time changes within KVM.
> 
> I am amazed how straightforward this was!
> 
> P
> 
> On Fri, Mar 20, 2015 at 1:38 PM, Peter Toth <[email protected] 
> <mailto:[email protected]>> wrote:
> That's a very interesting one! Compiled it up on SmartOS and unfortunately 
> core dumps.
> I am going to try it on a Linux box to verify whether it will work for our 
> applications (tomcat, nginx, php-fpm).
> 
> If it fails then I will try to set up a separate SmartOS box just for the 
> time related tests... 
> 
> Thanks heaps!
> P
> 
> On Fri, Mar 20, 2015 at 9:02 AM, Scott McWhirter 
> <[email protected] 
> <mailto:[email protected]>> wrote:
> There's also libfaketime, if it's just for a few processes.
> 
> On Thu, Mar 19, 2015 at 12:59 PM, Peter Toth via smartos-discuss 
> <[email protected] 
> <mailto:[email protected]>> wrote:
> Thanks Garrett, yes it needs to be a totally different time and SmartOS 
> operating system.
> Seems that my only option is to build a KVM SmartOS machine (SmartOS inside 
> SmartOS KVM).
> 
> On Fri, Mar 20, 2015 at 8:47 AM, Garrett D'Amore <[email protected] 
> <mailto:[email protected]>> wrote:
> You can change the timezone (offset) but the global clock can only be changed 
> in the global zone. 
> 
> If you have some particular need to run in a totally different time you can 
> use kvm. The clock will still tick in synch with the global zone but you can 
> set any base time you like. This cannot be done in a native zone. 
> 
> Sent from my iPhone
> 
> On Mar 19, 2015, at 12:39 PM, Peter Toth via smartos-discuss 
> <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>> Hi all,
>> 
>> Is anyone aware of any method to fake/change time in a SmartOS zone 
>> (non-global zone)?
>> 
>> Thanks
>> P
>> smartos-discuss | Archives 
>> <https://www.listbox.com/member/archive/184463/=now>  
>> <https://www.listbox.com/member/archive/rss/184463/22103350-51080293> | 
>> Modify <https://www.listbox.com/member/?&;> Your Subscription          
>> <http://www.listbox.com/>
> smartos-discuss | Archives 
> <https://www.listbox.com/member/archive/184463/=now>  
> <https://www.listbox.com/member/archive/rss/184463/22984186-fca9c571> | 
> Modify <https://www.listbox.com/member/?&;> Your Subscription   
> <http://www.listbox.com/>
> 
> 




-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to