when libvirt xml define nic driver e1000, my vm fail to start

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi, all:
my xml  define interface as following:
    <interface type='ethernet'>
      <mac address='00:04:00:41:03:11'/>
      <model type='e1000'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
when run the command:
bash-4.1# virsh start root-vsys_v77
error: Failed to start domain root-vsys_v77
error: Unable to open /dev/net/tun, is tun module loaded?: No such file or directory

is my xml define error ? how can create my vm with nic driver e1000 ?


bash-4.1# libvirtd -v    ,yum install libvirt
2020-01-02 10:00:49.261+0000: 8349: info : libvirt version: 4.5.0, package: 23.el7 (CentOS BuildSystem <http://bugs.centos.org>, 2019-08-09-00:39:08, x86-02.bsys.centos.org)
2020-01-02 10:00:49.261+0000: 8349: info : hostname: NSG
2020-01-02 10:00:49.261+0000: 8349: warning : virGetHostnameImpl:719 : getaddrinfo failed for 'NSG': Name or service not known
2020-01-02 10:00:49.263+0000: 8349: info : libvirt version: 4.5.0, package: 23.el7 (CentOS BuildSystem <http://bugs.centos.org>, 2019-08-09-00:39:08, x86-02.bsys.centos.org)
2020-01-02 10:00:49.263+0000: 8349: info : hostname: NSG
2020-01-02 10:00:49.263+0000: 8349: info : virObjectNew:248 : OBJECT_NEW: obj=0x5605a6104de0 classname=virAccessManager
2020-01-02 10:00:49.263+0000: 8349: info : virObjectNew:248 : OBJECT_NEW: obj=0x5605a60f54e0 classname=virAccessManager

my emulator is qemu-3.0 ,i download qemu source code and compiled the emulator:
bash-4.1# /usr/local/bin/qemu-system-x86_64 --version
QEMU emulator version 3.0.0
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers

thanks !


 

<?xml version="1.0" encoding="UTF-8"?>
<domain type="kvm">
    <memoryBacking>
        <hugepages>
            <page size="2" unit="M" nodeset="0"/>
        </hugepages></memoryBacking>
    <os>
        <type arch="x86_64" machine="pc">hvm</type>
        <boot dev="hd"/>
    </os>
    <features>
        <acpi/>
    
        <apic/>
    </features>
    <cpu mode="host-model">
        <model fallback="allow"/>
    
        <numa>
            <cell id="0" cpus="0-1" memory="4" unit="G" memAccess="shared"/>
        </numa>
        <topology sockets="1" cores="2" threads="1"/>
    </cpu>
    <clock offset="utc">
        <timer name="rtc" tickpolicy="catchup"/>
    
        <timer name="pit" tickpolicy="delay"/>
    
        <timer name="hpet" present="no"/>
    </clock>
    <on_poweroff>destroy</on_poweroff>
    <on_reboot>restart</on_reboot>
    <on_crash>restart</on_crash>
    <pm>
        <suspend-to-mem enabled="no"/>
    
        <suspend-to-disk enabled="no"/>
    </pm>
    <devices>
        <emulator>/usr/local/bin/qemu-system-x86_64</emulator>
        <input type="mouse" bus="ps2"/>
    
        <input type="keyboard" bus="ps2"/>
    
        <graphics type="vnc" port="-1" autoport="yes">
            <listen type="address"/>
        </graphics>
        <video>
            <model type="cirrus" vram="16384" heads="1" primary="yes"/>
        </video>
        <memballoon model="virtio"/>
    
        <disk type="file" device="disk">
            <driver name="qemu" type="qcow2"/>
        
            <source file="/media/disk_image/root-vsys_v77.qcow2"/>
        
            <target dev="vda" bus="virtio"/>
        </disk>
        <disk type="file" device="disk">
            <driver name="qemu" type="qcow2"/>
        
            <source file="/media/disk_image/root-vsys_v77-data-disk-1.qcow2"/>
        
            <target dev="vdb" bus="virtio"/>
        </disk>
        <interface type="ethernet">
            <mac address="00:04:00:41:03:11"/>
        
            <model type="e1000"/>
        </interface>
        <interface type="ethernet">
            <mac address="00:04:00:41:03:14"/>
        
            <model type="e1000"/>
        </interface>
        <interface type="ethernet">
            <mac address="00:04:00:41:03:12"/>
        
            <model type="e1000"/>
        </interface>
        <interface type="ethernet">
            <mac address="00:04:00:41:03:13"/>
        
            <model type="e1000"/>
        </interface></devices>
    <name>root-vsys_v77</name>
    <memory unit="G">4</memory>
    <vcpu placement="static">2</vcpu>
    <numatune>
        <memory mode="strict" nodeset="0"/>
    </numatune></domain>
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux