LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 12-21-2022, 01:34 PM   #1
Outabux
Member
 
Registered: Apr 2003
Location: Greenwood Mississippi
Distribution: Debian.
Posts: 241

Rep: Reputation: 30
Managing Type 1 & 2 Hypervisors for Desktop & Servers


Pretty much a newb at VMs. Previous experience only includes Virtualbox on a Windows Host for older DOS apps, trying out upgrades in Debian Testing or Sid, and trying out unique distributions for their focused functionality. However, at this time, I would like to create VMs inside both a Debian Linux desktop and server environment. Wow, VMs solve a host of issues even for the home user.

Here goes:

I have a dual booting desktop system with 11 Pro and a Debian installation tracking Bookworm presently. Installed are QEMU, KVM, and Xen (have yet to boot into Xen and configure) as a test bed. Virtual managers installed include Aqemu, Boxes, and Virt-Manager.

Goals:
1) To create a server using Xen with virtual machines comprising (1) Openmediavault and (2) a Debian based firewall.

2) Create virtual machines on the desktop for DOS and trying out upgrades and combinations of software before committing them to the host OS.

3) Implement snapshots.

4) Learn PCI-passthrough implementation for future projects (I've been bitten).

Questions:
1) Having found no definitive answer online, which virtual machine manager is best for the XEN server, XEN desktop? Virt-Manager appears to be the obvious choice. When trying to find pros and cons, all I could find was info regarding poor performance in Virt-Manager for what ever reason without listing an alternative.

2) Anyone with experience with Aqemu? Is it dead? Does it have the capability to manage/create both type 1 and 2 hypervisors for the desktop?

3) Would keeping Boxes around offer any advantage for the quick installation over say Virt-Manager or Aqemu?

4) Which, Virt-Manager, Aqemu, or alternative is best for PCI-passthrough, Secure Boot (TPM), and Nvidia drivers?

Yup, I'm a newb; please handle with kiddy gloves or not. Just learning about SSH (so you know I'm a newb!)
 
Old 12-22-2022, 10:58 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,157

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266
This is going to draw so many opinions (so I'll throw mine in first).

For the W11 system, I would get rid of dual boot and run VirtualBox. This lets you share easily and have all your apps running at the same time. It does require a lot of memory. I did this for years on a business laptop with 16M to do Linux development but have all my Office apps on the second monitor.

Under Linux, I've done everything with bash scripts and qemu/kvm config. But I'm a command-line guy. I guess virsh/virt-manager has an easier way to do passthru than:
Code:
echo "8086 10d3" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:03:00.0" >  /sys/bus/pci/devices/0000:03:00.0/driver/unbind
echo "0000:03:00.0" >   /sys/bus/pci/drivers/pci-stub/bind
For bare metal I've only used ESXi with web browser, but I've heard good things about XCP-ng for Xen and mean to try it.
 
Old 12-22-2022, 03:51 PM   #3
Outabux
Member
 
Registered: Apr 2003
Location: Greenwood Mississippi
Distribution: Debian.
Posts: 241

Original Poster
Rep: Reputation: 30
There are three machines presently. The first's primary function is generally productivity, education, gaming, etc. It is a Beast Canyon Nuc w/3080 running W11 with an installation of Virtualbox. Virtualbox is used for running old DOS programs and trying out upgrades to Debian Testing before committing on the second machine. Also, every now and then I decide to try out a new distro for whatever reason.

Somewhere along the way, machine learning caught my attention. So, I decided to go full in because of two sons and gaming--though they have consoles, they wouldn't have to fight over one system.

The second machine which I'm using now dual boots Debian and Windows 11 Pro with Secure Boot enabled. It consists of an EVGA Z590 Dark, 11900KF, two NVLinked 3090 GPUs... The W11Pro installed is a mirror of that of the Beast Canyon with an newer version of Office Pro Plus. The games' drive for the Windows installation consists of two SSDs striped. Debian is also installed on the same NVMe and has all the same programs as Windows minus Office; it is additionally set up for a project or two in machine learning (real reason for the build). It also consists of a Blu-Ray drive and several mechanical hard drives.

The third machine is a 3Beez Music Management System. It runs Ubuntu and proprietary software/hardware for music playback. Because of the amount of storage it contains and other factors, I'd like to use it as a server running Xen. With a CPU upgrade, it could accommodate two virtual machines. It is also a silent PC with no fans whatsoever. One would be a firewall and the other Openmediavault. That way I could keep the firewall and NAS separate--security. As an aside, back in my second B.S. days, I ran a 3.5" industrial motherboard with a Debian installation from compact flash used as a wireless router and firewall. Those were fun days.

It will have been a chore running back and forth with flash media and USB drives, as each of the desktop machines has its own backup solution. Even though, I've a router that can handle these chores, it's limited by USB 3.0 and a 1Gb connectivity. These machines have 2.5Gb Ethernet connectivity, and I'd like to take advantage of the speed.

I was just wondering from experience, what are the pros and cons of AQemu and Virt-Manager? I've initially decided to use Boxes for DOS and Windows because of perceived ease of use. However for Xen, which would be better from usability and performance between AQemu and Virt-Manager? The processor upgrade will be from Intel's 7th generation, maximum power but staying under the cooling solutions max thermal design power dissipation.

Yeah, I was long winded! I just wanted those who might respond, to intimately know my use cases. Maybe I just have to get in there and play.

I will be backing up the 3Beez's BIOS (customizations galore for quiet operation of the 6GB of storage in mechanical drives), system NVMe, and mechanical drives in case I'd like to return it to stock.
 
Old 12-26-2022, 01:40 PM   #4
Outabux
Member
 
Registered: Apr 2003
Location: Greenwood Mississippi
Distribution: Debian.
Posts: 241

Original Poster
Rep: Reputation: 30
Cloned VM Fails

Tried Gnome Boxes:
1) Did not want a preconfigured bloated system, so installed vm with debian 11 minimal netinstall letting Boxes do the heavy lifting. What I thought would be a configuration file for the vm being downloaded was in fact an entire distribution with equivalent of tasksel, Desktop Environment, and Gnome Desktop, the same as downloading a preconfigured system, an option I chose to defer. I quickly deleted that vm and elected to...
2) Same option to install with downloaded debian 11 minimum installation media, but chose to go through the installation manually indicating only basic system utilities in tasksel. Voila!
3) The plan--cloning the basic minimal installation for use trying new features, repositories... That didn't go so well. After trying to start the cloned vm, greeted with contents in first attachment.
Metadata from the config file of the base installation:
Code:
<metadata>
    <boxes:gnome-boxes xmlns:boxes="https://wiki.gnome.org/Apps/Boxes">
      <os-state>installed</os-state>
      <media-id>http://debian.org/debian/11:0</media-id>
      <media>/home/hackwrench/Downloads/debian-11.6.0-amd64-netinst.iso</media>
    </boxes:gnome-boxes>
    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
      <libosinfo:os id="http://debian.org/debian/11"/>
    </libosinfo:libosinfo>
    <edited:edited xmlns:edited="https://wiki.gnome.org/Apps/Boxes/edited">2022-12-26T09:01:45-0600</edited:edited>
  </metadata>
Metadata from the cloned installation:
Code:
<metadata>
    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
      <libosinfo:os id="http://debian.org/debian/11"/>
    </libosinfo:libosinfo>
    <edited:edited xmlns:edited="https://wiki.gnome.org/Apps/Boxes/edited">2022-12-26T09:01:45-0600</edited:edited>
    <boxes:gnome-boxes xmlns:boxes="https://wiki.gnome.org/Apps/Boxes">
      <os-state>installed</os-state>
      <media>/home/hackwrench/.local/share/gnome-boxes/images/debian11-uni</media>
    </boxes:gnome-boxes>
  </metadata>
At first glance, all that I can discern is the difference in <media>. Replacing the cloned <media> with the original did not change the outcome.

Bug?
Normal behavior?

Would I expect the same with Aqemu or Virt-Manager? Anything I did wrong or forgot to install? I thought that Boxes was supposed to be the easy no frills solution. Yeah, yadda yadda yadda; Virtual Box in Windows gets it right. Should I just uninstall Boxes and try Aqemu? On this machine, I don't need the power of Virt-Manager, at least yet. I'd really like to use the built in kernel features and apt.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2022-12-26 13-17-04.png
Views:	4
Size:	13.0 KB
ID:	40107  
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Hypervisors: The cloud's potential security Achilles heel LXer Syndicated Linux News 0 03-29-2014 04:42 PM
LXer: Type 1 Open Source Hypervisors and More LXer Syndicated Linux News 0 08-02-2013 11:10 AM
[SOLVED] Disabling Hypervisors u03pje Red Hat 1 11-11-2009 07:07 AM
LXer: Trusted hypervisors to enable commercial HPC@home services LXer Syndicated Linux News 0 01-25-2009 04:41 AM
LXer: Will hypervisors make Ubuntu and other Linux operating systems obsolete? LXer Syndicated Linux News 0 07-17-2008 06:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration