[完成翻译]一篇[申领翻译]两篇

[完成翻译]一篇[申领翻译]两篇
This commit is contained in:
Peter Pan 2022-05-03 00:12:15 +08:00
parent 7bffabb6ef
commit 99a2d84b32
4 changed files with 171 additions and 173 deletions

View File

@ -1,169 +0,0 @@
[#]: subject: "10 Reasons to Run Linux in Virtual Machines"
[#]: via: "https://itsfoss.com/why-linux-virtual-machine/"
[#]: author: "Ankush Das https://itsfoss.com/author/ankush/"
[#]: collector: "lkxed"
[#]: translator: "PeterPan0106"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
10 Reasons to Run Linux in Virtual Machines
======
You can run any operating system as a virtual machine to test things out or for a particular use case.
When it comes to Linux, it is usually a better performer as a virtual machine when compared to other operating systems. Even if you hesitate to install Linux on bare metal, you can try setting up a virtual machine that could run as you would expect on a physical machine.
Of course, we dont rule out the possibility of running Linux distros in VM even when using Linux as your host OS.
Moreover, you get numerous benefits when trying to run Linux on virtual machines. Here, I shall mention all about that.
### Things to Keep in Mind Before Running Linux as a Virtual Machine
It is worth noting that running Linux on a virtual machine may not be a daunting task, but there are a few pointers that you should keep in mind.
Some of them include:
* The virtual machine performance will depend on your host system. If you do not have enough system resources to allocate, the virtual machine experience will not be pleasant.
* Certain features only work well with bare metal (hardware acceleration, graphics drivers, etc.)
* You should not expect intensive disk I/O tasks to work well, like testing games.
* The user experience with Linux virtual machines varies with the program you use. For instance, you can try VMware, VirtualBox, GNOME Boxes, and Hyper-V.
In addition to all these tips, you should also make a list of your requirements before choosing a virtual machine program to run Linux.
### Here Are 10 Benefits of Running Linux on Virtual Machines
While there are perks to using a Linux VM, you should consider the current opportunities available on your host OS. For instance, you may want to [install Linux using WSL on Windows][1] if you do not require a GUI desktop.
Once you are sure that you need a VM, heres why you should proceed with it:
#### 1. Easy Setup
![easy setup linux vm][2]
Compared to the traditional installation process on bare metal, setting up a virtual machine is often easier.
For Ubuntu-based distros, programs like VMware offer an **Easy Install** option where you have to type in the required fields for username and password; the rest will proceed without needing additional inputs. You do not need to select a partition, bootloader, or advanced configurations.
In some cases, you can also use prebuilt images offered by Linux distributions for a specific virtual program, where you need to open it to access the system. Think of it as a portable VM image ready to launch wherever you need it.
For example, you can check out how you can use [VirtualBox to install Arch Linux][3].
You may still need to configure things when installing other distros, but there are options where you need minimal effort.
#### 2. Does Not Affect the Host OS
![isolated linux vm][4]
With a virtual machine, you get the freedom to do anything you want, and it is because you get an isolated system.
Usually, if you do not know what youre doing with a Linux system, you could easily end up with a messed-up configuration.
So, if you set up a VM, you can quickly try whatever you want without worrying about affecting the host OS. In other words, your system will not be impacted by any changes to the VM because its entirely isolated.
Hence, a VM is the best way to test any of your ambitious or destructive changes that you may want to perform on bare metal.
#### 3. Resource Sharing
![sharing resources linux vm][5]
If you have ample free system resources, you can utilize the rest using a Virtual Machine for any other tasks. For instance, if you want a private browsing experience without leaving any traces on your host, a VM can help.
It can be a far-fetched example, but it is just one of the ideas. In that way, you get to use the resources fully without much hassle.
Also, as opposed to a dual-boot scenario, where you need to [install Linux alongside Windows][6] on separate disks or [install Windows after Linux][7], you need dedicated resources locked on to your tasks.
However, with a VM, you can always use Linux without locking up your resources, rather than temporarily sharing them to get your tasks done, which can be more convenient.
#### 4. Multi-Tasking 
![multitasking linux vm][8]
With the help of resource-sharing, you can easily multi-task.
For instance, you need to switch back and forth between a dual-boot setup to access Windows and Linux.
But, with a virtual machine, you can almost eliminate the need for [dual-booting Linux][9] and multi-task with two operating systems seamlessly.
Of course, you need to ensure that you have the required amount of system resources and external hardware (like dual monitors) to effectively use it. Nevertheless, the potential to multi-task increases with a Linux VM in place.
#### 5. Facilitates Software Testing
With virtualization, you get the freedom to test software on Linux distros by instantly creating various situations.
For instance, you can test different software versions simultaneously on multiple Linux VMs. There can be more use-cases, such as testing a software development build, early build of a Linux distro, etc.
#### 6. Great for Development
![development linux vm][10]
When you want to learn to code or just get involved in developing something, you want an environment free from any conflicts and errors.
So, a Linux VM is the perfect place to install new packages from scratch without worrying about conflicts with existing ones. For instance, you can [install and set up Flutter][11] to test things on Ubuntu.
If you mess up the system, you can quickly delete the VM and spin up a new one to learn from your mistakes.
You get a perfect isolated environment for development work and testing with a Linux VM.
#### 7. Learning or Research
Linux is something to explore. While you could use it for basic computing tasks, theres so much more that you can do with it.
You can learn how to customize the user interface, try some [popular desktop environments][12], install [various essential apps][13], and take control of your system without worrying about it.
If anything goes wrong, you create a new Linux VM. Of course, it is not just for general-purpose usage, but aspiring system administrators can also take this opportunity to test what they learn.
#### 8. Easy to Clone or Migrate
Virtual machines, in general, are easy to clone and migrate. With a Linux VM, as long as the virtual program is supported on another system or host OS, you can easily migrate it without any special requirements.
If you need to clone an existing virtual machine for any reason, that is pretty easy too, and it should take a couple of clicks to get it done.
#### 9. Try Variety of Distros
![distros linux vm][14]
Of course, with hundreds of Linux distros available, you can try all kinds of distros by creating a Linux virtual machine.
You may consider this a part of learning/research, but I believe trying out different distros is a massive task if you want to test things out before installing them on your system.
#### 10. Debugging
Whether it is for fun or serious research, debugging is relatively more straightforward in an isolated environment provided by the Linux VM.
You get the freedom to try various troubleshooting methods without thinking about the outcome. Also, you do not need root access to your host OS (if its Linux) to access the system configuration/files in the VM.
### Wrapping Up
If you are not an experienced user or depend on a different host OS, you can benefit from installing Linux using a virtual machine.
A Linux VM should be beneficial for development, learning, experimenting, or any other special use cases.
Have you used Linux on a virtual machine? What do you use it for? Let me know in the comments below.
--------------------------------------------------------------------------------
via: https://itsfoss.com/why-linux-virtual-machine/
作者:[Ankush Das][a]
选题:[lkxed][b]
译者:[PeterPan0106](https://github.com/PeterPan0106)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/ankush/
[b]: https://github.com/lkxed
[1]: https://itsfoss.com/install-bash-on-windows/
[2]: https://itsfoss.com/wp-content/uploads/2022/04/easy-setup-linux-vm.jpg
[3]: https://itsfoss.com/install-arch-linux-virtualbox/
[4]: https://itsfoss.com/wp-content/uploads/2022/04/isolated-linux-vm.jpg
[5]: https://itsfoss.com/wp-content/uploads/2022/04/sharing-resources-linux-vm.jpg
[6]: https://itsfoss.com/dual-boot-hdd-ssd/
[7]: https://itsfoss.com/install-windows-after-ubuntu-dual-boot/
[8]: https://itsfoss.com/wp-content/uploads/2022/04/multitasking-linux-vm.jpg
[9]: https://itsfoss.com/dual-boot-fedora-windows/
[10]: https://itsfoss.com/wp-content/uploads/2022/04/development-linux-vm.jpg
[11]: https://itsfoss.com/install-flutter-linux/
[12]: https://itsfoss.com/best-linux-desktop-environments/
[13]: https://itsfoss.com/essential-linux-applications/
[14]: https://itsfoss.com/wp-content/uploads/2022/04/distros-linux-vm.jpg

View File

@ -2,7 +2,7 @@
[#]: via: "https://opensource.com/article/22/5/inclusive-community-recognition"
[#]: author: "Ray Paik https://opensource.com/users/rpaik"
[#]: collector: "lkxed"
[#]: translator: " "
[#]: translator: "PeterPan0106"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
@ -60,7 +60,7 @@ via: https://opensource.com/article/22/5/inclusive-community-recognition
作者:[Ray Paik][a]
选题:[lkxed][b]
译者:[译者ID](https://github.com/译者ID)
译者:[PeterPan0106](https://github.com/PeterPan0106)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出

View File

@ -2,7 +2,7 @@
[#]: via: "https://www.debugpoint.com/2022/05/gnome-classic-ubuntu-22-04/"
[#]: author: "Arindam https://www.debugpoint.com/author/admin1/"
[#]: collector: "lujun9972"
[#]: translator: " "
[#]: translator: "PeterPan0106"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
@ -106,7 +106,7 @@ via: https://www.debugpoint.com/2022/05/gnome-classic-ubuntu-22-04/
作者:[Arindam][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
译者:[PeterPan0106](https://github.com/PeterPan0106)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出

View File

@ -0,0 +1,167 @@
[#]: subject: "10 Reasons to Run Linux in Virtual Machines"
[#]: via: "https://itsfoss.com/why-linux-virtual-machine/"
[#]: author: "Ankush Das https://itsfoss.com/author/ankush/"
[#]: collector: "lkxed"
[#]: translator: "PeterPan0106"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
在虚拟机中运行 Linux 的十个优点
======
你可以在虚拟机环境里运行任何操作系统,不论是测试还是为了一个特定的实例。
对于 Linux 而言,它在虚拟环境下的性能会优于其他操作系统。即便你可能会犹豫是否在物理机(裸金属)上安装 Linux 系统,你仍然可以在虚拟机中安装一个性能和物理机几乎一样好的 Linux 系统。
当然,这并不意味着宿主系统为 Linux 时你就不能在虚拟机实例中安装 Linux 了。
更何况,你在虚拟环境下使用 Linux 系统有许多好处。大致如下。
### 在虚拟环境下运行 Linux 之前的注意事项
在虚拟环境下运行 Linux 或许并不是艰巨的任务,但仍有以下几点你需谨记。
* 虚拟机的性能取决于宿主机的性能,如果你并没有足够的系统资源分配给虚拟机,那么虚拟机的使用体验注定不会很好。
* 某些特性仅在物理机(裸金属)上生效,包括硬件加速以及图形(显卡)驱动等。
* 密集的磁盘 I/O 任务性能会十分受限,例如游戏测试场景。
* 用户的Linux虚拟机实例体验会根据你所使用的虚拟化程序而发生变化这些选择包括 VMware VirtualBox GNOME Boxes 以及 Hyper-V 。
此外,你应当列出你的需求,并根据这些需求选定适当的虚拟化程序来运行你的 Linux 实例。
### 十条在虚拟环境中运行 Linux 的优点
尽管运行虚拟化 Linux 实例极具吸引力,你仍然应当首先考虑当前使用的宿主系统中已有的选择。例如如果你不需要图形化桌面,或许 Windows 操作系统中的 WSL 就可以满足你的需求。 [利用 WSL 在 Windows 系统中安装 Linux ][1]
一旦你确定了使用虚拟机,那么这些优点将会如影随形:
#### 1. 部署简便
![部署简便][2]
与在传统物理机(裸金属)上安装 Linux 相比,在虚拟机中部署一般会容易许多。
对于基于 Ubuntu 的发行版而言, VMware 会提供一个**快速安装**的选项,你仅需输入用户名和密码,其余过程将自动完成而无需其他操作。你将无需手动设置分区、引导以及更多高级设置。
在一些分发版,开发者会同时提供针对特定虚拟机的预构建镜像,只需打开就可使用。这就好像一个便携式虚拟机镜像,便于迁移同时开箱即用。
例如在 [这里][3] 你将看到如何在虚拟机中安装 Arch Linux 发行版。
对于其他的发行版,你或许仍需要进行一些配置,但一般都会有快速安装的选项令你可以轻松部署。
#### 2. 不会影响宿主机
![不会影响宿主机][4]
对于虚拟机,你可以更为随心所欲地使用,因为虚拟机系统和宿主机系统是隔离的。
很多时候,如果你并不熟悉 Linux 系统,你将很可能把配置弄得十分混乱。
所以在虚拟机里,你可以随意尝试而无需担心是否会影响到宿主机系统。换句话说任何虚拟机的操作都将不会影响到宿主机。
故此,虚拟机是你最好的试验场,尤其是对于一些激进或具有破坏性的试验。
#### 3. 资源可高效共享
![资源可高效共享][5]
如果你有过分充裕的系统资源,你可以使用虚拟机运行其他任务从而充分利用起来这部分闲置的系统资源。例如如果你需要一个十分私密的浏览环境,虚拟机将为你阻挡一切针对宿主机的追踪器。
这可能略显牵强但这仅仅是一个例子。基于这样的想法你将可以充分利用全部的系统资源。
同时,在双系统的应用场景下,需要决定 [先安装 Linux ][6] 或是 [先安装 Windows ][7] 并为之锁定相应的资源。
但利用虚拟机,你无需锁定部分资源也可以使用 Linux ,也不必为了特定的任务而临时共享资源,这样会方便许多。
#### 4. 多任务体验更好
![多任务体验更好][8]
有了资源共享机制,多任务会前所未有的容易。
在双系统的场景下,你需要反复重启切换才能使用 Linux 或 Windows 。
但如果使用虚拟机,你几乎不再需要 [双系统][9] ,两个系统将无缝协作并完成多任务。
当然你需要确认你拥有足够的系统资源和额外的硬件(例如显示器)来更高效地使用。而多任务的潜力也因 Linux 虚拟机的存在而愈发强大。
#### 5. 软件测试更为便捷
有了虚拟化,你将可以创建大量的 Linux 实例来模拟特定的使用场景,并对软件进行测试。
例如你可以在不同的 Linux 虚拟机中同步测试不同的软件版本。这将有丰富的使用场景,包括对开发版软件进行测试以及 Linux 发行版的早期测试等等。
#### 6. 开发更为便捷
![开发更为便捷][10]
当你在学习编程或者刚加入一个软件项目的开发,你会希望拥有一个没有冲突和错误的开发环境。
在 Linux 虚拟机里你可以从零开始搭建一个不会与已经存在的环境冲突的开发环境。例如你可以在 Ubuntu 上 [安装并测试 Flutter ][11] 。
如果环境出了问题,你可以轻而易举地删掉这个虚拟机并重新开始来修正错误。
Linux 虚拟机的隔离环境是一个绝佳的开发和测试环境。
#### 7. 学习和研究的好帮手
Linux 值得反复探索。除了基础运算任务,你可以做许多其他的事情。
你可以学习如何修改你的用户界面, [切换常见的桌面环境][12] [安装大量常用软件][13] ,与此同时仍能让一切处于掌控之中。
如果出现问题,新建一个 Linux 虚拟机就可以解决。当然,这并不仅限于验证技术,还可以启发系统管理员在其中测试他们所学的知识。
#### 8. 更容易复制和迁移
虚拟机可以很容易复制和迁移。只要虚拟化程序仍然被宿主机系统支持,你将可以在没有任何特别需求的情况下迁移系统。
不论因何原因,几次简单的点击就可以完成复制和迁移的任务。
#### 9. 尝试大量的发行版
![尝试大量的发行版][14]
你可以在虚拟环境下尝试数以百计的 Linux 发行版。
你或许会认为这和第七条重复了,但是我相信,测试一个发行版是一个巨大的系统性工程,尤其是当你决定切换发行版做为宿主机或其他用途时。
#### 10. 便于调试
不论是严肃的开发活动还是一般的研究,在隔离的虚拟环境中调试和除错相对而言会更简单。
你可以快速尝试大量的调试方法而无需考虑影响。同时在宿主机上你无需 root 权限如果你的宿主机是Linux系统的话便可以访问和修改虚拟机中的配置文件。
### 总而言之
如果你不熟悉正在使用的系统或者依赖不同的操作系统工作,虚拟机将是协助你工作的一大利器。
一个 Linux 虚拟机可以广泛用于开发、学习、试验或任何特定用途。
你在虚拟机中使用过 Linux 吗?都有哪些应用场景呢?欢迎留言评论!
--------------------------------------------------------------------------------
via: https://itsfoss.com/why-linux-virtual-machine/
作者:[Ankush Das][a]
选题:[lkxed][b]
译者:[PeterPan0106](https://github.com/PeterPan0106)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/ankush/
[b]: https://github.com/lkxed
[1]: https://itsfoss.com/install-bash-on-windows/
[2]: https://itsfoss.com/wp-content/uploads/2022/04/easy-setup-linux-vm.jpg
[3]: https://itsfoss.com/install-arch-linux-virtualbox/
[4]: https://itsfoss.com/wp-content/uploads/2022/04/isolated-linux-vm.jpg
[5]: https://itsfoss.com/wp-content/uploads/2022/04/sharing-resources-linux-vm.jpg
[6]: https://itsfoss.com/dual-boot-hdd-ssd/
[7]: https://itsfoss.com/install-windows-after-ubuntu-dual-boot/
[8]: https://itsfoss.com/wp-content/uploads/2022/04/multitasking-linux-vm.jpg
[9]: https://itsfoss.com/dual-boot-fedora-windows/
[10]: https://itsfoss.com/wp-content/uploads/2022/04/development-linux-vm.jpg
[11]: https://itsfoss.com/install-flutter-linux/
[12]: https://itsfoss.com/best-linux-desktop-environments/
[13]: https://itsfoss.com/essential-linux-applications/
[14]: https://itsfoss.com/wp-content/uploads/2022/04/distros-linux-vm.jpg