FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2008
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    port forward on the fly or at startup with virt machine manager and kvm-qemu

    I'm running some vm's in FC12 with kvm-qemu and using virt machine manager. I'd like to have some ports automatically forward on startup and be able to add redirections on the fly.

    Redirection on the fly is talked about here, but I am getting lost on what should be basic instructions. http://www.linux-kvm.com/content/hos...edirection-fly

    As far as startup, In the past I just ran qemu from the cli and manually specified redirection with redir. I can't figure out how to do it with The virt machine manager which I am using to start my VM's now. I do not want the guests to see the host. Any help is appreciated.

    From cli startup without virt machine manager, it looked like this: qemu -m 256 -hda vm.img -redir tcp:5555::80 -redir tcp:5556::445 &

  2. #2
    Join Date
    Feb 2006
    Posts
    780
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by michael12345
    I'm running some vm's in FC12 with kvm-qemu and using virt machine manager. I'd like to have some ports automatically forward on startup and be able to add redirections on the fly.

    Redirection on the fly is talked about here, but I am getting lost on what should be basic instructions. http://www.linux-kvm.com/content/hos...edirection-fly

    As far as startup, In the past I just ran qemu from the cli and manually specified redirection with redir. I can't figure out how to do it with The virt machine manager which I am using to start my VM's now. I do not want the guests to see the host. Any help is appreciated.

    From cli startup without virt machine manager, it looked like this: qemu -m 256 -hda vm.img -redir tcp:5555::80 -redir tcp:5556::445 &
    You'll have to create/edit the XML configuration for the appropriate guest. There you can apply rules according to http://libvirt.org/formatdomain.html#elementCharChannel and/or http://libvirt.org/formatdomain.html#elementsCharTCP

    David

  3. #3
    Join Date
    Dec 2004
    Location
    Canada
    Age
    35
    Posts
    9,221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure how you want to access the VMs externally, but SSH's -R switch (and -L switch too) is very nice if you want to setup some quick port mapping while doing remote access.
    [+] My open source software and blog
    [+] Some of my howtos: (for full list, click here)

Similar Threads

  1. Qemu, Virtual Machine Manager and moving an image.
    By michael12345 in forum Using Fedora
    Replies: 0
    Last Post: 23rd October 2009, 05:33 AM
  2. Replies: 6
    Last Post: 12th April 2008, 03:29 PM
  3. Virtual Machine Manager vs. QEMU
    By early-ehlinger in forum Using Fedora
    Replies: 2
    Last Post: 8th February 2008, 02:58 PM
  4. install a xen machine using virt manager???
    By extendedping in forum Installation, Upgrades and Live Media
    Replies: 2
    Last Post: 23rd November 2007, 02:56 AM
  5. Replies: 4
    Last Post: 12th September 2007, 10:46 AM

Tags for this Thread

Posting Permissions

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