[关闭]
@dyk 2016-03-09T12:49:34.000000Z 字数 1891 阅读 513

RollBack Workspace

CRIU

针对软件的回滚,docker也试用并且也已经加入docker的管理工具库

https://github.com/xemul/criu

安装

内核要求

  1. Linux kernel v3.11 or newer is required, with some specific options set. If your distribution does not provide needed kernel, you might want to compile one yourself.
  2. Configuring the kernel[edit]
  3. Most likely the first thing to enable is the CONFIG_EXPERT=y (General setup -> Configure standard kernel features (expert users)) option, which on x86_64 depends on the CONFIG_EMBEDDED=y (General setup -> Embedded system) one (welcome to Kconfig reverse chains hell).
  4. The following options must be enabled for CRIU to work:
  5. ## General setup options ## CONFIG_CHECKPOINT_RESTORE=y (Checkpoint/restore support)
  6. ## CONFIG_NAMESPACES=y (Namespaces support)
  7. ## CONFIG_UTS_NS=y (Namespaces support -> UTS namespace)
  8. ## CONFIG_IPC_NS=y (Namespaces support -> IPC namespace)
  9. ## CONFIG_PID_NS=y (Namespaces support -> PID namespaces)
  10. ## CONFIG_NET_NS=y (Namespaces support -> Network namespace)
  11. ## CONFIG_FHANDLE=y (Open by fhandle syscalls)
  12. ## CONFIG_EVENTFD=y (Enable eventfd() system call)
  13. ## CONFIG_EPOLL=y (Enable eventpoll support)
  14. ## Networking support -> Networking options options for sock-diag subsystem ## CONFIG_UNIX_DIAG=y (Unix domain sockets -> UNIX: socket monitoring interface)
  15. ## CONFIG_INET_DIAG=y (TCP/IP networking -> INET: socket monitoring interface)
  16. ## CONFIG_INET_UDP_DIAG=y (TCP/IP networking -> INET: socket monitoring interface -> UDP: socket monitoring interface)
  17. ## CONFIG_PACKET_DIAG=y (Packet socket -> Packet: sockets monitoring interface)
  18. ## CONFIG_NETLINK_DIAG=y (Netlink socket -> Netlink: sockets monitoring interface)
  19. ## Other options ## CONFIG_INOTIFY_USER=y (File systems -> Inotify support for userspace)
  20. ## CONFIG_IA32_EMULATION=y (x86 only) (Executable file formats -> Emulations -> IA32 Emulation)
  21. For some usage scenarios there is an ability to track memory changes and produce incremental dumps. Need to enable the CONFIG_MEM_SOFT_DIRTY=y (optional) (Processor type and features -> Track memory changes).
  22. Note we also have our custom kernel, which might contain some experimental CRIU related patches.
  23. centos 7 安装命令
  24. yum install criu
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注