Re: [Libvir] Updating to the newest libvirt

2008-03-07 Thread Richard W.M. Jones
On Thu, Mar 06, 2008 at 09:53:45AM -0700, Spencer Parker wrote:
 I am running CentOS 5 on a 64 bit system and when I try to install via 
 Yum...the newest version I can get is 0.2.3-9.el5.  When I try to install 
 with RPM's it just throws up conflicts.  is there a newer version of 
 libvirt that I can install onto CentOS 5...or am I just confusing things.

Not in CentOS 5.1 there isn't a newer version.  You should be able
to compile from a Fedora SRPM, eg this one:

http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Fedora/source/SRPMS/libvirt-0.3.3-2.fc8.src.rpm

But if you don't want to do that you'll have to wait for CentOS 5.2
which will have a libvirt based on 0.3.3 + a bunch of patches.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] Trouble getting console

2008-03-07 Thread Richard W.M. Jones
On Thu, Mar 06, 2008 at 02:23:40PM -0700, Spencer Parker wrote:
 I have setup a virtual machine, but am not able to connect to the console 
 for it.  I type in virsh console name and it give me a new line with no 
 output...I hit enter a few time to see it kicks in, but nothing.  here is 
 my xml file:

I don't believe we support the console for fullvirt machines.  Try
using 'virt-viewer' instead, or if you don't have that then use
vncviewer to connect to the right port.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] [PATCH] Have xen fv acknowledge boot tag

2008-03-07 Thread Daniel Veillard
On Thu, Mar 06, 2008 at 11:37:19AM -0500, Cole Robinson wrote:
 Yeah it was basically just poor checking. If there was no loader tag,
 loader == NULL, which caused STRNEQ to segfault. Corrected patch
 attached. I verified all the tests passed as expected.

  Okay, I see, applied, I just fully parenthesized the expression,
and commited to CVS,

   thanks a lot !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard  | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] [PATCH] Another Report error in virsh.c code.

2008-03-07 Thread Richard W.M. Jones
On Fri, Mar 07, 2008 at 04:43:37PM +0900, S.Sakamoto wrote:
 Hi,
 
 I am watching through the virsh code for same type bug check.
 http://git.et.redhat.com/?p=libvirt.git;a=commit;h=c857ace66df5a5068ed561aad913b29fd36160f9
 And I found another point it should report error.
 
 Thanks,
 Shigeki Sakamoto.
 
 
 Index: src/virsh.c
 ===
 RCS file: /data/cvs/libvirt/src/virsh.c,v
 retrieving revision 1.135
 diff -u -p -r1.135 virsh.c
 --- src/virsh.c   4 Mar 2008 19:59:56 -   1.135
 +++ src/virsh.c   7 Mar 2008 07:03:12 -
 @@ -1729,6 +1729,7 @@ cmdVcpupin(vshControl * ctl, vshCmd * cm
  }
  
  if (!(cpulist = vshCommandOptString(cmd, cpulist, NULL))) {
 +vshError(ctl, FALSE, _(vcpupin: Invalid value of cpulist));
  virDomainFree(dom);
  return FALSE;
  }

Is this one necessary?  vshCommandOptString prints an error anyway
because the cpulist parameter is marked as required, ie:

  $ virsh vcpupin
  error: command 'vcpupin' requires domain option
  error: command 'vcpupin' requires vcpu option
  error: command 'vcpupin' requires cpulist option

 @@ -1744,6 +1745,7 @@ cmdVcpupin(vshControl * ctl, vshCmd * cm
  }
  
  if (vcpu = info.nrVirtCpu) {
 +vshError(ctl, FALSE, _(vcpupin: Invalid vCPU number.));
  virDomainFree(dom);
  return FALSE;
  }

+1

 @@ -4473,6 +4475,7 @@ cmdAttachDevice(vshControl * ctl, vshCmd
  
  from = vshCommandOptString(cmd, file, found);
  if (!found) {
 +vshError(ctl, FALSE, _(attach-device: Invalid value of file 
 option));
  virDomainFree(dom);
  return FALSE;
  }

Again, vshCommandOptString prints an error:

  $ virsh attach-device
  error: command 'attach-device' requires domain option
  error: command 'attach-device' requires file option

 @@ -4529,6 +4532,7 @@ cmdDetachDevice(vshControl * ctl, vshCmd
  
  from = vshCommandOptString(cmd, file, found);
  if (!found) {
 +vshError(ctl, FALSE, _(detach-device: Invalid value of file 
 option));
  virDomainFree(dom);
  return FALSE;
  }

And similarly.

Let me know if I'm missing something.

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] PATCH: Allow Xen HVM kernel+initrd booting

2008-03-07 Thread Mark McLoughlin
On Sun, 2008-02-03 at 18:47 +, Daniel P. Berrange wrote:
 -
 -if ((str == NULL) || (strcmp(str, hvm))) {
 -res = virDomainParseXMLOSDescPV(conn, node,
 -buf, ctxt,
 -xendConfigVersion);
 -} else {
 +if ((str != NULL)  STREQ(str, hvm))
  hvm = 1;
 -res = virDomainParseXMLOSDescHVM(conn, node, buf, ctxt,
 - vcpus, xendConfigVersion);
 -}
 +xmlFree(str);
 +str = NULL;
  
 -free(str);
 +if (hvm)
 +virBufferAdd(buf, (image (hvm , 12);
 +else
 +virBufferAdd(buf, (image (linux , 14);

Okay, I was seeing something weird that is at least somewhat related to
this patch.

This is with libvirt-0.4.0-5.fc9.i386 and python-virtinst cset
374:507a70e9ed10

Trying to do a paravirt install with virt-install I was seeing it blow
up with virDomainCreateLinux() failed XML description for domain is not
well formed or invalid

The problem was ostypexen/type

Changing that to ostypelinux/type made it work fine

Updating to libvirt CVS made it work fine too, since you now don't check
that the os type is linux

Dunno, haven't looked into this much and I'm not sure if it's of any
real concern ... just thought I'd mention it.

Cheers,
Mark.

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] Release of libvirt-0.4.1

2008-03-07 Thread Guido Günther
Hi Daniel.
On Mon, Mar 03, 2008 at 10:13:12AM -0500, Daniel Veillard wrote:
   It was really time for a new release, quite a lot of patches had accumulated
 since the previous one ! Available at 
 ftp://libvirt.org/libvirt
Cool thing! Unfortunatley this release breaks kvm/qemu bridged
networking for me. Namely this commmit:

 936dd984eed33813aa69b0377dd46a9ad1e9e014
 Set MAC address on TUN device for Xenner compatability

With this applied the vm never sees the dhcp offer from the DHCP
server.  When I revert the patch, everything is fine again.
Cheers,
 -- Guido

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


[Libvir] Not able to access the network.

2008-03-07 Thread Spencer Parker
I have set up a machine using virsh, but I can't access it over the 
network.  It has valid IP and everything like that.  It is all running 
over eth1 and not eth0.  Any idea as to why I can't get network access 
on it?  I have assigned it a valid bridge.  I try to ping the IP I gave 
it and I get nothing.


--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list