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

Re: [libvirt-users] can't up the eth in the vm and access to network

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,
    在 2011年5月3日 上午8:47,David White <dwhite speakeasy net>写道:

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

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

    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
    #ifconfig eth0 up
    #cat /sys/class/net/eth0/operstate
    #ficonfig eth
    #cat /sys/class/net/eth0/operstate
    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,

    <domain type='kvm'>
        <description>just test using sriov!</description>
            <boot dev='hd'/>
        <clock offset='utc'/>
            <input type='mouse' bus='usb'/>     
            <disk type='file' device='disk'>
                <source file='/home/qinguan/exp/ubuntu_1.img'/>
                <target dev='hda' bus='virtio'/>
            <graphics type='vnc' port='-1'/>     
            <hostdev mode='subsystem' type='pci' managed='yes'>
                    <address bus='0x0' slot='0x19' function='0x0'/>

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

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