Skip to content
Guide

libvirt error in GNS3 @Linux

Khant Phyo

Contributor

1 min read

virbr0 is missing. You need to install libvirt

ကျွန်တော်တို့တွေ Linux OS တွေမှာ GNS3 ကို install လုပ်ရင် တက်တတ်တဲ့ Error ထဲက တစ်ခုဖြစ်တဲ့ virbr0 is missing. You need to install libvirt ကို ဘယ်လို Fix လုပ်ရမလဲ ဆိုတာ ပြောပြပေးမှာပဲ ဖြစ်ပါတယ်..

    Default network တစ်ခု ပြန်ပြီး config လုပ်ပေးလိုက်ချင်းအားဖြင့် issue ကို ဖြေရှင်းလို့ရပါတယ်။ Default config ဖိုင်လေးတစ်ခု အရင်ဖန်တီးလိုက်ပါ..ကျွန်တော်ကတော့ /tmp အောက်မှာပဲ Create လုပ်လိုက်ပါတယ်။

    Default.xml ဖိုင်ထဲမှာ အောက်ပါ စာသားများကိုကူးထည့်ပြီး ..  nat mode နဲ့ interface တစ်ခုကို setup လုပ်ပါ.

<network>
  <name>default</name>
  <bridge name="virbr0"/>
  <forward mode="nat"/>
  <ip address="192.168.122.1" netmask="255.255.255.0">
    <dhcp>
      <range start="192.168.122.2" end="192.168.122.254"/>
    </dhcp>
  </ip>
</network>

    ထို့နောက် အောက်ပါ Command ၃ကြောင်း တို့ကို အစဥ်လိုက် ရိုက်ထည့်ပါ။

  1. virsh net-define /tmp/default.xml 
    1. Usage >> net-define –file file-name                

Xml ဖိုင်ထဲမှာ ရှိနေတဲ့  setting ကိုယူပြီး Libvirt ထဲကို virtual network ထည့်ဖို့အတွက် သုံးပါတယ်။ 

–file (optional)

  1. sudo virsh net-start default
    1. Usage >> net-start –network network-identifier    

Inactive ဖြစ်နေတဲ့ virtual network တွေ define လုပ်ထားပြီး မစရသေးတဲ့ network တွေကို စဖို့ရအတွက် သုံးပါတယ်။

–network (optional)

Network-identifier = default    (The name or UUID for the virtual network being configured.)

  1. sudo virsh net-autostart default
    1. Usage >> net-autostart –network network-identifier –disable

Libvirt မှာရှိနေတဲ့ virtual network တွေကို automatically start လုပ်ဖို့ ရန်အတွက်သုံးသည်။

Network-identifier = default    (The name or UUID for the virtual network being configured.)

–network (optional)

–disable (optional) virtual network auto start ကို disable လုပ်ချင်သည့် အချိန်ကျမှ သုံးသည်။

PDF Download link >> Download with Chrome Browser (Click Here)

With BRs,

Khant Phyo

Meet ya Linux Foolish Guys

We had facing a lot of problem. Internet access, Electronic power, Mental and Physical issues …. all about is because of Military Coup. Sometimes feeling guilty, we are selfish ?…

Ko Ko Ye

1 min read

FOSS Compliance

Open Source ကိုသုံးတဲ့ ကုမ္ပဏီတွေက Compliance Program ကိုအဘယ်ကြောင့်လိုအပ်တာလဲ? Open Source Software ကိုကုမ္ပဏီတွေရဲ့အသုံးပြုမှုဟာ အခုအခါမှာစံပြအနေနဲ့ရပ်တည်နေပြီး 2015 ခုနှစ်ရဲ့…

Ko Ko Ye

5 min read