How do I launch a VM to a Specific XServer?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have been playing around with KVM QEMU on my Linux Mint KDE machine for a while. However, I have heard it is possible to run VMs in separate XServers, and I thought it would be cool to just press Ctrl+Alt+F# to get to my other VM. 
Is it possible? Are there any drawbacks to doing this?



I am currently using KVM QEMU with Virt-Manager. I haven't really done much to run VMs from the terminal.



Also, I also still consider myself a Linux newbie, so the more explanation, the better.







share|improve this question

















  • 1




    It's not that the VM is run on a separate X server, it's that the VM is attached to a discrete VT.
    – Ignacio Vazquez-Abrams
    Apr 29 at 3:26














up vote
0
down vote

favorite












I have been playing around with KVM QEMU on my Linux Mint KDE machine for a while. However, I have heard it is possible to run VMs in separate XServers, and I thought it would be cool to just press Ctrl+Alt+F# to get to my other VM. 
Is it possible? Are there any drawbacks to doing this?



I am currently using KVM QEMU with Virt-Manager. I haven't really done much to run VMs from the terminal.



Also, I also still consider myself a Linux newbie, so the more explanation, the better.







share|improve this question

















  • 1




    It's not that the VM is run on a separate X server, it's that the VM is attached to a discrete VT.
    – Ignacio Vazquez-Abrams
    Apr 29 at 3:26












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have been playing around with KVM QEMU on my Linux Mint KDE machine for a while. However, I have heard it is possible to run VMs in separate XServers, and I thought it would be cool to just press Ctrl+Alt+F# to get to my other VM. 
Is it possible? Are there any drawbacks to doing this?



I am currently using KVM QEMU with Virt-Manager. I haven't really done much to run VMs from the terminal.



Also, I also still consider myself a Linux newbie, so the more explanation, the better.







share|improve this question













I have been playing around with KVM QEMU on my Linux Mint KDE machine for a while. However, I have heard it is possible to run VMs in separate XServers, and I thought it would be cool to just press Ctrl+Alt+F# to get to my other VM. 
Is it possible? Are there any drawbacks to doing this?



I am currently using KVM QEMU with Virt-Manager. I haven't really done much to run VMs from the terminal.



Also, I also still consider myself a Linux newbie, so the more explanation, the better.









share|improve this question












share|improve this question




share|improve this question








edited Apr 29 at 4:22









G-Man

11.5k82656




11.5k82656









asked Apr 29 at 2:56









cmdrironman

1




1







  • 1




    It's not that the VM is run on a separate X server, it's that the VM is attached to a discrete VT.
    – Ignacio Vazquez-Abrams
    Apr 29 at 3:26












  • 1




    It's not that the VM is run on a separate X server, it's that the VM is attached to a discrete VT.
    – Ignacio Vazquez-Abrams
    Apr 29 at 3:26







1




1




It's not that the VM is run on a separate X server, it's that the VM is attached to a discrete VT.
– Ignacio Vazquez-Abrams
Apr 29 at 3:26




It's not that the VM is run on a separate X server, it's that the VM is attached to a discrete VT.
– Ignacio Vazquez-Abrams
Apr 29 at 3:26










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Switch to another tty n with Ctrl+Alt+Fn and run



xinit /usr/bin/yourcommand -- :2


Replace :1 with a free display number. :0 is mostly the number of your first X server.



Be aware that /usr/bin/yourcommand must contain the full path to your QEMU command; otherwise you will have an annoying xterm window on your display.



Depending on your system you may also need to specify the vt number; If you are on tty2, the command is:



 xinit /usr/bin/yourcommand -- :2 vt2


Be aware that only one (the visible) X server at a time is active. The other one is 'frozen' until you switch back to it.






share|improve this answer





















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440669%2fhow-do-i-launch-a-vm-to-a-specific-xserver%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Switch to another tty n with Ctrl+Alt+Fn and run



    xinit /usr/bin/yourcommand -- :2


    Replace :1 with a free display number. :0 is mostly the number of your first X server.



    Be aware that /usr/bin/yourcommand must contain the full path to your QEMU command; otherwise you will have an annoying xterm window on your display.



    Depending on your system you may also need to specify the vt number; If you are on tty2, the command is:



     xinit /usr/bin/yourcommand -- :2 vt2


    Be aware that only one (the visible) X server at a time is active. The other one is 'frozen' until you switch back to it.






    share|improve this answer

























      up vote
      0
      down vote













      Switch to another tty n with Ctrl+Alt+Fn and run



      xinit /usr/bin/yourcommand -- :2


      Replace :1 with a free display number. :0 is mostly the number of your first X server.



      Be aware that /usr/bin/yourcommand must contain the full path to your QEMU command; otherwise you will have an annoying xterm window on your display.



      Depending on your system you may also need to specify the vt number; If you are on tty2, the command is:



       xinit /usr/bin/yourcommand -- :2 vt2


      Be aware that only one (the visible) X server at a time is active. The other one is 'frozen' until you switch back to it.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Switch to another tty n with Ctrl+Alt+Fn and run



        xinit /usr/bin/yourcommand -- :2


        Replace :1 with a free display number. :0 is mostly the number of your first X server.



        Be aware that /usr/bin/yourcommand must contain the full path to your QEMU command; otherwise you will have an annoying xterm window on your display.



        Depending on your system you may also need to specify the vt number; If you are on tty2, the command is:



         xinit /usr/bin/yourcommand -- :2 vt2


        Be aware that only one (the visible) X server at a time is active. The other one is 'frozen' until you switch back to it.






        share|improve this answer













        Switch to another tty n with Ctrl+Alt+Fn and run



        xinit /usr/bin/yourcommand -- :2


        Replace :1 with a free display number. :0 is mostly the number of your first X server.



        Be aware that /usr/bin/yourcommand must contain the full path to your QEMU command; otherwise you will have an annoying xterm window on your display.



        Depending on your system you may also need to specify the vt number; If you are on tty2, the command is:



         xinit /usr/bin/yourcommand -- :2 vt2


        Be aware that only one (the visible) X server at a time is active. The other one is 'frozen' until you switch back to it.







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered May 20 at 22:58









        mviereck

        1,0971310




        1,0971310






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440669%2fhow-do-i-launch-a-vm-to-a-specific-xserver%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay