[libvirt-users] can't up the eth in the vm and access to network
by guan qin
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>
13 years, 6 months
[libvirt-users] LibVirtD Networking
by ssaleh@nrln.us
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.
13 years, 6 months
[libvirt-users] [Libvir] libvirt & vde_switch
by Robert Šmol
Hi,
I would like to ask about status of VDE and libvirt. I found a thread
from http://www.redhat.com/archives/libvir-list/2008-February/msg00030.html.
I am not interested in connecting the VDE to the outside world. I have
created a FW machine using macvtap. To this machine I would like to
attach machines from different zones (dmz, prod, cust). I was thinking
on using VDE and vlans (FW would have 1 interface in each vlan -
machines also), but I am not aware how to configure this in libvirt.
I now assume I can do the same setup with regular bridges for the moment
(benefit of VDE would be only 1 switch for many vlans).
Regards,
Robert
--
stereoIT - Open Source Technology Partners
http://www.stereoit.com
mobile: +420 776 762378
13 years, 6 months