虚拟机迁移指南
虚拟机迁移指南
1. 确保虚拟机是持久化的虚拟机必须是持久化的才能进行迁移。如果虚拟机是临时的(transient),需要先将其配置为持久化。
将临时虚拟机转换为持久化虚拟机如果虚拟机是临时的,可以使用以下命令将其转换为持久化:
12sudo virsh dumpxml mgtest > /tmp/mgtest.xmlsudo virsh define /tmp/mgtest.xml
2. 在线迁移虚拟机确保虚拟机磁盘缓存设置为 none 或 directsync编辑虚拟机的 XML 配置文件:
1sudo virsh edit mgtest
在 <disk> 部分中添加或修改 <driver> 部分,将 cache 设置为 none 或 directsync,例如:
123456<disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='none' ...
禁用 Debian 系统的屏幕锁定和自动睡眠
禁用 Debian 系统的屏幕锁定和自动睡眠本文档提供了禁用 Debian 系统屏幕锁定和自动睡眠功能的详细步骤。
1. 禁用屏幕锁定首先,确保屏幕锁定被禁用。你可以使用以下命令:
12gsettings set org.gnome.desktop.screensaver lock-enabled falsegsettings set org.gnome.desktop.screensaver idle-activation-enabled false
2. 禁用系统睡眠要禁用系统的自动睡眠功能,可以通过 systemd 的配置文件来实现。编辑 /etc/systemd/logind.conf 文件:
1sudo nano /etc/systemd/logind.conf
找到并修改以下行:
123456789101112#HandleLidSwitch=suspendHandleLidSwitch=ignore#HandleLidSwitchDocked=ignoreHandleLidSwitchDocked=ignore#HandleSuspendKey=suspendHand ...
Hello World!
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment
POST TEMPLATE
写法 解释title 【必需】文章标题date 【必需】文章创建日期updated 【可选】文章更新日期tags 【可选】文章标签categories 【可选】文章分类keywords 【可选】文章关键字description 【可选】文章描述top_img 【可选】文章顶部图片cover 【可选】文章缩略图(如果没有设置top_img,文章页顶部将显示缩略图,可设为false/图片地址/留空)comments 【可选】显示文章评论模块(默认 true)toc 【可选】显示文章TOC(默认为设置中toc的enable配置)toc_number 【可选】显示toc_number(默认为设置中toc的number配置)toc_style_simple 【可选】显示 toc 简洁模式copyright 【可选】显示文章版权模块(默认为设置中post_copyright的enable配置)copyright_author 【可选】文章版权模块的文章作者copyright_author_href 【可选】文章版权模块的文章作者链接copyright_url 【可选】文章版权模 ...
Hexo Template
Hexo Template
A fast, simple & powerful blog framework, powered by Node.js. Here is the template of it.
Demo |Official Website |Documentation |GitHub
Get StartedThere are two lines to modify in _config.yml:
Set your site url at line 16. For example, if you use GitHub Page, set url as https://username.github.io/project:
1url: https://jiji.pro/hexo-template
Set your project name at line 107, if your project name is username or username.github.io, just remove it at the end of _config.yml: ...
