From 9e37c1b05af5af6a5716fdd07042e3d265b3199b Mon Sep 17 00:00:00 2001 From: geekpi Date: Mon, 7 Nov 2022 08:44:07 +0800 Subject: [PATCH] translated --- ...ine Image to Another Host Using GNOME Boxes.md | 84 ------------------- ...ine Image to Another Host Using GNOME Boxes.md | 84 +++++++++++++++++++ 2 files changed, 84 insertions(+), 84 deletions(-) delete mode 100644 sources/tech/20221101.7 ⭐️ Move Virtual Machine Image to Another Host Using GNOME Boxes.md create mode 100644 translated/tech/20221101.7 ⭐️ Move Virtual Machine Image to Another Host Using GNOME Boxes.md diff --git a/sources/tech/20221101.7 ⭐️ Move Virtual Machine Image to Another Host Using GNOME Boxes.md b/sources/tech/20221101.7 ⭐️ Move Virtual Machine Image to Another Host Using GNOME Boxes.md deleted file mode 100644 index fd611913af..0000000000 --- a/sources/tech/20221101.7 ⭐️ Move Virtual Machine Image to Another Host Using GNOME Boxes.md +++ /dev/null @@ -1,84 +0,0 @@ -[#]: subject: "Move Virtual Machine Image to Another Host Using GNOME Boxes" -[#]: via: "https://www.debugpoint.com/move-virtual-machine-image-another-host/" -[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" -[#]: collector: "lkxed" -[#]: translator: "geekpi" -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " - -Move Virtual Machine Image to Another Host Using GNOME Boxes -====== - -**This guide explains the steps you need to move a Virtual Machine Image to Another Host Using GNOME Boxes.** - -GNOME Boxes is a virtualization utility created by the GNOME project. This utility works as a front end for libvirt. libvirt is an open-source API, daemon, and management tool for managing platform virtualization. It supports different virtualization technologies such as KVM, Xen, VMware ESXi, QEMU, etc. - -If you want to create virtual machines using GNOME Boxes, [refer to this guide.][1] - -In this tutorial, I will explain how you can move any Virtual Machine image file (which is already created and running using GNOME Boxes) to a different host and run it. - -This way, you do not need to re-install the virtual machine from the operating system anymore. Moreover, it is portable and you can carry your virtual machine image in a USB stick. - -### How to Move Virtual Machine Image to Another Host Using GNOME Boxes - -I hope you have already had a virtual machine created in GNOME Boxes; if not, check out [this guide][1]. - -- GNOME Boxes and [libvert][2] uses below directories for the virtual machine images and configurations. You need to take backups of each, as mentioned below, carefully. - -- GNOME Boxes keeps the virtual machine’s physical image (usually in the size of GB) in the below path. For each of your virtual machines, you will find an image there. - -``` -~/.local/share/gnome-boxes/images/ -``` - -![Machine Images][3] - -- Copy the image file to your new host’s path: `~/.local/share/gnome-boxes/images/` - -- Copy the libvirt configuration XML from the below path to your new host’s same location. - -``` -~/.config/libvirt/qemu/ -``` - -![Image XML][4] - -- In the above path, you should see separate xml files for each of your virtual machines. Copy the one you need. - -- Open the below file in your current system. - -``` -~/.config/gnome-boxes/sources/'QEMU Session' -``` - -- Copy the section (from “[display” … to end of this section) which belongs to your virtual machine. You can easily find it using the name (see below – ‘last seen name’). - -![QEMU Session File][5] - -- Open the same above file in the other host machine and append the copied content at the end. Save the file. - -- Close all applications, including GNOME Boxes, in the new host machine. - -Open GNOME Boxes now, and you should see your virtual machine moved with its contents in your new host. - -You can now have a portable virtual machine that can easily carry and move around. Remember, the target machine should have GNOME Boxes installed to make this work. - --------------------------------------------------------------------------------- - -via: https://www.debugpoint.com/move-virtual-machine-image-another-host/ - -作者:[Arindam][a] -选题:[lkxed][b] -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 - -[a]: https://www.debugpoint.com/author/admin1/ -[b]: https://github.com/lkxed -[1]: https://www.debugpoint.com/2020/05/install-use-gnome-boxes/ -[2]: https://libvirt.org/ -[3]: https://www.debugpoint.com/wp-content/uploads/2020/06/Machine-Images.png -[4]: https://www.debugpoint.com/wp-content/uploads/2020/06/Image-XML.png -[5]: https://www.debugpoint.com/wp-content/uploads/2020/06/QEMU-Session-File.png diff --git a/translated/tech/20221101.7 ⭐️ Move Virtual Machine Image to Another Host Using GNOME Boxes.md b/translated/tech/20221101.7 ⭐️ Move Virtual Machine Image to Another Host Using GNOME Boxes.md new file mode 100644 index 0000000000..31986e2154 --- /dev/null +++ b/translated/tech/20221101.7 ⭐️ Move Virtual Machine Image to Another Host Using GNOME Boxes.md @@ -0,0 +1,84 @@ +[#]: subject: "Move Virtual Machine Image to Another Host Using GNOME Boxes" +[#]: via: "https://www.debugpoint.com/move-virtual-machine-image-another-host/" +[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" +[#]: collector: "lkxed" +[#]: translator: "geekpi" +[#]: reviewer: " " +[#]: publisher: " " +[#]: url: " " + +使用 GNOME Box 将虚拟机镜像移动到另一台主机 +====== + +**本指南介绍了使用 GNOME Boxes 将虚拟机镜像移动到另一台主机所需的步骤。** + +GNOME Boxes 是由 GNOME 项目创建的虚拟化程序。此程序用作 libvirt 的前端。 libvirt 是用于管理平台虚拟化的开源 API、守护进程和管理工具。它支持不同的虚拟化技术,如 KVM、Xen、VMware ESXi、QEMU 等。 + +如果你想使用 GNOME Boxes 创建虚拟机,[请参阅本指南][1]。 + +在本教程中,我将解释如何将任何虚拟机镜像文件(已使用 GNOME Boxes 创建并运行)移动到不同的主机并运行它。 + +这样,你不再需要从操作系统重新安装虚拟机。此外,它是便携式的,你可以将虚拟机镜像放在 U 盘中。 + +### 如何使用 GNOME Box 将虚拟机镜像移动到另一台主机 + +我希望你已经在 GNOME Boxes 中创建了一个虚拟机。如果没有,请查看[本指南][1]。 + +- GNOME Boxes 和 [libvert][2] 使用以下目录存储虚拟机镜像和配置。如下所述,你需要仔细备份每个文件。 + +- GNOME Boxes 将虚拟机的物理镜像(通常为数 GB 大小)保存在以下路径中。对于你的每个虚拟机,你都会在其中找到一个镜像。 + +``` +~/.local/share/gnome-boxes/images/ +``` + +![机器镜像][3] + +- 将图像文件复制到新主机的路径:`~/.local/share/gnome-boxes/images/` + +- 将 libvirt 的 XML 配置从以下路径复制到新主机的相同位置。 + +``` +~/.config/libvirt/qemu/ +``` + +![镜像 XML][4] + +- 在上述路径中,你应该会看到每个虚拟机的单独 xml 文件。复制你需要的那个。 + +- 在你当前的系统中打开以下文件。 + +``` +~/.config/gnome-boxes/sources/'QEMU Session' +``` + +- 复制属于你的虚拟机的部分(从“[display” ... 到本部分的末尾)。你可以使用名称轻松找到它(看下面的 “last seen name”)。 + +![QEMU 会话文件][5] + +- 在另一台主机上打开相同的上述文件并将复制的内容附加到末尾。保存文件。 + +- 关闭新主机中的所有应用,包括 GNOME Boxes。 + +现在打开 GNOME Boxes,你应该会看到你的虚拟机和它的内容一起被移动到新主机中。 + +你现在可以拥有一个可以轻松携带和移动的便携式虚拟机。请记住,目标机器应该安装了 GNOME Boxes 才能完成这项工作。 + +-------------------------------------------------------------------------------- + +via: https://www.debugpoint.com/move-virtual-machine-image-another-host/ + +作者:[Arindam][a] +选题:[lkxed][b] +译者:[geekpi](https://github.com/geekpi) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://www.debugpoint.com/author/admin1/ +[b]: https://github.com/lkxed +[1]: https://www.debugpoint.com/2020/05/install-use-gnome-boxes/ +[2]: https://libvirt.org/ +[3]: https://www.debugpoint.com/wp-content/uploads/2020/06/Machine-Images.png +[4]: https://www.debugpoint.com/wp-content/uploads/2020/06/Image-XML.png +[5]: https://www.debugpoint.com/wp-content/uploads/2020/06/QEMU-Session-File.png