• [administrative][qemu][kvm] qemu使用--bridge-helper


    公司服务器,源码安装的 qemu-2.9.0。 不是yum装的。

    问题1:非超级用户的kvm权限问题:

      略,直接超级用户使用。

      也许有用? https://access.redhat.com/documentation/zh-CN/Red_Hat_Enterprise_Virtualization/3.4/html/Installation_Guide/Virtualization_Host_Groups.html

    问题2: bridge-helper怎么用

      实际上,我可以自己bridge,然后自己tap。 但是,今天我想用helper!

      实际上,我已经这么用了,

    [root@t206 arch-crypt]# qemu-system-x86_64 -vnc 0.0.0.0:1 --enable-kvm -smp 1 -m 1G -drive file=disk.qcow2,if=virtio -net bridge -net nic,model=virtio -cdrom ../iso/archlinux-2017.05.01-x86_64.iso 
    failed to parse default acl file `/usr/local/etc/qemu/bridge.conf'
    qemu-system-x86_64: -net bridge: bridge helper failed
    [root@t206 arch-crypt]#

      但是好像还需要配置一下? 看文档:

      http://wiki.qemu.org/Features/HelperNetworking

      搞不懂怎么用,文档太不详细了。。。。鬼知道这玩意怎么用。。。。

    经过实验:

      1. 首先要有一个bridge好的br0, 并且里边已经添加好了if,如:

    [root@t206 ~]# brctl show
    bridge name     bridge id               STP enabled     interfaces
    br0             8000.408d5c225318       yes             enp3s0
    [root@t206 ~]# 

      2.  修改配置helper的配置文件 

    [root@t206 ~]# cat /usr/local/etc/qemu/bridge.conf 
    allow br0
    [root@t206 ~]# 

      3.  可以用了

    [root@t206 arch-crypt]# qemu-system-x86_64 -vnc 0.0.0.0:1 --enable-kvm -smp 1 -m 1G -drive file=disk.qcow2,if=virtio -net bridge -net nic,model=virtio -cdrom ../iso/archlinux-2017.05.01-x86_64.iso 
    [root@t206 ~]# brctl show
    bridge name     bridge id               STP enabled     interfaces
    br0             8000.408d5c225318       yes             enp3s0
                                                            tap0
    [root@t206 ~]# 

      

  • 相关阅读:
    「HDU3640」I,Zombie
    气温变化折线图/matplotlib中文显示
    基本折线图
    根据统计数据画直方图
    matplotlib直方图绘制(hist)
    豆瓣Top250电影数据爬取学习
    pd.set_option参数设置
    django安装
    字典公共键
    字典排序
  • 原文地址:https://www.cnblogs.com/hugetong/p/6929553.html
Copyright © 2020-2023  润新知