Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th January 2010, 04:18 AM
michael12345 Offline
Registered User
 
Join Date: Nov 2008
Posts: 186
linuxubuntufirefox
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 &
Reply With Quote
  #2  
Old 7th January 2010, 04:07 PM
David Becker Offline
Registered User
 
Join Date: Feb 2006
Posts: 780
linuxfedorafirefox
Quote:
Originally Posted by michael12345 View Post
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
Reply With Quote
  #3  
Old 7th January 2010, 04:52 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
macossafari
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)
Reply With Quote
Reply

Tags
fly, forward, kvmqemu, machine, manager, port, startup, virt

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Qemu, Virtual Machine Manager and moving an image. michael12345 Using Fedora 0 23rd October 2009 05:33 AM
Problem with QEMU and Virtual Machine Manager after updates, guest machine slow otnateos Using Fedora 6 12th April 2008 03:29 PM
Virtual Machine Manager vs. QEMU early-ehlinger Using Fedora 2 8th February 2008 01:58 PM
install a xen machine using virt manager??? extendedping Installation and Live Media 2 23rd November 2007 01:56 AM
F 7 qemu-kvm (virtual machine manager) windows XP cpu utilization russellr Using Fedora 4 12th September 2007 10:46 AM


Current GMT-time: 05:28 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat