Giter VIP home page Giter VIP logo

kvmvlan's People

Contributors

nesanton avatar tonymmm1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kvmvlan's Issues

chỉnh sửa lệnh vi

  1. Mở file
    Cũng giống như các editor khác bạn cần sử dụng vi trước tên file
    vi /duong_dan_den_file
    ví dụ: vi /var/www/index.php sẽ mở file index.php trong editor
  2. Đóng file
    Khi đã làm việc với file xong, để đóng file bạn bấm "Esc" (phím Escape) rồi gõ
    :q
    để thoát và không lưu
    :wq
    lưu lại nội dung file và thoát
  3. Sửa file
    Trong vi có 2 chế độ là command mode và insert mode. Mặc định là command mode. Để chuyển sang chế độ sửa hoặc ghi vào file (insert mode) bạn sử dụng
    :i
    để chuyển sang chế độ insert mode (ký tự được ghi phía trước con trỏ)
    :a
    để chuyển sang chế độ insert mode (ký tự được ghi phía sau con trỏ)
    Lưu ý : trong chế độ insert mode bạn không thể dùng các command (các lệnh của vi như tìm kiếm ....), để có thể dùng command bạn cần thoát chế độ insert trước (bằng cách gõ Esc trên bàn phím)
  4. Di chuyển con trỏ
    Để di chuyển con trỏ bạn sử dụng các phím h,j,k,l hoặc các phím mũi tên tương ứng trên bàn phím
  5. Xóa dòng
    Để xóa 1 dòng, bạn di chuyển con trỏ đến đầu dòng đó và gõ dd
  6. Copy và paste
    Để copy 1 dòng, bạn gõ
    yy
    Để paste dòng đó, di chuyển đến nơi cần paste và gõ
    p
  7. Tìm kiếm
    Để tìm kiếm bạn gõ / hoặc ?, phía sau là từ cần tìm kiếm
    Ví dụ
    /ServerName
    sẽ tìm kiếm từ ServerName trong file
    Nếu vi nhảy đến kết quả đầu tiên chưa đúng ý bạn, để tiếp tục xem dòng khác gõ n
  8. Nhảy đến 1 dòng hoặc cột nào đó
    Gõ số dòng muốn nhảy đến và gõ G, nhảy đến cột nào đó gõ |
    ví dụ :
    89G
    sẽ nhảy đến dòng 89
    21|
    sẽ nhảy đến cột 21

Problems among hosts

It is a good job! thanks for Author.
but I find a fault when a cluster consists of many hosts.


Host A ===>using kvmvlan
Host B ===>using kvmvlan

There are four virutal machines.
VM1 ===> vlan id = 2, VM2 == > vlan id = 3 in Host A.
VM3 ===> vlan id = 3, VM4 ==> vlan id = 4 in Host B.

When Host A and B are connected by a switch, I found the following.

VM3 ping VM3, ok ! I think it right.
but other VMS can ping each other, too. I think some fault happens. why?

Thanks for the good idea.

Thanks for this awesome project.
I am not aware of the function of Linux builtin bridge before.
It helps me a lot. Thanks.

Permission denied

This is not really an issue, more of a "FYI" in the installation docs:
If the following is logged in /etc/libvirt/hooks/logs/daemon_start_bridge_init.log:

Traceback (most recent call last):
File "./bridge_init.py", line 244, in
main(ARGV)
File "./bridge_init.py", line 111, in main
ipr = IPRoute()
File "/usr/lib/python2.7/dist-packages/pyroute2/netlink/rtnl/iprsocket.py", line 26, in init
all_ns=all_ns)
File "/usr/lib/python2.7/dist-packages/pyroute2/netlink/nlsocket.py", line 341, in init
self.post_init()
File "/usr/lib/python2.7/dist-packages/pyroute2/netlink/nlsocket.py", line 874, in post_init
self._fileno)
File "/usr/lib/python2.7/socket.py", line 191, in init
_sock = _realsocket(family, type, proto)
socket.error: [Errno 13] Permission denied

Then the problem may be that libvirt may not open netlink datagram sockets. To fix

echo " network netlink dgram," > /etc/apparmor.d/local/usr.sbin.libvirtd

then reload apparmor.

Oskar Liljeblad

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.