Re: [libvirt-users] [Libguestfs] Running virConnectGetCapabilities / virsh capabilities without a daemon or KVM

2017-03-21 Thread Richard W.M. Jones
On Tue, Mar 21, 2017 at 11:25:20AM -0400, Ram Krishna wrote: > lstopo, lstopo --output-format xml Yes that's interesting, although it's unfortunate that it doesn't include the CPU model (eg. "Broadwell" etc) in a form which libvirt can understand. Also the topology is rather difficult to parse.

[libvirt-users] Running virConnectGetCapabilities / virsh capabilities without a daemon or KVM

2017-03-21 Thread Richard W.M. Jones
For virt-p2v we want to get the host CPU model, topology etc, and the best way we found to do that was to pull it from libvirt capabilities[1]. Since libvirt is already parsing the host CPU information, and because /proc/cpuinfo is such a stupid format to parse, this is very convenient. Unfortun

Re: [libvirt-users] virt-p2v - Windows 10 guest hangs at boot after successful P2V

2017-02-01 Thread Richard W.M. Jones
On Mon, Jan 09, 2017 at 09:17:47AM -0600, JT Edwards wrote: > Hi all, > > I successfully virt-p2v'ed a Windows 10 laptop to my Centos 7.3 instance > running KVM. However, on boot, the guest hangs. Is there a registry fix > that is needed after the P2V is done? Here is what is in the guest's > logf

Re: [libvirt-users] [Libguestfs] couple of questions about virt-v2v

2016-08-31 Thread Richard W.M. Jones
On Wed, Aug 31, 2016 at 07:28:05PM +0100, cmc wrote: > Hi Rich, > > Thanks, I'll see if oVirt supports 7.3 yet. > > > > What's the actual error? > > > > -8< > > virt-v2v: error: libguestfs error: bridge 'virbr0' not found. Try running: > > brctl show > > to get a l

Re: [libvirt-users] couple of questions about virt-v2v

2016-08-31 Thread Richard W.M. Jones
[Best to ask these questions on the libguestfs mailing list. You don't have to subscribe] On Wed, Aug 31, 2016 at 03:18:32PM +0100, cmc wrote: > Hi, > > I have two questions about virt-v2v that I hope someone could help with. > > 1. I have a host that I use to export VMs from VMWare to oVirt, a

Re: [libvirt-users] [Libguestfs] Cannot guestmount a Fedora 24 XFS disk.

2016-08-09 Thread Richard W.M. Jones
On Tue, Aug 09, 2016 at 05:15:34PM +, Andre Goree wrote: > The host is running Ubuntu 12.04 LTS and has the libguestfs package installed > -- which, if I'm not mistaken, provides libguestfs-xfs: > > https://launchpad.net/ubuntu/+source/libguestfs My bad, I didn't read the kernel message clos

Re: [libvirt-users] Cannot guestmount a Fedora 24 XFS disk.

2016-08-08 Thread Richard W.M. Jones
On Fri, Aug 05, 2016 at 02:46:11PM +, Andre Goree wrote: > > I seem to be having trouble using guestmount to mount a Fedora 24 disk that > is using XFS.  This is the error messings I get when I try: > > root@cpdev-cn5:/var/lib/libvirt/images/base# guestmount --rw -a > ${disk_path}/${disk_na

Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-23 Thread Richard W.M. Jones
On Thu, Jun 23, 2016 at 10:57:43AM -0500, libvirt_us...@skagitattic.com wrote: > Thanks for all the information, I think my last remaining question is > why the image created with virt-install shows the full apparent size > and the image from virt-sparsify does not? (The image testimage1.qcow2 > c

Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-23 Thread Richard W.M. Jones
On Wed, Jun 22, 2016 at 05:56:09PM -0500, libvirt_us...@skagitattic.com wrote: > > Delete what you've done and start from the beginning. Describe > > exactly how you created the guest. Use 'qemu-img info' to show the > > format of the input file. Show precisely the virt-sparsify command > > you

Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-22 Thread Richard W.M. Jones
On Wed, Jun 22, 2016 at 12:40:40AM -0500, libvirt_us...@skagitattic.com wrote: > So you are saying when I do the virt-sparsify its converting the image > from raw to [qcow2]? No. virt-sparsify will use the same input and output formats, unless you use the --convert option. > I studied the man pa

Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-17 Thread Richard W.M. Jones
On Wed, Jun 15, 2016 at 10:20:54AM -0500, libvirt_us...@skagitattic.com wrote: > Hello, > > I am curious why when using virt-sparsify the apparent-size of the file > gets reduced to the actual file size? Is there a way to get the > apparent-size left as the full size? > > In the man page for vi

Re: [libvirt-users] virsh for VMWare

2016-06-01 Thread Richard W.M. Jones
[libvirt-users should be able to help out] On Wed, Jun 01, 2016 at 01:58:09PM +, John L. Magee wrote: > Rich- do you know a way we could use virsh in scripts without > manually entering the username/password creds for every invocation? > Or could you point me to a source who may be able to hel

Re: [libvirt-users] [Libguestfs] virsh, virt-filesystems, guestmount, virt-install not working well with ceph rbd yet?

2016-02-02 Thread Richard W.M. Jones
On Mon, Feb 01, 2016 at 10:52:59PM +0100, Jelle de Jong wrote: [...] Upstream libguestfs supports Ceph and has done for many years. It was disabled in RHEL up to RHEL <= 7.1, and then enabled in RHEL 7.2. > - virt-filesystems ${array_volume[@]} > - guestmount --ro ${array_volume[@]} -m $mount /m

Re: [libvirt-users] Building virt-top to SLES 11 SP3

2014-08-25 Thread Richard W.M. Jones
On Mon, Aug 25, 2014 at 01:25:33PM -0600, Eric Blake wrote: > On 08/24/2014 10:59 PM, cjl...@san.rr.com wrote: > > Hi all, > > [can you configure your mailer to wrap long lines?] > > > > > I was curious whether anyone has successfully built virt-top (version > > 1.0.8) on SUSE SLES11 SP3. > >

Re: [libvirt-users] Does libvirt have API to detect image format

2014-08-13 Thread Richard W.M. Jones
On Mon, Aug 11, 2014 at 08:35:46PM +, Jianfeng Tang wrote: > > > > I am using backing store when I create my volume. However, the backing > store file is from another team, which can be either in raw or in qcow2 > format. > > Is there a libvirt API to detect image format by given an image fil

Re: [libvirt-users] Understanding Libvirt Java API in order to get CPU usage of a VM

2014-08-07 Thread Richard W.M. Jones
On Thu, Aug 07, 2014 at 01:01:56AM -0700, Restituto Marcus Arevalo wrote: > I'm having a problemin understanding the Libvirt Java API. Here is my > sourcein reading some of the classes: http://libvirt.org/sources/java/javadoc/ > > I have no idea where to start in order for me to get the CPU usage

[libvirt-users] Passing literal -cpu model string to qemu

2014-08-07 Thread Richard W.M. Jones
On aarch64 with -M virt, the default CPU model is cortex-a15 (a 32 bit CPU). This is IMHO a stupid default, but there we are. Therefore most users will need to pass the `-cpu cortex-a53' or `-cpu cortex-a57' flag to qemu, depending on a complex formula of their host CPU and if they are using TCG

[libvirt-users] Is tunnelled "managed direct" live migration actually possible?

2014-05-08 Thread Richard W.M. Jones
I have three servers set up as in this diagram: http://libvirt.org/migration.html#flowmanageddirect My control application has separate libvirt connections to both the source and destination nodes. I want to migrate entirely over those connections, not involving any third (peer-to-peer) connec

Re: [libvirt-users] [virt-tools-list] I can't virt-clone into an existing LVM now (ERROR: clone onto existing storage volume is not supported:) - i could in previous lbvirt versions? (deployment scrip

2012-07-18 Thread Richard W.M. Jones
On Wed, Jul 18, 2012 at 11:22:00AM +0100, Morgan Cox wrote: > Hi > > I was under the impression that virt-clone would create new UUId,s etc > where as virt-resize doesn't ? In my previous message I said: "[...] plus it [virt-clone] makes a handful of changes to the libvirt config. You can d

Re: [libvirt-users] [virt-tools-list] I can't virt-clone into an existing LVM now (ERROR: clone onto existing storage volume is not supported:) - i could in previous lbvirt versions? (deployment scrip

2012-07-12 Thread Richard W.M. Jones
On Wed, Jul 11, 2012 at 08:38:31AM -0600, Eric Blake wrote: > On 07/11/2012 04:36 AM, Morgan Cox wrote: > > 'ERRORClone onto existing storage volume is not supported: > > '/dev/vgpool/test' > > virt-clone is a separate package from libvirt, I'm hoping that someone > on the virt-tools-list has

Re: [libvirt-users] [API reference] Are there XML-handling API to retrieve info directly from xml configure file

2012-04-18 Thread Richard W.M. Jones
On Wed, Apr 18, 2012 at 10:24:24AM +0800, Zhihua Che wrote: >I guess I miss another thing. I thought the domain xml config file > was stored in etc/libvirt/qemu/ directory. libvirt manages the config files. To edit them, DON'T edit them directly, use 'virsh edit'. Rich. -- Richard Jones, V

Re: [libvirt-users] Guests can't connect to each other

2012-04-13 Thread Richard W.M. Jones
On Fri, Apr 13, 2012 at 02:33:24PM +0200, Anthony Bourguignon wrote: > Hi, > > I'm using libvirt and qemu on Debian Wheezy. I'm having a strange > behavior. Guests can't connect to each other when they're on the same > host. > > On the host I'm using bonding (in active / backup mode) and vlan. It

Re: [libvirt-users] [API reference] Are there XML-handling API to retrieve info directly from xml configure file

2012-04-11 Thread Richard W.M. Jones
On Wed, Apr 11, 2012 at 12:01:55PM +0100, Daniel P. Berrange wrote: > On Wed, Apr 11, 2012 at 06:41:34PM +0800, Zhihua Che wrote: > > BTW, Does libvirt supply any function which can return the process > > identifier of the domain? > > No, we don't consider the PID of the QEMU process to be part of

Re: [libvirt-users] [API reference] Are there XML-handling API to retrieve info directly from xml configure file

2012-04-07 Thread Richard W.M. Jones
On Fri, Apr 06, 2012 at 03:24:25PM +0800, Zhihua Che wrote: > Hi, everyone > > I'm writing a application using libvirt and need to query guest > os's virtual network interface usage, like bytes read or written > through a given interface. I know int > virDomainInterfaceStats(virDomainPtr dom,

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-06 Thread Richard W.M. Jones
On Thu, Apr 05, 2012 at 10:14:06PM +0100, Dale Amon wrote: > I've passed your info on to the Ubuntu-devel group > to see if anyone picks up on it. Thanks -- we do want it to work well on Ubuntu, and hillu is doing a great job on Debian. Rich. -- Richard Jones, Virtualization Group, Red Hat htt

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-05 Thread Richard W.M. Jones
On Thu, Apr 05, 2012 at 08:10:59PM +0100, Dale Amon wrote: > On Wed, Apr 04, 2012 at 09:09:03PM +0100, Richard W.M. Jones wrote: > > Unfortunately we found out today that Ubuntu 12.04's libguestfs > > package is largely broken. For more information, see: > > > >

Re: [libvirt-users] Is this Race Condition?

2012-04-05 Thread Richard W.M. Jones
On Thu, Apr 05, 2012 at 06:06:43PM +0800, Zhihua Che wrote: > Hi, everyone > > I'm writing application using libvirt and I need call > virDomainGetCPUStats to get domain cpu stats . I learn from API > reference that this function has to be called when domain is running. > So my question is if

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-04 Thread Richard W.M. Jones
[grub] You can run grub from the guest (assuming it's a Linux guest), by doing in guestfish: sh "grub-install [other parameters]" There are some provisos which you can read about here: http://libguestfs.org/guestfs.3.html#running_commands We also provide a grub-install command which runs t

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-04 Thread Richard W.M. Jones
On Wed, Apr 04, 2012 at 07:53:26PM +0100, Dale Amon wrote: > On Wed, Apr 04, 2012 at 09:45:18AM +0100, Richard W.M. Jones wrote: > > > Then I created my blank 'disk' file and tried to > > > run virt-rescue on it. It crashed out with an > > > error from f

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-04 Thread Richard W.M. Jones
On Wed, Apr 04, 2012 at 09:45:18AM +0100, Richard W.M. Jones wrote: > # 9GB sda1 > part-add /dev/sda p 64 $(( 9*1024*1024*2 )) > # remainder in sda2 > part-add /dev/sda p $(( 9*1024*1024*2 + 1 )) -64 This leaves the swap partition unaligned :-( If you care about alignm

Re: [libvirt-users] Suggestions on building VM disks from scratch

2012-04-04 Thread Richard W.M. Jones
> Then I created my blank 'disk' file and tried to > run virt-rescue on it. It crashed out with an > error from febootstrap. First of all, debug this properly: (1) What is the full error message? (2) What is the complete, unedited output of 'libguestfs-test-tool'? (3) What version of libguestf

Re: [libvirt-users] [virt-tools-list] ANNOUNCE: oz 0.7.0 release

2011-09-23 Thread Richard W.M. Jones
I built a Debian package of Oz 0.7.0 (-ish + a few patches from git). It's is _temporarily_ here: http://oirase.annexia.org/tmp/oz_0.7.0-4_all.deb Hopefully we can arrange a more permanent location later. Note a mistake (sorta): this package depends on "python-libguestfs", which you can downl

Re: [libvirt-users] [Libguestfs] Problem with allocation of big files

2011-09-20 Thread Richard W.M. Jones
On Tue, Sep 20, 2011 at 11:38:15AM +0400, Nikita A Menkovich wrote: > Hello, > > I found a strange problem with allocationg big files on drive. > > For example in guestfish I allocate large disk image > for example: > > $ guestfish > > allocate test.img 20G > > When an image allocating, there i

Re: [libvirt-users] Resizing ext4 fedora qemu guest

2011-06-10 Thread Richard W.M. Jones
Original message: https://www.redhat.com/archives/libvirt-users/2011-June/msg00017.html Best to post libguestfs and virt-tools questions on one of these two mailing lists: http://www.redhat.com/mailman/listinfo/libguestfs https://www.redhat.com/mailman/listinfo/virt-tools-list The answer is: yes