guan qin | 1 May 2011 10:38
Picon

can't up the eth in the vm and access to network

Hi,

I encounter a problem that the eth can't be up in the VM by using VT-d.
I boot the VM using "virsh create vt_d.xml".
The VM could recongize the NIC which was assigned .then I do in VM as follows:
#cat /sys/class/net/eth0/operstate
down
#ifconfig eth0 up
#cat /sys/class/net/eth0/operstate
down
#ficonfig eth 10.100.0.5
#cat /sys/class/net/eth0/operstate
down
more system information is attached.(uname 、ifconfig 、lspci、cmdline...)

I can't figure out the reason why the eth is still down? can anyone help me ?

best regards,
qinguan



vt_d.xml:
<domain type='kvm'>
    <name>test</name>
    <description>just test using sriov!</description>
    <os>
        <type>hvm</type>
        <boot dev='hd'/>
    </os>
    <memory>524288</memory>
    <currentMemory>524288</currentMemory>
    <on_poweroff>destroy</on_poweroff>
    <on_reboot>restart</on_reboot>
    <on_crash>restart</on_crash>
 
    <features><pae/><acpi/><apic/></features>
    <clock offset='utc'/>
    <devices>
        <input type='mouse' bus='usb'/>     
        <disk type='file' device='disk'>
            <source file='/home/qinguan/exp/ubuntu_1.img'/>
            <target dev='hda' bus='virtio'/>
        </disk>   
        <emulator>/usr/bin/kvm</emulator>
        <graphics type='vnc' port='-1'/>     
        <hostdev mode='subsystem' type='pci' managed='yes'>
            <source>
                <address bus='0x0' slot='0x19' function='0x0'/>
            </source>
        </hostdev>    
    </devices>
</domain>

Attachment (system): application/octet-stream, 30 KiB
_______________________________________________
libvirt-users mailing list
libvirt-users@...
https://www.redhat.com/mailman/listinfo/libvirt-users
Marco van Beek | 2 May 2011 14:16

Re: can't up the eth in the vm and access to network

Hi,

If you find that the whole VM does not come up, then it may either be permissions due to apparmor, (if you are running it), or as I found out, unless your motherboard supports IOMMU, then PCI passthough (which is what you appear to be trying to do) will apparently never work.

What you would normally see in the xml file is something like this:

    <interface type='network'>
      <mac address='54:52:00:18:88:29'/>
      <source network='default'/>
    </interface>

or

    <interface type='bridge'>
      <mac address='00:16:3e:19:b4:38'/>
      <source bridge='br0'/>
    </interface>

Hope this helps.

Regards,

Marco

On 01/05/11 09:38, guan qin wrote:
Hi,

I encounter a problem that the eth can't be up in the VM by using VT-d.
I boot the VM using "virsh create vt_d.xml".
The VM could recongize the NIC which was assigned .then I do in VM as follows:
#cat /sys/class/net/eth0/operstate
down
#ifconfig eth0 up
#cat /sys/class/net/eth0/operstate
down
#ficonfig eth 10.100.0.5
#cat /sys/class/net/eth0/operstate
down
more system information is attached.(uname 、ifconfig 、lspci、cmdline...)

I can't figure out the reason why the eth is still down? can anyone help me ?

best regards,
qinguan



vt_d.xml:
<domain type='kvm'>
    <name>test</name>
    <description>just test using sriov!</description>
    <os>
        <type>hvm</type>
        <boot dev='hd'/>
    </os>
    <memory>524288</memory>
    <currentMemory>524288</currentMemory>
    <on_poweroff>destroy</on_poweroff>
    <on_reboot>restart</on_reboot>
    <on_crash>restart</on_crash>
 
    <features><pae/><acpi/><apic/></features>
    <clock offset='utc'/>
    <devices>
        <input type='mouse' bus='usb'/>     
        <disk type='file' device='disk'>
            <source file='/home/qinguan/exp/ubuntu_1.img'/>
            <target dev='hda' bus='virtio'/>
        </disk>   
        <emulator>/usr/bin/kvm</emulator>
        <graphics type='vnc' port='-1'/>     
        <hostdev mode='subsystem' type='pci' managed='yes'>
            <source>
                <address bus='0x0' slot='0x19' function='0x0'/>
            </source>
        </hostdev>    
    </devices>
</domain>

_______________________________________________ libvirt-users mailing list libvirt-users-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org https://www.redhat.com/mailman/listinfo/libvirt-users

-- Marco van Beek =================================================== Forget About IT Ltd. Grove Park Studios, 188-192 Sutton Court Rd, London, W4 3HR =================================================== T: 0870 757 2924 F: 0870 757 2926 M: 0788 770 3604 E: mvanbeek-rwwu0K+QY0X2q71RNyQK5l6hYfS7NtTn@public.gmane.org W: http://www.forgetaboutit.net/ =================================================== Forget About IT and FABIT are registered trademarks =================================================== Company Registered in England No. 05375739 ===================================================
_______________________________________________
libvirt-users mailing list
libvirt-users@...
https://www.redhat.com/mailman/listinfo/libvirt-users
David White | 3 May 2011 02:47
Favicon

Re: can't up the eth in the vm and access to network


did you 'unbind' the device from the host OS driver?

On 05/01/2011 01:38 AM, guan qin wrote:
Hi,

I encounter a problem that the eth can't be up in the VM by using VT-d.
I boot the VM using "virsh create vt_d.xml".
The VM could recongize the NIC which was assigned .then I do in VM as follows:
#cat /sys/class/net/eth0/operstate
down
#ifconfig eth0 up
#cat /sys/class/net/eth0/operstate
down
#ficonfig eth 10.100.0.5
#cat /sys/class/net/eth0/operstate
down
more system information is attached.(uname 、ifconfig 、lspci、cmdline...)

I can't figure out the reason why the eth is still down? can anyone help me ?

best regards,
qinguan



vt_d.xml:
<domain type='kvm'>
    <name>test</name>
    <description>just test using sriov!</description>
    <os>
        <type>hvm</type>
        <boot dev='hd'/>
    </os>
    <memory>524288</memory>
    <currentMemory>524288</currentMemory>
    <on_poweroff>destroy</on_poweroff>
    <on_reboot>restart</on_reboot>
    <on_crash>restart</on_crash>
 
    <features><pae/><acpi/><apic/></features>
    <clock offset='utc'/>
    <devices>
        <input type='mouse' bus='usb'/>     
        <disk type='file' device='disk'>
            <source file='/home/qinguan/exp/ubuntu_1.img'/>
            <target dev='hda' bus='virtio'/>
        </disk>   
        <emulator>/usr/bin/kvm</emulator>
        <graphics type='vnc' port='-1'/>     
        <hostdev mode='subsystem' type='pci' managed='yes'>
            <source>
                <address bus='0x0' slot='0x19' function='0x0'/>
            </source>
        </hostdev>    
    </devices>
</domain>

_______________________________________________ libvirt-users mailing list libvirt-users-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org https://www.redhat.com/mailman/listinfo/libvirt-users

_______________________________________________
libvirt-users mailing list
libvirt-users@...
https://www.redhat.com/mailman/listinfo/libvirt-users
ssaleh | 3 May 2011 03:12
Picon

LibVirtD Networking

I'm looking for the best way to setup networking support for VM's.   I have a small subnet with 6 routable IP's I
can use on the Internet.  So, I'd like to setup a host and have VM's on the public IP's.  The computer I have has 4
NICs.   I'd like to use one for a private 10.x.x.x and the others for the public facing VM's. 

Can I support 5 VM's with the three raminging NIC's?  Should I use virtual IP's for the 5 VM's?  Should I use a
single NIC for all 5 VM's (similar to what VMWare does)?

What is the best way to newtork this solution?

Thanks in advance.
Whit Blauvelt | 3 May 2011 04:09
Favicon

Re: LibVirtD Networking

On Mon, May 02, 2011 at 09:12:15PM -0400, ssaleh@... wrote:

> Can I support 5 VM's with the three raminging NIC's?  Should I use virtual
> IP's for the 5 VM's? Should I use a single NIC for all 5 VM's (similar to
> what VMWare does)?

The simplest would be to bridge one NIC for the host and your 5 VMs. Use
another for your LAN, and let the other two sit idle. If your router to the
ISP can handle bonding, bond two NICs then bridge that, in case one NIC
fails - but most likely it doesn't.

Whit
guan qin | 3 May 2011 09:38
Picon

Re: can't up the eth in the vm and access to network

Thanks a lot for your reply sincerely!
 
"
  • echo "8086 10b9" > /sys/bus/pci/drivers/pci-stub/new_id
  • echo 0000:01:00.0 > /sys/bus/pci/devices/0000:01:00.0/driver/unbind
  • echo 0000:01:00.0 > /sys/bus/pci/drivers/pci-stub/bind
  • "
    Then I can assign a NIC to the VM ,and the VM also can use the NIC to access the network.
     
    But , according  the libvirt guide that http://libvirt.org/formatdomain.html#elementsUSB shows:
    "
    When managed is "yes" for a PCI device, it is detached from the host before being passed on to the guest.
    "
    So should I still "unbind " the device from the host OS driver first ? If that ,What's the "detached" meaning ? thanks.
     
     
    best regards,
    qinguan
     
    在 2011年5月3日 上午8:47,David White <dwhite-zY4eFNvK5D9If6P1QZMOBw@public.gmane.org>写道:

    did you 'unbind' the device from the host OS driver?


    On 05/01/2011 01:38 AM, guan qin wrote:
    Hi,

    I encounter a problem that the eth can't be up in the VM by using VT-d.
    I boot the VM using "virsh create vt_d.xml".
    The VM could recongize the NIC which was assigned .then I do in VM as follows:
    #cat /sys/class/net/eth0/operstate
    down
    #ifconfig eth0 up
    #cat /sys/class/net/eth0/operstate
    down
    #ficonfig eth 10.100.0.5
    #cat /sys/class/net/eth0/operstate
    down
    more system information is attached.(uname 、ifconfig 、lspci、cmdline...)

    I can't figure out the reason why the eth is still down? can anyone help me ?

    best regards,
    qinguan



    vt_d.xml:
    <domain type='kvm'>
        <name>test</name>
        <description>just test using sriov!</description>
        <os>
            <type>hvm</type>
            <boot dev='hd'/>
        </os>
        <memory>524288</memory>
        <currentMemory>524288</currentMemory>
        <on_poweroff>destroy</on_poweroff>
        <on_reboot>restart</on_reboot>
        <on_crash>restart</on_crash>
     
        <features><pae/><acpi/><apic/></features>
        <clock offset='utc'/>
        <devices>
            <input type='mouse' bus='usb'/>     
            <disk type='file' device='disk'>
                <source file='/home/qinguan/exp/ubuntu_1.img'/>
                <target dev='hda' bus='virtio'/>
            </disk>   
            <emulator>/usr/bin/kvm</emulator>
            <graphics type='vnc' port='-1'/>     
            <hostdev mode='subsystem' type='pci' managed='yes'>
                <source>
                    <address bus='0x0' slot='0x19' function='0x0'/>
                </source>
            </hostdev>    
        </devices>
    </domain>

    _______________________________________________ libvirt-users mailing list libvirt-users <at> redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users


    _______________________________________________
    libvirt-users mailing list
    libvirt-users@...
    https://www.redhat.com/mailman/listinfo/libvirt-users
    Osier Yang | 3 May 2011 10:28
    Picon
    Favicon
    Gravatar

    Re: can't up the eth in the vm and access to network

    于 2011年05月03日 15:38, guan qin 写道:
    > Thanks a lot for your reply sincerely!
    > Actually ,if I do as what 
    > http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM said,:
    > "
    > # echo "8086 10b9" > /sys/bus/pci/drivers/pci-stub/new_id
    > # echo 0000:01:00.0 > /sys/bus/pci/devices/0000:01:00.0/driver/unbind
    > # echo 0000:01:00.0 > /sys/bus/pci/drivers/pci-stub/bind
    > "
    > Then I can assign a NIC to the VM ,and the VM also can use the NIC to 
    > access the network.
    > But , according the libvirt guide that 
    > http://libvirt.org/formatdomain.html#elementsUSB shows:
    > "
    > When |managed| is "yes" for a PCI device, it is detached from the host 
    > before being passed on to the guest.
    > "
    > So should I still "unbind " the device from the host OS driver first ? 
    > If that ,What's the "detached" meaning ? thanks.
    > best regards,
    > qinguan
    
    libvirt trys to detach the PCI device from host as preparation when
    starting up the domain, and it also binds the device to pci_stub
    driver, so it's strange that you need to do it manually? what's
    your libvirt version?
    
    > 在 2011年5月3日 上午8:47,David White <dwhite <at> speakeasy.net 
    > <mailto:dwhite <at> speakeasy.net>>写道:
    > 
    > 
    >     did you 'unbind' the device from the host OS driver?
    > 
    > 
    >     On 05/01/2011 01:38 AM, guan qin wrote:
    >>     Hi,
    >>
    >>     I encounter a problem that the eth can't be up in the VM by using
    >>     VT-d.
    >>     I boot the VM using "virsh create vt_d.xml".
    >>     The VM could recongize the NIC which was assigned .then I do in VM
    >>     as follows:
    >>     #cat /sys/class/net/eth0/operstate
    >>     down
    >>     #ifconfig eth0 up
    >>     #cat /sys/class/net/eth0/operstate
    >>     down
    >>     #ficonfig eth 10.100.0.5
    >>     #cat /sys/class/net/eth0/operstate
    >>     down
    >>     more system information is attached.(uname 、ifconfig 、lspci、
    >>     cmdline...)
    >>
    >>     I can't figure out the reason why the eth is still down? can
    >>     anyone help me ?
    >>
    >>     best regards,
    >>     qinguan
    >>
    >>
    >>
    >>     vt_d.xml:
    >>     <domain type='kvm'>
    >>     <name>test</name>
    >>     <description>just test using sriov!</description>
    >>     <os>
    >>     <type>hvm</type>
    >>     <boot dev='hd'/>
    >>     </os>
    >>     <memory>524288</memory>
    >>     <currentMemory>524288</currentMemory>
    >>     <on_poweroff>destroy</on_poweroff>
    >>     <on_reboot>restart</on_reboot>
    >>     <on_crash>restart</on_crash>
    >>
    >>     <features><pae/><acpi/><apic/></features>
    >>     <clock offset='utc'/>
    >>     <devices>
    >>     <input type='mouse' bus='usb'/>
    >>     <disk type='file' device='disk'>
    >>     <source file='/home/qinguan/exp/ubuntu_1.img'/>
    >>     <target dev='hda' bus='virtio'/>
    >>     </disk>
    >>     <emulator>/usr/bin/kvm</emulator>
    >>     <graphics type='vnc' port='-1'/>
    >>     <hostdev mode='subsystem' type='pci' managed='yes'>
    >>     <source>
    >>     <address bus='0x0' slot='0x19' function='0x0'/>
    >>     </source>
    >>     </hostdev>
    >>     </devices>
    >>     </domain>
    >>
    >>
    >>     _______________________________________________
    >>     libvirt-users mailing list
    >>     libvirt-users <at> redhat.com  <mailto:libvirt-users <at> redhat.com>
    >>     https://www.redhat.com/mailman/listinfo/libvirt-users
    > 
    > 
    > 
    > 
    > _______________________________________________
    > libvirt-users mailing list
    > libvirt-users <at> redhat.com
    > https://www.redhat.com/mailman/listinfo/libvirt-users
    
    _______________________________________________
    libvirt-users mailing list
    libvirt-users <at> redhat.com
    https://www.redhat.com/mailman/listinfo/libvirt-users
    Picon
    Favicon

    virt-install becoming a headache

    hi libvirt team!!

    i'have been trying to install a OS Guest in my Host(Centos 5.5 server with kernel 2.6.18-192 o 2.6.38) and i wasn't successfull. i have installed all the virtualization paquets of the Centos 5.5 installation, nothing more nothing less.

    my server is without GUI. i want my servers without gui too. so i want text based installation

    i enter the command bellow:

    [root <at> fsystem ~]# virt-install -n JPII -r 1024 --disk path=/data/images/disk.img -l /data/dist_img/CentOS_5.2_Final.iso --nographics --extra-args "console=tty0 console=ttyS0,115200" --network bridge:br0

    so it enters installation mode (text based), but when i enter the menu of "Installation Method" i can't do nothing. the option of "Local Cdrom" it doesn't recognise any cdrom device, the option of "Hard DISK" it sees 3 partitionds hda,hdb&hdc that i don't have and so it doesn't recognise nothing, the options http, ftp & nfs-install more the same.

    also if i change in the command -l for -c or --cdrom and then change the iso for the path of the cdrom device it doesn't even start the installation it prints Escape character ^] and it stucks there instead of entering the installation

    if you need more information of paquets, versions i'm using you are welcome to ask.

    thanks for all & you are my last hope!!!!

    Atentamente

    Ricard Santafé

     

    _______________________________________________
    libvirt-users mailing list
    libvirt-users@...
    https://www.redhat.com/mailman/listinfo/libvirt-users
    guan qin | 4 May 2011 08:31
    Picon

    Re: can't up the eth in the vm and access to network

    Hi,the libvirt version is 0.8.3, I just used  "apt-get install libvirt-bin" to install it under debian6.0.1a.
    Is it  necessary to install 0.8.4 or higher version ?

    Best regards,
    qinguan


    在 2011年5月3日 下午4:28,Osier Yang <jyang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>写道:
    于 2011年05月03日 15:38, guan qin 写道:
    > Thanks a lot for your reply sincerely!
    > Actually ,if I do as what
    > http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM said,:
    > "
    > # echo "8086 10b9" > /sys/bus/pci/drivers/pci-stub/new_id
    > # echo 0000:01:00.0 > /sys/bus/pci/devices/0000:01:00.0/driver/unbind
    > # echo 0000:01:00.0 > /sys/bus/pci/drivers/pci-stub/bind
    > "
    > Then I can assign a NIC to the VM ,and the VM also can use the NIC to
    > access the network.
    > But , according the libvirt guide that
    > http://libvirt.org/formatdomain.html#elementsUSB shows:
    > "
    > When |managed| is "yes" for a PCI device, it is detached from the host
    > before being passed on to the guest.
    > "
    > So should I still "unbind " the device from the host OS driver first ?
    > If that ,What's the "detached" meaning ? thanks.
    > best regards,
    > qinguan

    libvirt trys to detach the PCI device from host as preparation when
    starting up the domain, and it also binds the device to pci_stub
    driver, so it's strange that you need to do it manually? what's
    your libvirt version?

    > 在 2011年5月3日 上午8:47,David White <dwhite-zY4eFNvK5D9If6P1QZMOBw@public.gmane.org
    > <mailto:dwhite <at> speakeasy.net>>写道:
    >
    >
    >     did you 'unbind' the device from the host OS driver?
    >
    >
    >     On 05/01/2011 01:38 AM, guan qin wrote:
    >>     Hi,
    >>
    >>     I encounter a problem that the eth can't be up in the VM by using
    >>     VT-d.
    >>     I boot the VM using "virsh create vt_d.xml".
    >>     The VM could recongize the NIC which was assigned .then I do in VM
    >>     as follows:
    >>     #cat /sys/class/net/eth0/operstate
    >>     down
    >>     #ifconfig eth0 up
    >>     #cat /sys/class/net/eth0/operstate
    >>     down
    >>     #ficonfig eth 10.100.0.5
    >>     #cat /sys/class/net/eth0/operstate
    >>     down
    >>     more system information is attached.(uname 、ifconfig 、lspci、
    >>     cmdline...)
    >>
    >>     I can't figure out the reason why the eth is still down? can
    >>     anyone help me ?
    >>
    >>     best regards,
    >>     qinguan
    >>
    >>
    >>
    >>     vt_d.xml:
    >>     <domain type='kvm'>
    >>     <name>test</name>
    >>     <description>just test using sriov!</description>
    >>     <os>
    >>     <type>hvm</type>
    >>     <boot dev='hd'/>
    >>     </os>
    >>     <memory>524288</memory>
    >>     <currentMemory>524288</currentMemory>
    >>     <on_poweroff>destroy</on_poweroff>
    >>     <on_reboot>restart</on_reboot>
    >>     <on_crash>restart</on_crash>
    >>
    >>     <features><pae/><acpi/><apic/></features>
    >>     <clock offset='utc'/>
    >>     <devices>
    >>     <input type='mouse' bus='usb'/>
    >>     <disk type='file' device='disk'>
    >>     <source file='/home/qinguan/exp/ubuntu_1.img'/>
    >>     <target dev='hda' bus='virtio'/>
    >>     </disk>
    >>     <emulator>/usr/bin/kvm</emulator>
    >>     <graphics type='vnc' port='-1'/>
    >>     <hostdev mode='subsystem' type='pci' managed='yes'>
    >>     <source>
    >>     <address bus='0x0' slot='0x19' function='0x0'/>
    >>     </source>
    >>     </hostdev>
    >>     </devices>
    >>     </domain>
    >>
    >>
    >>     _______________________________________________
    >>     libvirt-users mailing list
    >>     libvirt-users-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org  <mailto:libvirt-users-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

    _______________________________________________
    libvirt-users mailing list
    libvirt-users@...
    https://www.redhat.com/mailman/listinfo/libvirt-users
    guan qin | 4 May 2011 08:55
    Picon

    Re: can't up the eth in the vm and access to network

    sorry for missing some information.
    I checkd the device that :
    # readlink /sys/bus/pci/devices/0000\:00\:19.0/driver
    ../../../bus/pci/drivers/pci-stub

    the device has been already claimed by pci-stub and under the control of pci_stub.
    so the reason that can't up the eth in VM maybe has nothing to do with the libvirt version.

    After doing the first three steps:How_to_assign_devices_with_VT-d_in_KVM
    (
    1. Modifying kernel config
    2. build kernel
    3. reboot and verify that your system has IOMMU support
    ),
    I use "virsh create vt_d.xml" instead of the ubind/bind and assign device.
    (the kvm and kvm_intel has already been loaded)
    should I do something others to use the VT_d?

    best regards,
    qinguan


    在 2011年5月4日 下午2:31,guan qin <qinguan0619-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>写道:
    Hi,the libvirt version is 0.8.3, I just used  "apt-get install libvirt-bin" to install it under debian6.0.1a.
    Is it  necessary to install 0.8.4 or higher version ?

    Best regards,
    qinguan


    在 2011年5月3日 下午4:28,Osier Yang <jyang <at> redhat.com>写道:
    于 2011年05月03日 15:38, guan qin 写道:

    > Thanks a lot for your reply sincerely!
    > Actually ,if I do as what
    > http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM said,:
    > "
    > # echo "8086 10b9" > /sys/bus/pci/drivers/pci-stub/new_id
    > # echo 0000:01:00.0 > /sys/bus/pci/devices/0000:01:00.0/driver/unbind
    > # echo 0000:01:00.0 > /sys/bus/pci/drivers/pci-stub/bind
    > "
    > Then I can assign a NIC to the VM ,and the VM also can use the NIC to
    > access the network.
    > But , according the libvirt guide that
    > http://libvirt.org/formatdomain.html#elementsUSB shows:
    > "
    > When |managed| is "yes" for a PCI device, it is detached from the host
    > before being passed on to the guest.
    > "
    > So should I still "unbind " the device from the host OS driver first ?
    > If that ,What's the "detached" meaning ? thanks.
    > best regards,
    > qinguan

    libvirt trys to detach the PCI device from host as preparation when
    starting up the domain, and it also binds the device to pci_stub
    driver, so it's strange that you need to do it manually? what's
    your libvirt version?

    > 在 2011年5月3日 上午8:47,David White <dwhite <at> speakeasy.net
    > <mailto:dwhite-zY4eFNvK5D9If6P1QZMOBw@public.gmane.org>>写道:
    >
    >
    >     did you 'unbind' the device from the host OS driver?
    >
    >
    >     On 05/01/2011 01:38 AM, guan qin wrote:
    >>     Hi,
    >>
    >>     I encounter a problem that the eth can't be up in the VM by using
    >>     VT-d.
    >>     I boot the VM using "virsh create vt_d.xml".
    >>     The VM could recongize the NIC which was assigned .then I do in VM
    >>     as follows:
    >>     #cat /sys/class/net/eth0/operstate
    >>     down
    >>     #ifconfig eth0 up
    >>     #cat /sys/class/net/eth0/operstate
    >>     down
    >>     #ficonfig eth 10.100.0.5
    >>     #cat /sys/class/net/eth0/operstate
    >>     down
    >>     more system information is attached.(uname 、ifconfig 、lspci、
    >>     cmdline...)
    >>
    >>     I can't figure out the reason why the eth is still down? can
    >>     anyone help me ?
    >>
    >>     best regards,
    >>     qinguan
    >>
    >>
    >>
    >>     vt_d.xml:
    >>     <domain type='kvm'>
    >>     <name>test</name>
    >>     <description>just test using sriov!</description>
    >>     <os>
    >>     <type>hvm</type>
    >>     <boot dev='hd'/>
    >>     </os>
    >>     <memory>524288</memory>
    >>     <currentMemory>524288</currentMemory>
    >>     <on_poweroff>destroy</on_poweroff>
    >>     <on_reboot>restart</on_reboot>
    >>     <on_crash>restart</on_crash>
    >>
    >>     <features><pae/><acpi/><apic/></features>
    >>     <clock offset='utc'/>
    >>     <devices>
    >>     <input type='mouse' bus='usb'/>
    >>     <disk type='file' device='disk'>
    >>     <source file='/home/qinguan/exp/ubuntu_1.img'/>
    >>     <target dev='hda' bus='virtio'/>
    >>     </disk>
    >>     <emulator>/usr/bin/kvm</emulator>
    >>     <graphics type='vnc' port='-1'/>
    >>     <hostdev mode='subsystem' type='pci' managed='yes'>
    >>     <source>
    >>     <address bus='0x0' slot='0x19' function='0x0'/>
    >>     </source>
    >>     </hostdev>
    >>     </devices>
    >>     </domain>
    >>
    >>
    >>     _______________________________________________
    >>     libvirt-users mailing list
    >>     libvirt-users-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org  <mailto:libvirt-users <at> redhat.com>


    _______________________________________________
    libvirt-users mailing list
    libvirt-users@...
    https://www.redhat.com/mailman/listinfo/libvirt-users

    Gmane