Results 1 to 9 of 9

Thread: VIrtualization on Ubuntu Suggestions

  1. #1
    Join Date
    Mar 2007
    Beans
    1,325

    VIrtualization on Ubuntu Suggestions

    I have not used Virtualization before. I have always install things directly on the hardware. I wish to try it out and do some testin, preferable when I upgrade my test machine to 20.04 LTS.

    I'd appreciate some recommendations on minimum hardware and which software to use. I would like to have virtual Linux and Virtual Windows. I will almost certainly need to upgrade my RAM and SSD, I may even need to upgrade my processor/motherboard. The machine I'd probably use has 8GB of RAM and an AMD FX 8350

  2. #2
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,614
    Distro
    Ubuntu

    Re: VIrtualization on Ubuntu Suggestions

    Thread moved to Virtualization

    What is the intentions as far as running virtual machines?

    Some users run VMs for OS testing.
    And some run VMs as an isolation method, to keep various tasks/programs restricted from one another. (more or less)
    And I'm sure others use it for other reasons.

    If you want to try testing out different OSes, then you might try using Virtualbox.
    It's nice and easy to use.
    Good for both beginners and old hats.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  3. #3
    Join Date
    Mar 2007
    Beans
    1,325

    Re: VIrtualization on Ubuntu Suggestions

    For right now its for learning and testing. I have some vague ideas for how I might eventually use it.

  4. #4
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: VIrtualization on Ubuntu Suggestions

    VirtualBox is probably the easiest solution. I recommend installing it by following the instructions here: https://www.virtualbox.org/wiki/Linu...xdistributions.

    On 20.04, replace "<mydist>" with "focal" like this:
    Code:
    deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian focal contrib
    Rather than editing /etc/apt/sources.list, I create a separate file in /etc/apt/sources.list.d/ called "virtualbox.list". It contains just the line above. You'll need to do this with sudo.
    Last edited by SeijiSensei; September 4th, 2020 at 07:42 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  5. #5
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: VIrtualization on Ubuntu Suggestions

    4gb of RAM is enough and any dual core CPU with vt-x capabilities will be fine for almost any needs, just don't expect heavy graphics to work well, but all non-GUI stuff runs fine. Properly tuned, about 95% of native performance is pretty common. Just be certain to share the available hardware nicely between all the running processes in all running VMs.

    The choice of hypervisor is a personal thing. Most people would start with virtualbox in the beginning, then switch to more powerful, more stable, solutions later. For desktop-on-desktop VMs, virtualbox isn't a bad choice. If you want servers - no GUI and plan to access the VMs by ssh 99.99999%, then kvm is stable and fast. KVM is what morst cloud providers use.

    I'd suggest starting with vbox. Carefully read the license for the "guest additions" - there are some unexpected things inside it.
    Last edited by TheFu; September 4th, 2020 at 09:44 PM.

  6. #6
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: VIrtualization on Ubuntu Suggestions

    Yes, I forgot to mention to install the Extension Pack. It includes things that cannot be distributed under an open-source license. One surprising item is USB support. The USB technology is encumbered.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  7. #7
    Join Date
    Oct 2014
    Location
    Santiago DR
    Beans
    177
    Distro
    Ubuntu

    Re: VIrtualization on Ubuntu Suggestions

    For years I just load the deb file and the extension pack and install both by double clicking it. I don't worry about automatic updates. Once in a month I check for a new point release, read the changes and afterwards I decide, whether the update is useful. Sometimes on a new install of Ubuntu you might have to install gcc, make and another deb file first. But using e.g. gdebi for the installation Linux will tell you what other deb files it needs.

    I strongly recommend Virtualbox for desktops, because advantages of Virtualbox are:

    • it is significantly more user-friendly than any other option;
    • It always has been reliable, all options work and that is not true for QEMU/KVM; I still run a Windows XP VM, that I installed in Virtualbox in Jan 2011 on a 32-bits Pentium 4.
    • it uses the CPU type of your host, while my Ryzen 3 2200G has been mismanaged by QEMU/KVM as an old Opteron server CPU.
    • you can activate Windows In a VM using the activation code glued to the PC.
    • I boot my Ubuntu VMs in 7-13 seconds from a nvme SSD.
    • The 3D Graphical user interface is good, but you loose significant performance compared to real hardware. However I can play Super Tux Kart and Extreme Tux Racer in a VM at 1080p and 60Hz. Modern commercial games will not play in this way. BUT I play Wolfenstein in a VM (in DOSBOX in Ubuntu VM on an Ubuntu VBox Host)

    I think for servers, you should use KVM, but I have no experience in that area.
    Last edited by lammert-nijhof; September 7th, 2020 at 02:10 PM.

  8. #8
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: VIrtualization on Ubuntu Suggestions

    The apt program (not apt-get) can traverse dependencies and install those required by .deb files too, but that doesn't remove the risks inherent with using .deb files directly.

    The only thing I miss from apt-get that apt doesn't provide is package-name globbing. With apt-get, we can remove lots of packages using wildcards. Apt doesn't support that ... yet.

    KVM + virt-manager has similar vGPU performance now to what virtualbox had thanks to the "SPICE" protocol and QXL guest drivers. I know people who use KVM for autoCAD work. And if you have 2 GPUs, KVM on the right hardware supports GPU passthru to a guest with exclusive access to one of the GPUs.

    KVM supports many more storage backends, but home users aren't likely to use most of those. For enterprise or professional setups, that's a powerful aspect in virtualization and management.

    KVM supports any sort of networking the Linux host can provide. This is different from Virtualbox and requires understanding how to setup the networking in a way you'd want. It is separate from the hypervisor, though libvirt does setup a NAT network by default. I never use it and have always setup a bridge network for my VMs, unless it was just a quick play VM. Networking between VMs and the host on the same physical machine are about 24 Gbps.
    Code:
    [  5]   0.00-10.00  sec  28.1 GBytes  24.1 Gbits/sec                  receiver
    A few days ago, I thought I'd gotten 36 Gbps. Oh well. Really fast networking is close enough.

    For beginners, vbox is not a bad tool, except the licensing, if you care about that stuff.

  9. #9
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: VIrtualization on Ubuntu Suggestions

    Quote Originally Posted by TheFu View Post
    For beginners, vbox is not a bad tool, except the licensing, if you care about that stuff.
    The VirtualBox base package contains the full VirtualBox source code and platform binaries and is licensed under the GNU General Public License, version 2. You can distribute and modify the base package, provided that you distribute all modifications under the GPLv2 as well.

    The VirtualBox Extension Pack is available under the VirtualBox Extension Pack Personal Use and Evaluation License, which is a free license for personal, educational or evaluation use, or an Enterprise License, which is a for-fee license that allows most commercial, non-distribution uses restricted by the PUEL.
    https://www.virtualbox.org/wiki/Licensing_FAQ

    The Extension pack contains some things that are encumbered by patents as I mentioned above. I'm don't see how Oracle can be any more open than to put the main code under the GPLv2 and the Extension Pack under a separate license for non-commercial use.
    Last edited by SeijiSensei; September 7th, 2020 at 04:07 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •