Re: [libvirt] [PATCH] check driver name while attaching disk

2011-03-07 Thread Shi Jin
Thanks Wen. However, this patch only adds the checking but to make it work we really have to replace the driver name 'file' with 'qemu', don't we? Thank you very much. Shi On Sun, Mar 6, 2011 at 11:35 PM, Wen Congyang we...@cn.fujitsu.com wrote: This bug was reported by Shi Jin(jinzish

Re: [libvirt] problem attaching/detaching disk

2011-03-06 Thread Shi Jin
. Shi On Sun, Mar 6, 2011 at 10:28 PM, Wen Congyang we...@cn.fujitsu.com wrote: At 03/05/2011 05:35 AM, Shi Jin Write: Although the attach/detach problem has been solved, I fond the driver name issue still causes problems restoring from a saved VM with disk attached. I can reproduce

Re: [libvirt] problem attaching/detaching disk

2011-03-04 Thread Shi Jin
disk type='file' device='disk' driver name='qemu' type='qcow2' cache='none'/ source file='/var/lib/libvirt/images/rhel6rc_64.img'/ target dev='hda' bus='ide'/ alias name='ide0-0-0'/ address type='drive' controller='0' bus='0' unit='0'/ /disk disk

Re: [libvirt] problem attaching/detaching disk

2011-03-04 Thread Shi Jin
Finally, everything works for if I simply change my template to use the /usr/libexec/qemu-kvm instead of /usr/bin/kvm, which is a symbolic link to it. Not sure why it matters but that does solve all the mysteries. Shi On Fri, Mar 4, 2011 at 9:56 AM, Shi Jin jinzish...@gmail.com wrote: It seems

Re: [libvirt] problem attaching/detaching disk

2011-03-04 Thread Shi Jin
='qemu' type='qcow2'/ Then it works. [cloudadmin@test2 images]$ virsh restore checkpoint Domain restored from checkpoint So there is indeed a problem with the driver name. Maybe I should start a new thread on it? Shi On Fri, Mar 4, 2011 at 11:44 AM, Shi Jin jinzish...@gmail.com wrote: Finally

Re: [libvirt] problem attaching/detaching disk

2011-03-03 Thread Shi Jin
More information: If I simply insert this in the XML and call virsh create, disk type='file' device='disk' driver name='file' type='qcow2'/ source file='/vrstorm/cloud/PrivateAccounts/74d37709b07be4bbae228dfc273e4339/volumes/vol-126'/

Re: [libvirt] Network Filter not working on RHEL-6

2011-03-02 Thread Shi Jin
Thank you very much. It worked like a charm although I couldn't find that message in the libvirtd.log. Should I enable all three in /etc/sysctl.conf net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 net.bridge.bridge-nf-call-arptables = 1 Thanks. Shi -- Shi Jin

[libvirt] problem attaching/detaching disk

2011-03-02 Thread Shi Jin
detach-disk one-52 vda Disk detached successfully I also tried with raw disks to attach/detach and saw the same problems. Thank you very much. Shi [1]: http://www.redhat.com/archives/libvir-list/2010-August/msg00449.html -- Shi Jin, PhD -- libvir-list mailing list libvir-list

[libvirt] Network Filter not working on RHEL-6

2011-03-01 Thread Shi Jin
-- Shi Jin, PhD -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] NIC Bonding in libvirt

2011-02-23 Thread Shi Jin
. Thank you very much. Shi -- Shi Jin, PhD -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] Looking for Hypervisor Vulerability Example

2010-12-02 Thread Shi Jin
James Morris' presentation is referring to this published demonstration of exploiting Xen a few years ago   http://www.securityfocus.com/archive/1/497376   http://invisiblethingslab.com/resources/misc08/xenfb-adventures-10.pdf The key difference sVirt makes is at chapter 3.4 in the

[libvirt] Looking for Hypervisor Vulerability Example

2010-11-30 Thread Shi Jin
believe a real demonstration is better than a million words. I appreciate your help. Shi [1]:http://namei.org/presentations/svirt-lca-2009.pdf [2]:http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Virtualization/chap-sVirt.html -- Shi Jin, PhD -- libvir-list mailing list

[libvirt] List of available libvirt drivers installed?

2010-10-25 Thread Shi Jin
installation may not turn on all available drivers for this particular build. Is there a way to find out? Particularly, I want to find out if the default libvirt coming with RHEL-5/6 supports VMware ESX, and the same for Ubuntu-10.4/10.10. Thanks in advance. Shi -- Shi Jin, PhD -- libvir-list

[libvirt] KVM live migration results in black screen

2010-04-26 Thread Shi Jin
wonder if anyone has any experience with this problem. I am using RHEL/CentOS-5. I've tried many times with either Windows or Linux VM. Thank you very much. -- Shi Jin, PhD -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] Error saving/restoring VM with attached disks

2010-04-23 Thread Shi Jin
think this is a bug or an expected behaviour? Should I file a bug report? Any fix already? Thank you very much. Shi -- Shi Jin, PhD -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] eject ISO from cdrom

2010-03-09 Thread Shi Jin
self.change_cdrom_media(dev_id_info, None, _type=None) Basically a None parameter is pass to the API. All I need to find out is how to do the same thing in the virsh attach-disk command. Do you have any suggestions/comments? Thanks a lot. Shi -- Shi Jin, PhD -- libvir-list mailing list libvir-list

[libvirt] XML for the boot=on option

2010-01-18 Thread Shi Jin
this boot=on option. Is there a way to do this? Thanks a lot. -- Shi Jin, PhD -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH 03/14] Fix crash when deleting monitor while a command is in progress

2009-12-04 Thread Shi Jin
Thanks. I know from https://www.redhat.com/archives/libvir-list/2009-December/msg00064.html that there is a deadlock problem in this fix. I would appreciate a notice when a solution is found. Thanks a lot. -- Shi Jin, PhD --- On Thu, 11/26/09, Daniel P. Berrange berra...@redhat.com wrote

[libvirt] libvirtd crashes

2009-12-03 Thread Shi Jin
thing down. Thanks a lot. Shi -- Shi Jin, PhD -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] libvirtd crashes

2009-12-03 Thread Shi Jin
: qemuMonitorCommandWithHandler:290 : cannot send monitor command 'info cpus': Connection reset by peer 17:33:35.424: error : qemuMonitorTextGetCPUInfo:436 : internal error cannot run monitor command to fetch CPU thread info Thanks a lot. Shi -- Shi Jin, PhD --- On Thu, 12/3/09, Matthias Bolte matthias.bo

[libvirt] strange problem only if /usr/sbin/libvirtd is named

2009-11-28 Thread Shi Jin
that it works for all other almost identical servers but this particular one. I appreciate your help. -- Shi Jin, PhD -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] questions on build qemu driver with non-root

2009-11-27 Thread Shi Jin
from earlier posts that the --without-lxc option should get rid of this message. Thank you for your help. -- Shi Jin, PhD -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] virsh destroy deletes extra VMs

2009-09-30 Thread Shi Jin
...@node1:/srv/cloud/ImgRep/WinXP# virsh --version Connecting to uri: qemu:///system 0.6.1 r...@node1:/srv/cloud/ImgRep/WinXP# kvm -h QEMU PC emulator version 0.9.1 (kvm-84), Copyright (c) 2003-2008 Fabrice Bellard Has anyone had similar problem before? How can I fix it? Thanks a lot. Shi -- Shi

Re: [libvirt] virsh destroy deletes extra VMs

2009-09-30 Thread Shi Jin
Thanks a lot. I just upgraded my ubuntu 9.04 server to 9.10 alpha 6 so that the libvirt is upgraded from 0.6.1 to 0.7.0 and the problem is gone. -- Shi Jin, PhD --- On Wed, 9/30/09, Mark McLoughlin mar...@redhat.com wrote: From: Mark McLoughlin mar...@redhat.com Subject: Re: [libvirt

[libvirt] virsh vcpuinfo always returns CPU=0

2009-09-02 Thread Shi Jin
very much. -- Shi Jin, PhD -- Libvir-list mailing list Libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list