• running linux vm on a linux box

    From Mike Powell@1:2320/105 to All on Thu Jul 12 19:12:28 2018
    I have a few questions about running a linux distro in a vm on a linux box. I have read up about how to get Ethernet working over a bridge, but have not yet got to installing the system, etc.

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

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

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

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

    Mike
    --- SBBSecho 3.05-Linux
    * Origin: Capitol City Online - capitolcityonline.net (1:2320/105)
  • From Alexey Vissarionov@2:5020/545 to Mike Powell on Fri Jul 13 10:51:50 2018
    Good ${greeting_time}, Mike!

    12 Jul 2018 19:12:28, you wrote to All:

    I have a few questions about running a linux distro in a vm on a
    linux box. I have read up about how to get Ethernet working over a
    bridge,

    Hopefully those manuals didn't contain the brctl command...
    `man ip` (or `man ip-link`) will guide you in the right direction.

    but have not yet got to installing the system, etc.
    (1) When the qemu session is running, is it smart to use the xserver
    on the vm instance?

    Nothing prevents you from doing that.

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

    It seems you're confusing C-A-1 and C-A-F1. Anyway, the -monitor parameter allows you to control the Qemu running even with -display none

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

    Properly configured network bridge allows even boot-up over the PXE.

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

    man qemu
    /-usbdevice

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

    Not much.


    --
    Alexey V. Vissarionov aka Gremlin from Kremlin
    gremlin.ru!gremlin; +vii-cmiii-cmlxxvii-mmxlviii

    ... :wq!
    --- /bin/vi
    * Origin: http://openwall.com/Owl (2:5020/545)
  • From Kai Richter@2:240/77 to Mike Powell on Sat Jul 14 04:33:12 2018
    Hello Mike!

    12 Jul 18, Mike Powell wrote to All:

    (1) When the qemu session is running, is it smart to use the xserver
    on the vm instance?

    Remember that xserver is the machine where the graphical output will be created. Yes, if the host has an xserver already then it's smart to use the xserver of the host and connect it to xclient applications running in the vm.

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

    It am not sure. I recommend to learn the application "screen", which gives you virtual consoles in the vm that can be detached. The shell will be active where
    it was and you can connect to it later at the same point and continue. Running programms will continue to run in a detached screen. A normal login shell will terminate if you logout. In "screen" you can open more shells, i tried 15 so far, not sure where the limit is. But i am sure it don't want to miss screen.

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

    Yes. The vm is like a virtual pc in the network.

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

    Yes. But it can be tricky to get it running. rtfm recommended strongly.

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

    It depends to your dos programs if that is required. i would prefer dosbox before the dos vm. But thats personal taste.

    Regards

    Kai

    --- GoldED+/LNX 1.1.4.7
    * Origin: Monobox (2:240/77)
  • From Mike Powell@1:2320/105 to Kai Richter on Tue Jul 17 19:37:29 2018

    It am not sure. I recommend to learn the application "screen", which gives you virtual consoles in the vm that can be detached. The shell will be active where
    it was and you can connect to it later at the same point and continue. Running programms will continue to run in a detached screen. A normal login shell will terminate if you logout. In "screen" you can open more shells, i tried 15 so far, not sure where the limit is. But i am sure it don't want to miss screen.

    Thanks. Based on your recommendation I have tried this one out some. It is pretty neat. I will need to use it some more to learn more of the things I can do with it (shortcuts, etc.) but it does appear that it will do what I need it to.

    Mike
    --- SBBSecho 3.05-Linux
    * Origin: Capitol City Online - capitolcityonline.net (1:2320/105)