mtcp-stack / mtcp

mTCP: A Highly Scalable User-level TCP Stack for Multicore Systems
Other
1.98k stars 436 forks source link

run mtcp in virtual machine? #142

Closed luohaha closed 6 years ago

luohaha commented 7 years ago

Hi, Can I use only one physical machine, and open two virtual machine on it. Then one virtual machine run epwget and another one run epserver. Can it work?

ajamshed commented 7 years ago

Hi luohaha,

We don't provide support for virtualized environments just yet. We will let you know once this is implemented.

luohaha commented 7 years ago

@ajamshed can mtcp support vmxnet3? I found that mac address became 0:0:0:0:0:0 after bind igb_uio driver to it.

luohaha commented 7 years ago

@ajamshed When I run epserver, prints Initializing port 0... EAL: Error - exiting with code: 1 Cause: rte_eth_tx_queue_setup:err=-22, port=0, queueid: 0. Why it happens?

ajamshed commented 7 years ago

luohaha,

Since vmxnet3 is not officially support by mTCP just yet, that's why dpdk can't detect the device.

luohaha commented 7 years ago

@ajamshed Thank you! I run mTcp on virtual machine by some hack already.

johnson-li commented 6 years ago

@luohaha I'm also trying to run mTcp on virtual machines. May you share your solution?

luohaha commented 6 years ago

@johnson-li What's the problem now?

ppnaik1890 commented 6 years ago

Hi, I am also facing the same issue. Can you please help me by sharing your solution? Thanks, Priyanka

ajamshed commented 6 years ago

I have just merged a pull request on the development branch (devel) that lets the user run mTCP client and mTCP server on the same machine using containers. You will have to use onvm driver. Please see the README for more details. I hope this helps.

luohaha commented 6 years ago

@ajamshed good job!

luohaha commented 6 years ago

@ppnaik1890 which virtual machine do you use? More detail will be helpful.

ppnaik1890 commented 6 years ago

The VM is on a kvm hypervisor. I am using bess switch to connect the vms. The nic to the VM is done using a pmd port which uses virtio driver. I had tried to use virtio instead of igb_uio as suggested in one post but it too did not work. Thanks for helping.

eunyoung14 commented 6 years ago

Closing the issue since there was no activity for a while.