I am installing DPDK in Open vSwitch (OVS).
https://github.com/openvswitch/ovs/blob/master/INSTALL.DPDK.md
The problem is when I ran 2 commands like this.
export DB_SOCK=/usr/local/var/run/openvswitch/db.sock
sudo ovs-vswitchd --dpdk -c 0x1 -n 4 -- unix:$DB_SOCK --pidfile --detach
I got error:
ovs-vswitchd: DPDK support not built into this copy of Open vSwitch.
Could anyone please explain to me how to fix this pronlem.
Thank in advance for your help!
You need to compile OVS against DPDK with DPDK support enabled (--with-dpdk):
export DPDK_BUILD=$DPDK_DIR/x86_64-native-linuxapp-gcc/
./configure --with-dpdk=$DPDK_BUILD
make
make install
Related
i'm trying to use QEMU 5.x for research.
I got QEMU 5.2 source code from qemu.org and installed following instructions.
However, when i tried to run VM by this command:
qemu-system-x86_64 \
-monitor stdio \
--enable-kvm \
-m 4096 \
-cdrom ubuntu-20.04.iso \
-drive file=img.qcow,if=virtio \
-boot c
-rtc base=localtime \
-device virtio-keyboard-pci \
-vga virtio \
then the following texts are printed:
QEMU 5.2.0 monitor - type 'help' for more information
(qemu) VNC server running on 127.0.0.1:5900
then nothing shows up, while QEMU 4.x (used before) pops up a window showing guest ubuntu's GUI.
I'm using ubuntu 20.04. Hope anyone has breakthrough for this..
The message says that this QEMU is using the VNC protocol for graphics output. You can connect a VNC client to the 127.0.0.1:5900 port that it tells you about to see the graphics output.
If what you wanted was a native X11 window (GTK), then the problem is probably that you didn't have the necessary libraries installed to build the GTK support. QEMU's configure script's default behaviour is "build all the optional features that this host has the libraries installed for, and omit the features where the libraries aren't present". So if you don't have any of the GTK/SDL etc libraries when you build QEMU, the only thing you will get in the resulting QEMU binary is the lowest-common-denominator VNC support. If you want configure to report an error for a missing feature then you need to pass it the appropriate --enable-whatever option to force the feature to be enabled (in this case, --enable-gtk).
If you're running on Ubuntu and your apt sources.list file has deb-src lines in it, the easiest way to install all the dependencies that would get you the same feature list as the real Ubuntu QEMU package is to run "apt build-dep qemu". I recommend that you do that and then re-build QEMU, passing --enable-gtk to configure so you can confirm that the necessary dependencies were installed.
Trying to run the following command on VMFusion professional version 10.0.1:
vmrun -T fusion -gu user -gp pass runScriptInGuest /Path/On/Host/\ 10.12.vmwarevm/macOS\ 10.12.vmx /usr/bin/python /Path/On/Guest/a.py
Keep getting the following error:
Guest program exited with non-zero exit code: 1
Cannot find anything on this online.
Host: High-Sierra 10.13
Guest: Sierra 10.12.6
I updated the VM Tools as well.
Also, checked that the file does exists on VM and that running the script manually it does work
Any idea?
Thank you in advance!
Well, I found that the problem is the fact I was trying to run the python file, which is impossible on Mac.
What you need to do is to run the actual script inline!
E.G:
vmrun -T fusion -gu user -gp pass runScriptInGuest /Path/On/Host/\ 10.12.vmwarevm/macOS\ 10.12.vmx /bin/sh "/usr/bin/python -c \"`cat /Path/On/Host/To/Script`\"
So we will create a script on the host and cat it to the command!
Platform: Asuswrt-Merlin using kernel 2.6.36
How do you install/load the iptables "rpfilter" module in a bash script ?
As far as I know that netfilter module is not supported on kernels 2.6.x. The support was added starting with kernel 3.x
Please check the link bellow:
https://www.snbforums.com/threads/how-to-load-iptables-rpfilter-module.39842/
I wanted to install pip onto beagle bone black,and I tried this:
/usr/bin/ntpdate -b -s -u pool.ntp.org
opkg update && opkg install python-pip python-setuptools
then, it threw errors,but Unfortunately, I didn't log that errors.
this is the error:
Collected errors:
* parse_from_stream_nomalloc: Excessively long line at 6. Corrupt file?
it was occurred a week ago and was't solved yet.
I wanted to solve it now and I tried connect by ssh,but I failed.
When I ping to beagle bone, it responds, and Cloud9 IDE is working too but not ssh.
I don't think this is serious problem since I can connect to beagle bone by other methods: Cloud9 or so.
However, to use python on beagle bone, I need to connect by ssh.
Before trying to update and install python-pip, I could connect by ssh.
Do you have any ideas to solve this connection problem?
Reference:
Setting up IO Python Library on BeagleBone Black
View Full Version : [VU+ Duo] Error installing ipk on Vu+ Duo
note
I use default OS: Angstrom
I don't use SD card.
HOST PC is mac, OS.X 10.9
I checked this but this wasn't helpful
Cannot connect to beagle bone black
I could connect by GateOne SSH client, but still unable to connect from terminal.
(Question answered in the comments and in question edits. See Question with no answers, but issue solved in the comments (or extended in chat) )
The OP wrote:
I solved this problem by succeeding update opkg, so I will write the details:
First, remove beaglbone file
rm /var/lib/opkg/lists/beaglebone
and,remove lists folder
rmdir /var/lib/opkg/lists
then, set current time on beagle
/usr/bin/ntpdate -b -s -u pool.ntp.org
afterwards, update and upgrade opkg:
opkg update and opkg upgrade
now you can use opkg !
I'm trying to get started on libvirt with VirtualBox as a virtualization solution. I installed everything and VirtualBox itself is running when using their VBoxHeadless command.
However, libvirt fails to connect to VirtualBox:
# virsh -c vbox:///session
libvir: error : could not connect to vbox:///session
error: failed to connect to the hypervisor
I could not find any hints in the libvirt documentation that point to whether I have to make any domain specific configuration before using virsh.
Does anyone have a hint? Or even better, maybe a tutorial that works through the way of using libvirt, virsh or it's APIs (my later goal) from the ground up.
If you are doing this on Ubuntu, then the problem is their libvirt package is built without VirtualBox support.
You can rebuild the package with support very easily. Something like:
apt-get source -d libvirt
sudo apt-get build-dep libvirt
dpkg-source -x libvirt*dsc
Go into the libvirt directory and edit debian/rules so that instead of --without-vbox it says --with-vbox. You can add an entry to the top of debian/changelog so the package is compiled as a different version (e.g., append ~local1 to the version).
dpkg-buildpackage -us -uc -b -rfakeroot
You'll get new .debs built in the directory above. Use dpkg -i to install the relevant ones (libvirt0, libvirt0-bin, and whatever else you want).
Double-check whether or not you have write access to /var/run/libvirt/libvirt-sock.
The socket file should have permissions similar to:
$ sudo ls -la /var/run/libvirt/libvirt-sock
srwxrwx--- 1 root libvirtd 0 2010-08-24 14:54 /var/run/libvirt/libvirt-sock
I think it could be helpful also to increase the libvirt logging capabilities by running this in your shell:
export LIBVIRT_DEBUG=1
There is Ubuntu PPA for libvirt with VirtualBox support: https://launchpad.net/~cxl/+archive/ubuntu/libvirt