Subj : Running linux in vm on li
To   : Dumas Walker
From : Jazzy_J
Date : Sat Jul 14 2018 10:11 pm

-=> Dumas Walker wrote to All <=-

 DW> @VIA: VERT/CAPCITY2
 DW> @TZ: c12c
 DW> I have a few questions about running a linux distro in a vm on a linux
 DW> box.  I have read up about how to get Ethernet working over a bridge,
 DW> but have not yet got to installing the system, etc.

 DW> (1) When the qemu session is running, is it smart to use the xserver on
 DW> the vm instance?  If I am not using the xserver and running the vm
 DW> instance in console mode, will qemu catch certain keystrokes like
 DW> ctrl-alt-2 so I can switch to tty2 (for example) or will that keystroke
 DW> combo be interpreted by the host machine?

It depends on the purpose of the VM.  For example: I have a VM that
handles just mail.  I have no XServer on it because I only access it
through shell or with the email client.  

However, I have a VM or two that I keep around to test out different
distributions of Linux or run a Windows app or two and those have full
graphics capabilities.

 DW> (2) If I can follow the directions and get the Ethernet bride working
 DW> correctly, so that the network can see both the host and vm, I assume I
 DW> can also do things like mount nfs shares in the vm.  Is that a correct
 DW> assumption?

If you are using QEMU/KVM or LXD you can.

 DW> (3) Will I be able to access other hardware while in the vm, like a usb
 DW> port and whatever might be connected to it?

Yes.  It must be in the config file of the guest OS.  If you are using
QEMU/KVM I suggest virt-manager to help you visualize the management of
the config files.  It makes it a lot easier and faster than writing
your own config files.

I have a VM on my server that I use virt-manager to remote into and
then share my USB microphone with to do dictation.

 DW> I have run DOS in a vm on a linux box, but I expect this to be
 DW> different.  :)

Happy computing.  I have a few servers.  Most have both KVM/QEMU and
LXD virtuals/containers on them.  I've found that VirtualBox does a
wonderful job.  It's just that it is very similar to KVM/QEMU and I
don't see a purpose for it on a Linux Machine.  However, I do have
VirtualBox running on my Microsoft Hosts.

 DW> ---