[libvirt-users] Understanding 802.1Qbh networking
by Chris Picton
Hi All
I am experimenting with a system comprising Cisco UCS Blades and Nexus
5k switches.
I am trying to understand the best way to define network interfaces for
my vms, without having to specify exact source device names or PCI
addresses, as I want to be able to migrate vms between nodes and not
have to worry about namespace or pcispace collisions.
At the moment my network definition looks like:
<interface type='direct'>
<mac address='52:54:00:c0:cb:2a'/>
<source dev='eth55' mode='private'/>
<virtualport type='802.1Qbh'>
<parameters profileid='TestKVMProfile'/>
</virtualport>
<model type='virtio'/>
<driver name='vhost'/>
</interface>
libvirt added a few extra settings when I added it:
<target dev='macvtap0'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
The issue I have with this config is that I am specifying a source dev
(eth55), which I would have to keep manual track of across all vms in my
infrastructure.
Is there a way to use a high-speed virtual network interface, which is
created on the fly for the vm, and supports migration cleanly to another
kvm host (ie, does not rely on any specific host resource names).
Sorry for any confusion caused from my lack of understanding :)
Thanks
Chris
--
Chris Picton
Executive Manager: Systems
Cell: 082 339 3135
Email: chris(a)nashua-ecn.com
Tel: 087 940 0031
Fax: 087 940 0001
Nashua ECN is a Division of Reunert Limited (Reg. No.
1913/004355/06).
The contents of this e-mail, which may include
one or more attachments, is strictly confidential, and is intended
solely for the use of the named recipient(s). If you have received
this e-mail in error, you are not permitted to and must not disclose,
distribute, or retain it, and are requested to please notify the
sender immediately by return e-mail and delete it thereafter.
12 years, 4 months
[libvirt-users] Libvirt Seg Fault when compiling either 0.9.13 or 0.10.0-rc1
by Shawn Furrow
Hi all,
I am trying to install a version of Libvirt that will be compatible with
qemu-kvm-1.1 but I cannot seem to get Libvirt to compile. During the make
portion of the install I get the following error:
...
make[4]: Entering directory `/home/shawn/libvirt-0.10.0/docs'
Generating 404.html.tmp
/bin/bash: line 5: 59204 Segmentation fault /usr/bin/xsltproc
--stringparam pagename $name --nonet --html ../docs/site.xsl 404.html.in >
404.html.tmp
make[4]: *** [404.html.tmp] Error 1
make[4]: Leaving directory `/home/shawn/libvirt-0.10.0/docs'
...
I have tried using "./configure --without-xen" and "./autogen
--without-xen" for the configure step and then I run make (and get the seg
fault error)
This error happens for both 0.9.13 and 0.10.0-rc1 so I'm pretty sure its
something on my end just don't know what. I am using Ubuntu 10.04 Server
and qemu-kvm-1.1. I have been able to get the qemu-kvm and libvirt-bin
distribution packages to work together but now I'm trying to build both of
them from source so that I can make some modifications to the source code.
Any help is appreciated.
Thanks,
Shawn
--
Virginia Tech
Bradley Department of Electrical and Computer Engineering
B.S. Electrical Engineering
B.S. Computer Engineering
12 years, 4 months
[libvirt-users] libvirt networking
by Dale Amon
Did something happen in the last day or two that would have
screwed up libvirt networking? I just started up a VM
that I last ran on Sunday and it has suddenly developed
issues with communication with the host machine.
Call it VM1 and VMHOST (the libvirt network) and VMHOST_EXT
VM1 ping -> Internet works
VM1 ssh -> Internet works
VM1 ping -> VMHost single ping goes through
VM1 ssh -> VMHost works
VMHOST_EXT ping -> VM1 works
VMHOST_EXT ssh -> VM1 fails
The only things that have changed were Ubuntu security
updates to VMHOST (It is an Oneiric).
The VM1 is intentionally kept unchanging to avoid
breaking some software which will not work on newer
releases (jaunty).
Again, I was using the VM and mounting fs from VMHOST
on it as recently as Sunday.
Either there is something deep inside Ubuntu that has
gotten deeply confused or someone has released an
update that breaks things.
12 years, 4 months
Re: [libvirt-users] automatically detaching PCI host devices from guest for SRIOV usage.
by Rajesh Kumar Mallah
| Dear Alex ,
|
| What logging level is useful for you ?
|
| Dear Rajesh,
|
| Level 1 (Debug) should be enough, but I guess it probably hasn't more
| help for us, you had better to login the guest then check network when you were
| meeting this issue again, for example, to check if network configuration is valid and try
| to restart relevant network services to see if the guest network can work again
| or something like that, In addition, you shut down the guest via running 'halt' in
| the guest,| Does it work for you if you use libvirt relevant interface such as
| 'virsh shutdown guest'
| or 'virsh destroy guest'?
Dear Alex ,
The Guest is a minimal debian squeeze install without any GUI desktop
in it . Below is the relevant /etc/network/interfaces file.
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 192.168.101.11
netmask 255.255.0.0
gateway 192.168.1.1
------------------------- end of interfaces file ----------------
the allow-hotplug on eth0 allow network to be automatically
configured once the attach-device is done. similarly detach-device
is handled gracefully.
Before posting we have done multiple permutations and combinations
of many config parameters and activities. This includes shutting down the
guest via 'halt' and 'destroy|shutdown' from the virsh interface. It does
not help or makes difference.
Most surprisingly there is no alarming messages that are shown
in any of the logs , be it the syslog of host or syslog of guest,
I have however not seen the libvirtd.log in debug mode which i
shall do in a while.
I would also like to tell that the issues was discussed in the
intel forum but no conclusive solution could be found. The link
is:
http://communities.intel.com/message/164211#164211
I am sorry for the bit late response but i assure my continued
feedback regarding this issue. We are working on a test (spare)
hardware and it is easy for us to test any configuration or patches
The platform is : SuperMicro AMD Opteron Hardware , with IOMMU
and SRIOV enabled , intel 82599EB based dual SFP+ port , linux
kernel 3.5.1 from kernel.org.
Regds
mallah
|
|
| Regards,
| Alex
|
|
|
| Regards,
| Rajesh Kumar Mallah
| Tel. 91-11-46710500 (Ext:303)
| Cell +919811255597
| Website: http://www.tradeindia.com/
| \|/ \|/ \|/ stop printing \|/ \|/ \|/
| | | | start planting | | |
12 years, 4 months
[libvirt-users] libvir: Domain Config error : internal error incorrect root element
by 何鑫
hi, When I use dom = virDomainDefineXML(conn, xml) to define xml, I countered a problem that " libvir: Domain Config error : internal error incorrect root element". Could you please tell me what's wrong with it? I tend to debug such problem above by gdb to step into virDomainDefineXML. When I press "step" in gdb, the console just shows the wrong messages, so I fail to access to the internal function of virDomainDefineXML. My libvirt's version is 0.98 allowing debug with the command "CFLAGS = -g -O2" in libvirt's Makefile. I installed libvirt-bin by "sudo apt-get install libvirt-bin"in ubuntu. Is there something wrong in my installing steps?
Thanks a lot!
Best Regards, Corey
12 years, 4 months
[libvirt-users] virsh command vol-upload purpose question
by Li, Chun Wen
I use virsh vol-upload to upload some data in a volume and use
vol-download to download these data from the same volume, both these two
commands work well. However, when I first use these two commands, I
thought I can use vol-upload to upload some file, then attach this
volume to a vm, and access the upload file in this vm. I did this
experiment, bud it not success. Once I upload a file into a volume,
attach it to a vm, then the vm can not recognize the file type of this
vm, if I mkfs to the volume, the file I upload disappear.
So, my question is the purpose of the vol-upload is just to save some
data in the volume outside vm? And at this point do we have method to
access the data upload to the volume from vm?
Thanks
Bests
Kimi Li
12 years, 4 months
[libvirt-users] What can cause "libvirtd dead but pid file exists."
by xuanmao_001
Hi, Eric:
I noticed that:
# service libvirtd status
libvirtd dead but pid file exists.
I operated VMs(like create, edit, delte) normally for a second, but the libvirtd on host was dead.
I checked the libvirtd.log but didn't find any useful information. so I want to know what can cause the problem?
another question:
I found the message in /var/log/message like "libvirtd: Could not find keytab file: /etc/libvirt/krb5.tab: Permission denied."
what is going wrong?
my libvirt version: 0.9.8.
thanks.
xuanmao_001
12 years, 4 months
[libvirt-users] Finding cause when "virsh list" hangs
by Whit Blauvelt
Hi,
Did something dumb - had two VM hosts with DRBD mirroring of VMs on the same
UPS, which failed and crashed them both. While I've got VMs running now on
both, "virsh list" and "virsh start" and so on are just hanging. I'm not
seeing it log anything in these instances - just hanging.
Both systems are Ubuntu 10.10, one with the stock libvirtd 0.8.3 and one
with 0.9.12 compiled from source. They each brought up their autostart VMs
okay. But I've got no working virsh shell on either now. The 0.9.12 host
was, to complicate this report, okay with virsh initially, or "virsh list"
anyway. But it hung with a "virsh start," and now "virsh list" fails too.
So ... what should I look for to have been left where by the crash that's
making virsh hang?
Is there any way to get virsh to provide debugging info in a
coffee-addled-friendly way? I've of course Googled "virsh list" hanging, but
without finding anything that seems to directly apply to my case, although
it's been seen before.
Thanks,
Whit
12 years, 4 months
[libvirt-users] disappeared VM in virsh
by Akendo
Hi guys,
one of my VM has disappeared in libvirtd. I still can see the process
with ps and the configuration file is as well there. But it is not
displayed or found with virt-manger/virsh.
virsh list shows only 4 of 5, but there is no real error message.
I restarted the daemon without solving the problem. Any idea what to do?
Here some info:
Compiled against library: libvir 0.9.13
Using library: libvir 0.9.13
Using API: QEMU 0.9.13
Running hypervisor: QEMU 0.12.1
uname -a
Linux 2.6.32-220.17.1.el6.x86_64 #1 SMP Wed May 16 00:01:37 BST 2012
x86_64 x86_64 x86_64 GNU/Linux
It's a CentOS 6
so far
Akendo
12 years, 4 months
[libvirt-users] Libvirt Qemu compatibility
by Shawn Furrow
Hi all,
I am using Ubuntu 10.04 Server and I am trying to figure out which versions
of qemu-kvm and libvirt are known to work well together and if there is
anything special that needs to be done during their installs. I am trying
to work with the latest version of libvirt possible that will be stable
with qemu-kvm. Right now, the only configuration I've been able to get
working are the "libvirt-bin" and "qemu-kvm" distribution packages.
However, I would like to at least install libvirt from source because I
want to have access to the source code and make minor changes.
Thanks,
Shawn
--
Virginia Tech
Bradley Department of Electrical and Computer Engineering
B.S. Electrical Engineering
B.S. Computer Engineering
12 years, 4 months