Re: [Qemu-discuss] qemu with librbd vs krbd - huge performance difference

2018-09-04 Thread Fam Zheng
On Tue, 09/04 08:48, Nikola Ciprich wrote: > Hi, > > I've seen this discussed few times without any real conclusion, > so I'd like to try asking again.. > > we're seeing very bad performance on ceph volumes mapped to qemu using > librbd, > while block access to krbd is multiple times better

Re: [Qemu-discuss] One question about "drive-backup"

2018-08-22 Thread Fam Zheng
On Wed, 08/22 22:20, David Lee wrote: > Hi, list > > I was trying "drive-backup" for incremental backups, and so far so > good for individual drives. > The question is that, when I grouped the drive-backup into a > transaction, I got errors like: > >

Re: [Qemu-discuss] qemu-img asserting in Travis CI environment

2018-08-12 Thread Fam Zheng
On Sun, 08/12 17:20, Michael Henriksen wrote: > Hi All, > > I am seeing the following assertion when running qemu-img as part of a test > in Travis CI: > > qemu-img: /builddir/build/BUILD/qemu-2.11.2/util/async.c:481: aio_co_enter: > Assertion `self != co' failed. What kind of test is this

Re: [Qemu-discuss] virtio-scsi really slow init with ArchLinux kernel

2018-07-10 Thread Fam Zheng
On Tue, 07/10 08:53, Chris wrote: > I'm getting a 15 second delay on every VM boot when using the > ArchLinux kernel and using the virtio-scsi-pci system. > > QEMU emulator version 2.12.0 running on Arch Linux (4.17.4 kernel), > booting the same. > > I run qemu like so: > > qemu-system-x86_64 \

Re: [Qemu-discuss] qemu make

2018-05-02 Thread Fam Zheng
On Thu, 05/03 10:53, lizhuoyao wrote: > Aha! No wonder! > Thank you,it solved my question..But i meet another question again. > > the authorization of /dev/kvm: after I install qemu in making code rather > then rpm,the authorization of /dev/kvm becomes to 600. i need to chmod 666 > /dev/kvm

Re: [Qemu-discuss] qemu-img convert stuck

2018-04-18 Thread Fam Zheng
On Wed, 04/18 15:58, Fam Zheng wrote: > On Wed, 04/18 15:42, David Lee wrote: > > On Thu, Apr 12, 2018 at 11:57 PM, David Lee <live4t...@gmail.com> wrote: > > >>> > > >>> We tested qemu-kvm-ev-2.9.0-16.el7_4.14.1 - where from the s

Re: [Qemu-discuss] qemu-img convert stuck

2018-04-18 Thread Fam Zheng
On Wed, 04/18 15:42, David Lee wrote: > On Thu, Apr 12, 2018 at 11:57 PM, David Lee wrote: > >>> > >>> We tested qemu-kvm-ev-2.9.0-16.el7_4.14.1 - where from the source RPM we > >>> verified it does contain ef6dada8b44e1e7c4bec5c1115903af9af415b50 > >>> > >>> But the issue

Re: [Qemu-discuss] qemu-img convert stuck

2018-04-12 Thread Fam Zheng
On Thu, 04/12 21:45, David Lee wrote: > On Thu, Apr 12, 2018 at 10:16 AM, David Lee wrote: > >> > My team caught this issue too after switching to CentOS 7.4 with qemu-img > >> > 2.9.0 > >> > gdb shows exactly the same backtrace when the convert stuck, and we are > >> > on >

Re: [Qemu-discuss] qemu-img convert stuck

2018-04-11 Thread Fam Zheng
On Thu, 04/12 09:51, David Lee wrote: > On Mon, Apr 9, 2018 at 3:35 AM, Benny Zlotnik wrote: > > > $ gdb -p 13024 -batch -ex "thread apply all bt" > > [Thread debugging using libthread_db enabled] > > Using host libthread_db library "/lib64/libthread_db.so.1". > >

Re: [Qemu-discuss] QImgError - find_allocation: Assertion `offs >= start' failed

2018-01-18 Thread Fam Zheng
On Thu, Jan 18, 2018 at 1:51 AM, Bimal Chollera <bchol...@redhat.com> wrote: > > > On Tue, Jan 9, 2018 at 7:19 PM, Fam Zheng <f...@redhat.com> wrote: >> >> On Tue, 01/09 23:18, Ala Hino wrote: >> > qeum version: >> > qemu-kvm-rhev-2.9.0-16.el7_4

Re: [Qemu-discuss] QImgError - find_allocation: Assertion `offs >= start' failed

2018-01-09 Thread Fam Zheng
On Tue, 01/09 23:18, Ala Hino wrote: > qeum version: > qemu-kvm-rhev-2.9.0-16.el7_4.5.x86_64 > > On Tue, Jan 9, 2018 at 11:10 PM, Ala Hino wrote: > > > Hello, > > > > A user is hitting the following error when performing `qemu-img commit`: > > > > 2018-01-03 09:48:54,168+

Re: [Qemu-discuss] Running vmdk image on qemu

2017-12-10 Thread Fam Zheng
On Sun, 12/10 17:20, mahmood n wrote: > Hi, > I am trying to run ContikiOS on qemu. The 3GB downloaded file contains some > vmdk files > > mahmood@cluster:InstantContiki3.0$ ls -l > total 8007536 > drwxrwxr-x 3 mahmood mahmood 4096 Aug 24 2015 caches > -rw-rw-r-- 1 mahmood mahmood

Re: [Qemu-discuss] Failed to get "consistent read" lock on a mirroring image

2017-11-20 Thread Fam Zheng
On Tue, 11/21 09:53, Han Han wrote: > On Mon, Nov 20, 2017 at 4:47 PM, Fam Zheng <f...@redhat.com> wrote: > > > On Mon, 11/20 10:58, Han Han wrote: > > > Hello, > > > On qemu-2.10, I find 'qemu-img info' couldn't get the info of a mirroring > > &g

Re: [Qemu-discuss] Is locking option available now?

2017-10-25 Thread Fam Zheng
- Original Message - > I create backing file with 'locking=off', but it seems the locking is > enabled: > On *qemu-2.10* > # qemu-img create -b 'json:{"file": {"driver": "file", "filename": > "/var/lib/libvirt/images/V.qcow2", "*locking*": "*off*"}}' > /var/lib/libvirt/images/a.qcow2 -f

Re: [Qemu-discuss] Live VM backup

2017-08-30 Thread Fam Zheng
On Wed, 08/30 11:45, Vincenzo Romano wrote: > 2017-08-30 11:40 GMT+02:00 Fam Zheng <f...@redhat.com>: > > On Wed, 08/30 11:16, Vincenzo Romano wrote: > >> 2017-08-30 10:53 GMT+02:00 Fam Zheng <f...@redhat.com>: > >> > On Wed, 08/30 08:17, Vincenzo Romano

Re: [Qemu-discuss] Live VM backup

2017-08-30 Thread Fam Zheng
On Wed, 08/30 11:16, Vincenzo Romano wrote: > 2017-08-30 10:53 GMT+02:00 Fam Zheng <f...@redhat.com>: > > On Wed, 08/30 08:17, Vincenzo Romano wrote: > >> Il 30 ago 2017 05:19, "Fam Zheng" <f...@redhat.com> ha scritto: > >> > >> On Tue, 0

Re: [Qemu-discuss] Live VM backup

2017-08-30 Thread Fam Zheng
On Wed, 08/30 08:17, Vincenzo Romano wrote: > Il 30 ago 2017 05:19, "Fam Zheng" <f...@redhat.com> ha scritto: > > On Tue, 08/29 18:32, Vincenzo Romano wrote: > > I'd like to move away from "another virtualization solution" to QEmu. > > I've more o

Re: [Qemu-discuss] Live VM backup

2017-08-29 Thread Fam Zheng
On Tue, 08/29 18:32, Vincenzo Romano wrote: > I'd like to move away from "another virtualization solution" to QEmu. > I've more or less all the needed bits in my hands in order to define, > run and manage QEmu VMs. > What I am missing is the knowledge of how to backup a live VM. > Of course, if I

Re: [Qemu-discuss] How to convert "splitted" vmdk disc to qcow2 ?

2017-08-07 Thread Fam Zheng
On Mon, 08/07 10:10, Pierre Couderc wrote: > On 08/07/2017 09:50 AM, Fam Zheng wrote: > > On Mon, 08/07 09:37, nous wrote: > > > I have tried qemu-img but it converts only the 1rst vmdk vmware disk... > > > and I have 20 other ones... > > > > >

Re: [Qemu-discuss] How to stop `qemu-system-x86_64 ...` instead of `kill -9`?

2017-07-12 Thread Fam Zheng
On Wed, 07/12 17:24, Sam wrote: > hi all, > > I'm running `qemu-system-x86_64 ...` to start a guest vm. Now I want to > stop and destroy this vm, I found there is no `qemu-stop` related command, > so I have to `kill -9` this process. If you have a "monitor", send "quit" command is the right way.

Re: [Qemu-discuss] taking screenshots from remote VM

2017-03-02 Thread Fam Zheng
On Thu, 03/02 21:43, behrouz khosravi wrote: > Hello everyone. Sorry if my question is too easy and thanks for your help. > I have installed linux on a remote vm. I also have a script that using > pyqt5 takes screenshots from the desktop. However when I connect to the > machine using ssh, and try

Re: [Qemu-discuss] WinXP Guest: New hardware found - VGA controller

2017-01-25 Thread Fam Zheng
On Wed, 01/25 12:43, Narcis Garcia wrote: > El 25/01/17 a les 09:49, Alberto Garcia ha escrit: > > On Mon, Jan 23, 2017 at 01:00:26AM +0100, Joe wrote: > > > >> I'm trying Qemu (2.8.0) on Slackware GNU Linux 14.2 (64-bit) host. > >> I've a Windows XP (guest) raw image which was working with Qemu

Re: [Qemu-discuss] Virtually (dis)connect the ethernet cable

2017-01-25 Thread Fam Zheng
On Wed, 01/25 12:38, Vincenzo Romano wrote: > I don't see any similarity to the console password "issue". > While it's wise to avoid a password on a command line (you could read > with ps), it's rather weird you cannot unplug a network cable from an > "unstarted" VM. > Simply, it seems this

Re: [Qemu-discuss] IOMMU in kernel command line, still getting "No IOMMU found. Unable to assign device "(null)"I

2017-01-12 Thread Fam Zheng
On Thu, 01/12 08:21, Kevin Wilson wrote: > Hi, > Following your mail I tried using "-device vfio-pci,host=04:02.0" as a > parameter to qemu-system-x86_64 instead of , and I get: > ... > qemu-system-x86_64: -device vfio-pci,host=04:02.0: vfio error: > :04:02.0: no iommu_group found: No such

Re: [Qemu-discuss] IOMMU in kernel command line, still getting "No IOMMU found. Unable to assign device "(null)"I

2017-01-11 Thread Fam Zheng
On Wed, 01/11 20:04, Kevin Wilson wrote: > Hello, > I have IOMMU in the kernel command line on a server which supports Virt-d: > > cat /proc/cmdline | grep -i iommu > BOOT_IMAGE=...intel_iommu=on iommu=pt > > Now when I try to start a KVM VM with qemu-system-x86_64 without any > PCI device

Re: [Qemu-discuss] need your help for some crash trouble of qemu-system-x86_64

2016-12-21 Thread Fam Zheng
On Thu, 12/22 10:20, Zhenhao Zhang wrote: > > > > *** Error in `/usr/bin/qemu-system-x86_64': double free or > > > > corruption (out): > > > > 0x7f83bc0cc1d0 *** > > > > 2016-06-28 22:36:16.361+: shutting down > > > > > > > >not all vms have crashed and the creashed vms images

Re: [Qemu-discuss] block device write caching, notifications, and QCOW2 issues

2016-10-24 Thread Fam Zheng
On Mon, 10/24 14:06, Christian Böhme wrote: > However, we have also seen regular files, whose data, according to the > filesystem, was modified weeks before the outage, but that nevertheless had > garbled contents after the restart. Such a constellation is rather > unexpected, > since it is

Re: [Qemu-discuss] Understanding QEMU Cache Modes and Emulated Disk Write Cache

2016-08-17 Thread Fam Zheng
On Wed, 08/17 17:26, wyang wrote: > On 2016年08月17日 15:50, Fam Zheng wrote: > > > >I am confused about the difference between the guest disk write cache and the > >host page cache. Aren't these effectively the same (in both cases storing the > >dirty data in the host's

Re: [Qemu-discuss] Understanding QEMU Cache Modes and Emulated Disk Write Cache

2016-08-17 Thread Fam Zheng
On Tue, 08/16 12:39, Andrew Martin wrote: > Hello, > > I am running QEMU 2.5 on Ubuntu 16.04. My guests are a mixture of Linux > (Ubuntu > 12.04 and newer with ext4) and Windows. The guest qcow2 images are stored in > a > ZFS filesystem with sync=standard (on top of a mirrored vdev of SSDs) on

Re: [Qemu-discuss] virtio guest->host notify, host->guest notify

2016-07-31 Thread Fam Zheng
On Sat, 07/30 17:59, Charls D. Chap wrote: > Hello List, > > I have these 3 different call graphs, they are somehow connected in > the Virtio-blk I/O path. Any help?? Help on what? I don't see a question to answer in your message. Please be specific. Fam > > "->" means "invokes" > >

Re: [Qemu-discuss] storage for qemu images

2016-07-27 Thread Fam Zheng
On Wed, 07/27 15:32, Patrick Dumais wrote: > > Hi, I'm trying to figure out where is the best place to store qemu disk > images. > > I am using qcow2 format on a raid1 built from 2 7200RPM hdd. > I am considering moving the images on a ssd (not raid). The move to ssd > would increase

Re: [Qemu-discuss] creating VM disk with

2016-05-02 Thread Fam Zheng
On Fri, 04/29 16:02, Nguyễn Thùy Linh wrote: > Hello, > > I am working on booting a VM using qemu. My scenario: I have *n* VMs, > first, I boot the 1st VM completely, then boot the rest VMs at the same > time. > > I found out there are two ways to create a VM disk from image: > >1. using

Re: [Qemu-discuss] qemu storage windows issue

2016-02-22 Thread Fam Zheng
On Mon, 02/22 16:36, Benoit wrote: > Thanks Fam > No error on my guest / host > Disk usage in Explorer is exactly what it supposed to be this is > where it is strange... Does your application work well on other storage types, like virtio-scsi or ide? Fam > > On 02/17/2016 0

Re: [Qemu-discuss] qemu storage windows issue

2016-02-16 Thread Fam Zheng
On Tue, 02/16 20:41, Benoit wrote: > Hi, > > -virtio-win-0.1.102.iso > -host archlinux / qemu 2.4.1 / kvm > -guest windows 7 pro x64 > -qemu-img create -f raw en_x64_windows_7_ipc2_storage_75 75G > > -drive >

Re: [Qemu-discuss] Problem converting from vmdk to raw format

2016-01-31 Thread Fam Zheng
On Mon, 02/01 01:53, Alexandre Schenberg wrote: > Hello, I tried to convert a .vmdk file to a raw file with this > command: "qemu-img convert -f vmdk /media/windows/WinXP-disk1.vmdk > winxp.raw" > > The result was: "qemu-img: Could not open '/media/windows/WinXP-disk1.vmdk" > > I am sure that

Re: [Qemu-discuss] Qemu corrupted qcow2 system image

2015-11-04 Thread Fam Zheng
0 > * > 001 0200 0380 > 0010010 0100 1c00 0100 1e80 > 0010020 0200 0a00 0200 0d80 > 0010030 0000 0300 1a00 0300 0380 > > > On Thu, Nov 5, 2015 at 2:08 PM Fam Zheng <f...@red

Re: [Qemu-discuss] Qemu corrupted qcow2 system image

2015-11-04 Thread Fam Zheng
On Thu, 11/05 04:59, Ivan Volosyuk wrote: > I cannot confirm that. There is a possibility that VM was still running > when I created new snapshot. That is definitely very dangerous and may be the reason why it's corrupted... Fam > > On Thu, Nov 5, 2015 at 2:46 PM Fam Zheng <

Re: [Qemu-discuss] Qemu corrupted qcow2 system image

2015-11-04 Thread Fam Zheng
ken", > fix=, fmt=) at qemu-img.c:444 > #7 0x5556a53e in img_check (argc=, argv= out>) at qemu-img.c:570 > #8 0x55555556559c in main (argc=3, argv=0x7fffd938) at > qemu-img.c:3087 > -- > Regards, > Ivan > > On Thu, Nov 5, 2015 at 12:29 PM

Re: [Qemu-discuss] ESX 4.1 does not recognize the converted VMDK file

2015-10-21 Thread Fam Zheng
On Wed, 10/21 08:02, Flavio Borup wrote: > ESX 4.1 does not recognize the converted VMDK file > > > > I´ve converted a VHDX file to .VMDK file with the following command: > > > > > > qemu-img convert -f vhdx "source.vhdx" -o subformat=monolithicFlat -O vmdk > "destination.vmdk" > > > >

Re: [Qemu-discuss] Qemu VM random freeze

2015-09-10 Thread Fam Zheng
On Thu, 09/10 19:22, LiChuanyun wrote: > Hi, all We have a openstack cluster newly installed. Every vm in the cluster > randomly freezes(about 2~3 seconds) every few minutes. When a vm freeze, > ping from outside (a physical machine or another vm) will have latency of a > few seconds or timeout

Re: [Qemu-discuss] Virtual disk size for image and its backing disk

2015-01-09 Thread Fam Zheng
On Sat, 01/10 01:53, nitinjava...@gmail.com wrote: Hi, I am trying to use a base image.qcow2 file and create many VMs out of it using following command. qemu-img -f qcow2 -b image.qcow2 vm1.qcow2 Now image.qcow2 is a 40G disk with 23G worth of data. So its virtual size is 40G and

Re: [Qemu-discuss] Need urgent help!!

2014-09-17 Thread Fam Zheng
On Thu, 09/18 07:17, Priyanka Ranjan wrote: Sorry I sent this mail without subject earlier. Resending it with subject. Hello Experts, I am using CentOS 6.5. I am getting an issue with libguestfs (qemu-kvm) # /usr/libexec/qemu-kvm -nographic -machine accel=kvm:tcg -device \? open

Re: [Qemu-discuss] How to use IO throttling and IO burst

2014-04-03 Thread Fam Zheng
On Thu, 04/03 11:06, Alexandre LAURENT wrote: Hi, I am using QEMU 1.7.1 and I would like to know how to use the 'drive' options : - bps_wr - bps_wr_max - bps_rd - bps_rd_max Can you explain me how to limit IO access between two VMs, where one would be limited and the second one have

Re: [Qemu-discuss] How to use IO throttling and IO burst

2014-04-03 Thread Fam Zheng
GMT+02:00 Fam Zheng f...@redhat.com: On Thu, 04/03 11:06, Alexandre LAURENT wrote: Hi, I am using QEMU 1.7.1 and I would like to know how to use the 'drive' options : - bps_wr - bps_wr_max - bps_rd - bps_rd_max Can you explain me how to limit IO access between two

Re: [Qemu-discuss] Qemu does nothing...

2013-09-01 Thread Fam Zheng
On Mon, 09/02 07:38, dE wrote: Hello everyone! I just started working on Qemu, however qemu does not start. In the following command -- qemu-system-x86_64 -boot order=d -cdrom ~/large/FOSS/iso\ images/systemrescuecd-x86-3.4.0-beta007.iso The process runs, it grabs the terminal, but

Re: [Qemu-discuss] QEMU cannot compiled for MIPS host

2013-08-01 Thread Fam Zheng
Hi Maryyam, What Linux distribution are you using? If Debing/Ubuntu, you can try to install libglib2.0-dev. (*-dev package is used for compiling software from source). On Thu, 08/01 12:04, Maryyam Muhammad Din wrote: Host Architecture: MIPS Host OS: Linux I want to use QEMU on MIPS as host.

Re: [Qemu-discuss] The difference between qemu-kvm-1.2.0 qemu-1.5.1

2013-07-22 Thread Fam Zheng
On Mon, 07/22 13:51, Yaodong Yang wrote: Hi everyone, Previously, I used the qemu-kvm-1.2.0 from (http://www.linux-kvm.org/page/Downloads), and it worked well in my ubuntu server. Later, I found that some of the implementation(qemu-kvm-1.2.0) is out of date, so that I changed to