У меня Ubuntu Server с рабочим столом LXQT, работающим на Raspberry Pi4 4GB. Я также установил на него KVM вместе с диспетчером виртуальных машин.
У меня вопрос: могу ли я использовать образ Ubuntu Server 20.04 Raspberry Pi 4 для создания виртуальной машины с той же ОС на Pi4? Если да, то как и как сделать то же самое?
Спасибо
KarnixKorner
You can do it, but be aware:
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.
top
and free
usage on both Host and Guest if you encounter performance problems.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)