cmusatyalab / elijah-cloudlet

Elijah cloudlet system
http://elijah.cs.cmu.edu/
43 stars 13 forks source link

something about the port forwarding #26

Closed appleprince88 closed 10 years ago

appleprince88 commented 10 years ago

Thank you for your last answer! Now I have a new question. Can I use tools (e.g. libvirt?)to modify the port forwarding after the vm has started?

krha commented 10 years ago

VM overlay file is a read-only file. So, there's no way you can permanently change port forwarding information after you create VM overlay. However, you can add port forwarding at runtime. If you take a look at cloudlet command help message, you can pass qemu-option when you execute command.

$ cloudlet Usage: cloudlet command [option] -- [qemu-options] EX) cloudlet.py base /path/to/disk.img

For example, you can perform VM synthesis with additional port forwarding.

$ cloudlet synthesis [path to base vm] [path to vm overlay] -- -redir tcp:2222::22 -redir tcp:8080::80

For you information, this port forwarding business does not exist at OpenStack version since we delegate network stack management to the OpenStack. But, installing openstack is not trivial.