KVM на Ubuntu Server 20.04 на Raspberry Pi4

У меня Ubuntu Server с рабочим столом LXQT, работающим на Raspberry Pi4 4GB. Я также установил на него KVM вместе с диспетчером виртуальных машин.

У меня вопрос: могу ли я использовать образ Ubuntu Server 20.04 Raspberry Pi 4 для создания виртуальной машины с той же ОС на Pi4? Если да, то как и как сделать то же самое?

Спасибо

KarnixKorner

1
задан 24 May 2020 в 16:27

1 ответ

You can do it, but be aware:

  1. The Pi is usually not powerful enough to run heavy VM Guests well -- you are likely to encounter some performance problems (overheating, lagging). Especially desktops.

    • Monitor your temperature sensors. Running a VM can heat up your Pi quickly - a proper cooling system is highly recommended to prevent unexpected thermal shutdowns.
    • Monitor your top and free usage on both Host and Guest if you encounter performance problems.
    • If you run into performance issues due to your host LXQT desktop, consider a lighter-weight web-based server frontend instead of a complete Desktop Environment (I recommend the cockpit package, which is in the Ubuntu repositories)
  2. The Pi image is customized for your hardware, but the VM application presents a much more generic hardware profile to the Guest. So using a pi-specific image is unnecessary (though you CAN do it).

    • Consider using a cloud-image for arm64 or armhf Guests instead of a pi-specific image. Cloud images tend to be smaller, and will make migrating the Guest to another Host easier someday.

    • LXD containers are flexible - an LXD container behaves like a VM for most purposes, but with a fraction of the overhead of the VM application + Guest. LXD can also run real VM images with a bit of tweaking. LXD containers are even easier to spin-up, easier to migrate, and have a smaller disk footprint than VMs.

    • If the application that you want to run in the VM is available in a Snap already, then Ubuntu Core is a very-lighweight snap-only flavor of Ubuntu. Of course, you could run the same sandboxed snap safely without a VM in the first place, too.

    • For advanced folks who really want to tweak the gears on a super-lightweight image: Ubuntu Base (instructions)

0
ответ дан 19 June 2020 в 21:36

Другие вопросы по тегам:

Похожие вопросы: