[libvirt] virsh capabilities, kvm with apic and toggle

2009-09-16 Thread Garry Dolley
When I run 'virsh capabilities' on a libvirt 0.6.4 system with qemu
0.10 and kvm-84, one of the results I get is:

  guest
os_typehvm/os_type
arch name='x86_64'
  wordsize64/wordsize
  emulator/usr/bin/qemu-system-x86_64/emulator
  machinepc/machine
  machineisapc/machine
  domain type='qemu'
  /domain
  domain type='kvm'
emulator/usr/bin/kvm/emulator
  /domain
/arch
features
  acpi default='on' toggle='yes'/
  apic default='on' toggle='no'/
/features
  /guest

I'm wondering why the apic feature can't be toggled.  Passing
-no-kvm-irqchip to kvm would turn off PIC/IOAPIC/LAPIC

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


Re: [libvirt] Passing -no-kvm-irqchip to KVM/QEMU guests

2009-09-15 Thread Garry Dolley
On Sun, Sep 13, 2009 at 09:33:01PM -0400, Jim Paris wrote:
 Garry Dolley wrote:
  Dear libvirt,
  
  Is there a way to tell a KVM/QEMU guest managed by libvirt to start
  with the -no-kvm-irqchip argument?
  
  I have some FreeBSD 7 guests with timing issues, and if I try to
  start the VMs manually with -no-kvm-irqchip, the timing issues go
  away (the only known workaround right now).
  
  However, if the guest is managed by libvirt, I have found no way to
  pass this command line option.
  
  I'm running libvirt 0.6.4 on Ubuntu 9.04
 
 As a hack, you can point the XML file to a wrapper script instead of
 the KVM binary, where the script would contain e.g.:
 
   #!/bin/sh
   exec /usr/bin/kvm $@ -no-kvm-irqchip

Hi Jim,

Thanks for this suggestion, it worked like a charm!

Now, while this is still a hacky way to solve this problem, would
anyone be interested in seeing a patch that would either:

1) Allow one to append arbitrary command line arguments to the
   emulator, like:

 ...
 emulator/usr/bin/kvmemulator
 emulator_args-no-kvm-irqchip/emulator_args
 ...

   I don't like the name emulator_args much either, but just as an
   example.

2) Have an option in the XML file specifically for
   '-no-kvm-irqchip'; I'm not sure where it would go.  Maybe under
   features, yet it isn't really a feature, more like lack of a
   feature ;)

Suggestions welcome.

I've been waiting to find some itch to scratch where I can
contribute to libvirt code directly (instead of just doc patches),
so this seems to fit the bill.

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


[libvirt] Passing -no-kvm-irqchip to KVM/QEMU guests

2009-09-13 Thread Garry Dolley
Dear libvirt,

Is there a way to tell a KVM/QEMU guest managed by libvirt to start
with the -no-kvm-irqchip argument?

I have some FreeBSD 7 guests with timing issues, and if I try to
start the VMs manually with -no-kvm-irqchip, the timing issues go
away (the only known workaround right now).

However, if the guest is managed by libvirt, I have found no way to
pass this command line option.

I'm running libvirt 0.6.4 on Ubuntu 9.04

Thoughts?

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


[libvirt] [PATCH] Update links to bugzilla

2009-07-15 Thread Garry Dolley
* docs/bugs.html[.in]: Red Hat Enterprise Linux 5 specific tickets are
  under the 'Red Hat Enterprise Linux 5' product category.
---

 I forgot to update the RHEL 5 links in my previous patch, so here's
 another.

 docs/bugs.html|2 +-
 docs/bugs.html.in |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/bugs.html b/docs/bugs.html
index 55bcc2c..76653bb 100644
--- a/docs/bugs.html
+++ b/docs/bugs.html
@@ -93,7 +93,7 @@
If you are using official binaries from strongRed Hat Enterprise 
Linux distribution/strong,
tickets against the codeRed Hat Enterprise Linux 5/code product and
the codelibvirt/code component.
-   ullia href=View Red Hat Enterprise Linux libvirt 
tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%205amp;component=libvirt;New
 Red Hat Enterprise Linux libvirt ticket/a/li/ul/lili
+   ullia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Red%20Hat%20Enterprise%20Linux%205;View
 Red Hat Enterprise Linux libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%205amp;component=libvirt;New
 Red Hat Enterprise Linux libvirt ticket/a/li/ul/lili
If you are using official binaries from another Linux distribution first
follow their own bug reporting guidelines.
   /li/ul
diff --git a/docs/bugs.html.in b/docs/bugs.html.in
index df26c15..62e3864 100644
--- a/docs/bugs.html.in
+++ b/docs/bugs.html.in
@@ -43,7 +43,7 @@
tickets against the codeRed Hat Enterprise Linux 5/code product and
the codelibvirt/code component.
ul
- lia href=View Red Hat Enterprise Linux libvirt tickets/a/li
+ lia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Red%20Hat%20Enterprise%20Linux%205;View
 Red Hat Enterprise Linux libvirt tickets/a/li
  lia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%205amp;component=libvirt;New
 Red Hat Enterprise Linux libvirt ticket/a/li
/ul
   /li
-- 
1.6.3.1

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


Re: [libvirt] virsh migrate with libvirt-0.5.1: failed to start listening VM

2009-07-14 Thread Garry Dolley
On Tue, Jul 14, 2009 at 01:13:03PM -0500, Charles Duffy wrote:
 Scott Baker wrote:
 You're supposed to have /var/lib/libvirt/images mounted via shared storage 
 (nfs/cifs/etc) on both machines.

 I've heard of folks having trouble doing live migration over NFS -- 
 something with stronger concurrency guarantees (GFS, a shared iSCSI or FC 
 mount [possibly with cLVM to partition it up], etc) is likely to be a safer 
 bet.

 (Indeed, looking at the documented preferred environment for VMware's 
 VMotion is probably a good guideline for anything that's going to be 
 trusted with real production usage -- a separate bonded pair of NICs on 
 each host, connected to a dedicated network for communication with the SAN 
 hosting the backing store).

A method I'm going to be trying out very shortly is using DRBD in
dual-primary mode.  DRBD will keep LVM volumes (block devices) for
each VM in sync between two nodes.  Upon migration, writes will
cease on node A and when ready, begin on node B.  You won't have
concurrent writes, so it will be safe to use DRBD directly without a
clustering FS on top (GFS, OCFS2, etc...).  

DRBD has scripts for Xen that take care of the details for you.
Haven't seen the same for KVM/QEMU yet, but I imagine it would be
pretty similar.

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


[libvirt] [PATCH] Link to libvirt tickets on the Red Hat Bugzilla Server

2009-07-12 Thread Garry Dolley
General tickets are under the 'Virtualization Tools' product category and
Fedora specific tickets are under the 'Fedora' product category.

The component is 'libvirt' in both cases.

Signed-off-by: Garry Dolley gdol...@ucla.edu
---
 docs/bugs.html|4 ++--
 docs/bugs.html.in |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/bugs.html b/docs/bugs.html
index b321505..55bcc2c 100644
--- a/docs/bugs.html
+++ b/docs/bugs.html
@@ -83,13 +83,13 @@
   the codeVirtualization Tools/code product and the 
codelibvirt/code
   component.
 /p
-ullia href=View libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Virtualization%20Toolsamp;component=libvirt;New
 libvirt ticket/a/li/ul
+ullia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Virtualization%20Tools;View
 libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Virtualization%20Toolsamp;component=libvirt;New
 libvirt ticket/a/li/ul
 h2Linux Distribution specific bug reports/h2
 ulli
If you are using official binaries from a strongFedora 
distribution/strong, enter
tickets against the codeFedora/code product and the 
codelibvirt/code
component.
-   ullia href=View Fedora libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedoraamp;component=libvirt;New
 Fedora libvirt ticket/a/li/ul/lili
+   ullia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Fedora;View
 Fedora libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedoraamp;component=libvirt;New
 Fedora libvirt ticket/a/li/ul/lili
If you are using official binaries from strongRed Hat Enterprise 
Linux distribution/strong,
tickets against the codeRed Hat Enterprise Linux 5/code product and
the codelibvirt/code component.
diff --git a/docs/bugs.html.in b/docs/bugs.html.in
index 0eb723a..df26c15 100644
--- a/docs/bugs.html.in
+++ b/docs/bugs.html.in
@@ -23,7 +23,7 @@
 /p
 
 ul
-  lia href=View libvirt tickets/a/li
+  lia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Virtualization%20Tools;View
 libvirt tickets/a/li
   lia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Virtualization%20Toolsamp;component=libvirt;New
 libvirt ticket/a/li
 /ul
 
@@ -34,7 +34,7 @@
tickets against the codeFedora/code product and the 
codelibvirt/code
component.
ul
- lia href=View Fedora libvirt tickets/a/li
+ lia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Fedora;View
 Fedora libvirt tickets/a/li
  lia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedoraamp;component=libvirt;New
 Fedora libvirt ticket/a/li
/ul
   /li
-- 
1.6.3.1

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


[libvirt] [PATCH] Link to libvirt tickets on the Red Hat Bugzilla Server

2009-07-12 Thread Garry Dolley
General tickets are under the 'Virtualization Tools' product category and
Fedora specific tickets are under the 'Fedora' product category.

The component is 'libvirt' in both cases.

Signed-off-by: Garry Dolley gdol...@ucla.edu
---
 docs/bugs.html|4 ++--
 docs/bugs.html.in |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/bugs.html b/docs/bugs.html
index b321505..55bcc2c 100644
--- a/docs/bugs.html
+++ b/docs/bugs.html
@@ -83,13 +83,13 @@
   the codeVirtualization Tools/code product and the 
codelibvirt/code
   component.
 /p
-ullia href=View libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Virtualization%20Toolsamp;component=libvirt;New
 libvirt ticket/a/li/ul
+ullia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Virtualization%20Tools;View
 libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Virtualization%20Toolsamp;component=libvirt;New
 libvirt ticket/a/li/ul
 h2Linux Distribution specific bug reports/h2
 ulli
If you are using official binaries from a strongFedora 
distribution/strong, enter
tickets against the codeFedora/code product and the 
codelibvirt/code
component.
-   ullia href=View Fedora libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedoraamp;component=libvirt;New
 Fedora libvirt ticket/a/li/ul/lili
+   ullia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Fedora;View
 Fedora libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedoraamp;component=libvirt;New
 Fedora libvirt ticket/a/li/ul/lili
If you are using official binaries from strongRed Hat Enterprise 
Linux distribution/strong,
tickets against the codeRed Hat Enterprise Linux 5/code product and
the codelibvirt/code component.
diff --git a/docs/bugs.html.in b/docs/bugs.html.in
index 0eb723a..df26c15 100644
--- a/docs/bugs.html.in
+++ b/docs/bugs.html.in
@@ -23,7 +23,7 @@
 /p
 
 ul
-  lia href=View libvirt tickets/a/li
+  lia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Virtualization%20Tools;View
 libvirt tickets/a/li
   lia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Virtualization%20Toolsamp;component=libvirt;New
 libvirt ticket/a/li
 /ul
 
@@ -34,7 +34,7 @@
tickets against the codeFedora/code product and the 
codelibvirt/code
component.
ul
- lia href=View Fedora libvirt tickets/a/li
+ lia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Fedora;View
 Fedora libvirt tickets/a/li
  lia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedoraamp;component=libvirt;New
 Fedora libvirt ticket/a/li
/ul
   /li
-- 
1.6.3.1

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


[libvirt] [PATCH] Link to libvirt tickets on the Red Hat Bugzilla Server

2009-07-12 Thread Garry Dolley
General tickets are under the 'Virtualization Tools' product category and
Fedora specific tickets are under the 'Fedora' product category.

The component is 'libvirt' in both cases.

Signed-off-by: Garry Dolley gdol...@ucla.edu
---
 docs/bugs.html|4 ++--
 docs/bugs.html.in |4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/bugs.html b/docs/bugs.html
index b321505..55bcc2c 100644
--- a/docs/bugs.html
+++ b/docs/bugs.html
@@ -83,13 +83,13 @@
   the codeVirtualization Tools/code product and the 
codelibvirt/code
   component.
 /p
-ullia href=View libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Virtualization%20Toolsamp;component=libvirt;New
 libvirt ticket/a/li/ul
+ullia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Virtualization%20Tools;View
 libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Virtualization%20Toolsamp;component=libvirt;New
 libvirt ticket/a/li/ul
 h2Linux Distribution specific bug reports/h2
 ulli
If you are using official binaries from a strongFedora 
distribution/strong, enter
tickets against the codeFedora/code product and the 
codelibvirt/code
component.
-   ullia href=View Fedora libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedoraamp;component=libvirt;New
 Fedora libvirt ticket/a/li/ul/lili
+   ullia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Fedora;View
 Fedora libvirt tickets/a/lilia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedoraamp;component=libvirt;New
 Fedora libvirt ticket/a/li/ul/lili
If you are using official binaries from strongRed Hat Enterprise 
Linux distribution/strong,
tickets against the codeRed Hat Enterprise Linux 5/code product and
the codelibvirt/code component.
diff --git a/docs/bugs.html.in b/docs/bugs.html.in
index 0eb723a..df26c15 100644
--- a/docs/bugs.html.in
+++ b/docs/bugs.html.in
@@ -23,7 +23,7 @@
 /p
 
 ul
-  lia href=View libvirt tickets/a/li
+  lia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Virtualization%20Tools;View
 libvirt tickets/a/li
   lia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Virtualization%20Toolsamp;component=libvirt;New
 libvirt ticket/a/li
 /ul
 
@@ -34,7 +34,7 @@
tickets against the codeFedora/code product and the 
codelibvirt/code
component.
ul
- lia href=View Fedora libvirt tickets/a/li
+ lia 
href=http://bugzilla.redhat.com/buglist.cgi?component=libvirtamp;product=Fedora;View
 Fedora libvirt tickets/a/li
  lia 
href=http://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedoraamp;component=libvirt;New
 Fedora libvirt ticket/a/li
/ul
   /li
-- 
1.6.3.1


!DSPAM:4a5792d46141992511921!

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


Re: [libvirt] [PATCH] Link to libvirt tickets on the Red Hat Bugzilla Server

2009-07-12 Thread Garry Dolley
Sorry for the multiple submissions; I had mail server trouble and
tried multiple times.  Now they all got unstuck ;)

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


Re: [libvirt] Switch from CVS to GIT is done

2009-07-06 Thread Garry Dolley
On Mon, Jul 06, 2009 at 02:42:59PM +0200, Daniel Veillard wrote:
 
   Thanks to Jim Meyering we now have a new git repository, I deprecated the
 CVS repository, it's read only, you should still be able to keep it
 around to make patches for a few weeks if needed.
   The new repo is at:
 http://libvirt.org/git/?p=libvirt.git;a=summary
 
 Unfortunately Jim had to clean up the conversion from CVS that was
 used previously at git://git.et.redhat.com/libvirt.git so the two
 are not compatible and the best is to clone a new tree using
 
git clone git://libvirt.org/libvirt.git
 
 and then copying over your set of patches with git format-patch in the
 old dir and git am to paste them into the new cloned-dir (Jim can
 certainly provide more details if needed).
 
   Let us know if you see something weird in the new tree or on the web
 site, I have updated the download informations at
http://libvirt.org/downloads.html
 
 A few things may change but I guess the switch is done at this point,
 
   Many thanks to Jim for maintaining the old tree and the migration !

Now that we're using git, we can make a distinction between Author
and Committer, automatically.

When people create patches with 'git format-patch' and send them to
this list for inclusion, the patch will include them as the Author.

When Daniel, et. al. then applies the patch (with 'git am' or
similar method), they will be the Committer.

This is nice because 'git log', 'git shortlog', etc... will give the
appropriate credit to the author, and the committer doesn't need to
keep writing in the commit msg who the patch came from.

Just an FYI to those new to git.

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


Re: [libvirt] Upcoming 0.6.5 release and switching the main SCM engine (to git)

2009-07-01 Thread Garry Dolley
On Wed, Jul 01, 2009 at 11:54:38AM +0200, Daniel Veillard wrote:
 
Feedback and opinions welcome, I hope git is not too uncontroversial :-)

+1 on the move to git, awesome :)

I was using the git mirror previously, and would worry a bit whether
it is 100% up-to-date.  Now I won't have to worry.

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


Re: [libvirt] virsh hangs

2009-06-24 Thread Garry Dolley
On Wed, Jun 24, 2009 at 08:17:18AM +0200, Daniel Veillard wrote:
 On Tue, Jun 23, 2009 at 03:28:40PM -0700, Garry Dolley wrote:
  On Tue, Jun 23, 2009 at 09:39:25PM +0100, Daniel P. Berrange wrote:
   Install the -debug packages for libvirt, and get a trace
   of all its threads under GDB, eg
   
 (gdb) thread apply all backtrace
   
   
   Also, capture traces of the client  server, by setting LIBVIRT_DEBUG=1
   before running each.
  
  I solved the problem, but thanks for this info.  I'll use it next
  time.
  
  How do I attach gdb to a running process? (I'm a gdb noob)
 
   gdb path_to_the_binary
 
   (gdb) attach pid_of_the_process
 
 this will attach to the process, load the debugging informations, stop
 the process and get back to the gdb prompt for commands.

Awesome, thanks!

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


[libvirt] virsh hangs

2009-06-23 Thread Garry Dolley
My system:

Ubuntu Jaunty 9.04

libvirt 0.6.4
kvm 0.8.4
qemu 0.10.0

I'm not sure what triggered this, I was working with several VMs,
and then found that virsh decided to hang:

ga...@kvr02:~$ virsh list
Connecting to uri: qemu:///system
hang

I have to ^C out of it.

If I 'force-stop' and then 'start' libvirt-bin:

ga...@kvr02:~$ sudo /etc/init.d/libvirt-bin force-stop
 * Forcefully stopping libvirt management daemon libvirtd
   ...done.
ga...@kvr02:~$ sudo /etc/init.d/libvirt-bin start
 * Starting libvirt management daemon libvirtd
   ...done.

I can then get something:

ga...@kvr02:~$ virsh list
Connecting to uri: qemu:///system
 Id Name State
--
  1 vm1  running
  4 s3-lax   running
 14 freebsd-test running
 19 freebsd-2running
hang

But it hangs after that 4th one.  I must ^C it again.

If I do 'virsh list' again, it'll then show nothing (hangs like it
does above).

Any suggestions?

Thanks

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


Re: [libvirt] virsh hangs

2009-06-23 Thread Garry Dolley
On Tue, Jun 23, 2009 at 06:22:34AM -0700, Garry Dolley wrote:
 My system:
 
 Ubuntu Jaunty 9.04
 
 libvirt 0.6.4
 kvm 0.8.4
 qemu 0.10.0
 
 I'm not sure what triggered this, I was working with several VMs,
 and then found that virsh decided to hang:
 
 ga...@kvr02:~$ virsh list
 Connecting to uri: qemu:///system
 hang
 
 I have to ^C out of it.
 
 If I 'force-stop' and then 'start' libvirt-bin:
 
 ga...@kvr02:~$ sudo /etc/init.d/libvirt-bin force-stop
  * Forcefully stopping libvirt management daemon libvirtd
...done.
 ga...@kvr02:~$ sudo /etc/init.d/libvirt-bin start
  * Starting libvirt management daemon libvirtd
...done.
 
 I can then get something:
 
 ga...@kvr02:~$ virsh list
 Connecting to uri: qemu:///system
  Id Name State
 --
   1 vm1  running
   4 s3-lax   running
  14 freebsd-test running
  19 freebsd-2running
 hang
 
 But it hangs after that 4th one.  I must ^C it again.
 
 If I do 'virsh list' again, it'll then show nothing (hangs like it
 does above).
 
 Any suggestions?

From playing with this, I'm led to believe libvirt remembers some
VM that I may have killed manually w/ 'kill'.  

Where does libvirt store what VMs it knows about across restarts?  I
think I may need to manually poke around there and take out the bad
VM...

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


Re: [libvirt] virsh hangs

2009-06-23 Thread Garry Dolley
On Tue, Jun 23, 2009 at 04:08:25PM -0300, Itamar Reis Peixoto wrote:
 why you don't try Fedora 11
 
 it's have newer versions of libvirt and KVM
 
 and if you have problem's you can report a bug or talk with developers using 
 IRC

Why don't I use Fedora?  Let's not go there... ;)

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


Re: [libvirt] virsh hangs

2009-06-23 Thread Garry Dolley
On Tue, Jun 23, 2009 at 12:05:35PM -0700, Garry Dolley wrote:
 On Tue, Jun 23, 2009 at 06:22:34AM -0700, Garry Dolley wrote:
  My system:
  
  Ubuntu Jaunty 9.04
  
  libvirt 0.6.4
  kvm 0.8.4
  qemu 0.10.0
  
  I'm not sure what triggered this, I was working with several VMs,
  and then found that virsh decided to hang:
  
  ga...@kvr02:~$ virsh list
  Connecting to uri: qemu:///system
  hang
  
  I have to ^C out of it.
  
  If I 'force-stop' and then 'start' libvirt-bin:
  
  ga...@kvr02:~$ sudo /etc/init.d/libvirt-bin force-stop
   * Forcefully stopping libvirt management daemon libvirtd
 ...done.
  ga...@kvr02:~$ sudo /etc/init.d/libvirt-bin start
   * Starting libvirt management daemon libvirtd
 ...done.
  
  I can then get something:
  
  ga...@kvr02:~$ virsh list
  Connecting to uri: qemu:///system
   Id Name State
  --
1 vm1  running
4 s3-lax   running
   14 freebsd-test running
   19 freebsd-2running
  hang
  
  But it hangs after that 4th one.  I must ^C it again.
  
  If I do 'virsh list' again, it'll then show nothing (hangs like it
  does above).
  
  Any suggestions?
 
 From playing with this, I'm led to believe libvirt remembers some
 VM that I may have killed manually w/ 'kill'.  
 
 Where does libvirt store what VMs it knows about across restarts?  I
 think I may need to manually poke around there and take out the bad
 VM...

crobinso in #virt (irc.oftc.net) helped me solve this.

The info about running VMs is kept across restarts in:

  /var/run/libvirt/qemu

There was a VM that went crazy, it totally hung, and I guess
something about it didn't sit well with virsh.  When I 'kill -9'
this VM (yes, 'kill' by itself didn't even work), then virsh didn't
hang anymore.

Problem solved.

(thankfully, the hanging VM was a throw-away one, so kill -9 was OK
in this case)

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


Re: [libvirt] virsh hangs

2009-06-23 Thread Garry Dolley
On Tue, Jun 23, 2009 at 09:39:25PM +0100, Daniel P. Berrange wrote:
 On Tue, Jun 23, 2009 at 06:22:34AM -0700, Garry Dolley wrote:
  My system:
  
  Ubuntu Jaunty 9.04
  
  libvirt 0.6.4
  kvm 0.8.4
  qemu 0.10.0
  
  I'm not sure what triggered this, I was working with several VMs,
  and then found that virsh decided to hang:
  
  ga...@kvr02:~$ virsh list
  Connecting to uri: qemu:///system
  hang
  
  I have to ^C out of it.
  
  If I 'force-stop' and then 'start' libvirt-bin:
  
  ga...@kvr02:~$ sudo /etc/init.d/libvirt-bin force-stop
   * Forcefully stopping libvirt management daemon libvirtd
 ...done.
  ga...@kvr02:~$ sudo /etc/init.d/libvirt-bin start
   * Starting libvirt management daemon libvirtd
 ...done.
  
  I can then get something:
  
  ga...@kvr02:~$ virsh list
  Connecting to uri: qemu:///system
   Id Name State
  --
1 vm1  running
4 s3-lax   running
   14 freebsd-test running
   19 freebsd-2running
  hang
  
  But it hangs after that 4th one.  I must ^C it again.
  
  If I do 'virsh list' again, it'll then show nothing (hangs like it
  does above).
  
  Any suggestions?
 
 Install the -debug packages for libvirt, and get a trace
 of all its threads under GDB, eg
 
   (gdb) thread apply all backtrace
 
 
 Also, capture traces of the client  server, by setting LIBVIRT_DEBUG=1
 before running each.

I solved the problem, but thanks for this info.  I'll use it next
time.

How do I attach gdb to a running process? (I'm a gdb noob)

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


Re: [Libvirt] VNC auth per VM

2009-06-11 Thread Garry Dolley
On Thu, Jun 11, 2009 at 04:05:39AM -0400, Jim Paris wrote:
 Daniel P. Berrange wrote:
  On Mon, Jun 08, 2009 at 11:35:00AM +0200, Christian Weyermann wrote:
   Hello everybody,
   
   I encountered the following problem. I want my users to only be able to
   connect to their own virtual machines via VNC. Is there any way to do so?
  
  The VNC authentication setup is currently being done per-host, so there
  is no way to define ACLs per-(user,vm) tuple as you describe.
 
 What about the VNC password?
 That's per-VM, isn't it?

With KVM/QEMU, you can set a VNC password per VM.

But I think it is either/or though; you can use VNC with passwords
(no encryption), or use VNC with TLS, which is encrypted, but anyone
with a valid certificate can connect (to any VM).

Someone correct me if I'm wrong on that.

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


[libvirt] Typo in XML documentation regarding VNC password

2009-06-09 Thread Garry Dolley
On this page:

  http://libvirt.org/formatdomain.html#elementsGraphics

There is a typo stating how to set VNC passwords per domain.

Patch:

  -The password attribute provides a VNC password in clear text.
  +The passwd attribute provides a VNC password in clear text.

-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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


[libvirt] PATCH: Fix typo in XML documentation regarding VNC password

2009-06-09 Thread Garry Dolley
Excuse my previous post, I didn't know the website was in docs/ and
I could submit a real patch ;)

So here it is:

diff --git a/docs/formatdomain.html b/docs/formatdomain.html
index 27e42ac..817fd7e 100644
--- a/docs/formatdomain.html
+++ b/docs/formatdomain.html
@@ -746,7 +746,7 @@ qemu-kvm -net nic,model=? /dev/null
auto-allocated). The codeautoport/code attribute is the new
preferred syntax for indicating autoallocation of the TCP port to use.
The codelisten/code attribute is an IP address for the server to
-   listen on. The codepassword/code attribute provides a VNC password
+   listen on. The codepasswd/code attribute provides a VNC password
in clear text. The codekeymap/code attribute specifies the keymap
to use./dd/dl
 h4


-- 
Garry Dolley
ARP Networks, Inc. | http://www.arpnetworks.com | (818) 206-0181
Data center, VPS, and IP Transit solutions
Member Los Angeles County REACT, Unit 336 | WQGK336
Blog http://scie.nti.st

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