[libvirt-users] 答复: 'virsh list' issue

2012-03-08 Thread wangsuyi640
Thanks for your help. However, how can I make the VM visible to libvirt of that kind.? Even with third party tools? Yours Sinerely! suyi -邮件原件- 发件人: Eric Blake [mailto:ebl...@redhat.com] 发送时间: 2012年3月8日 21:21 收件人: wangsuyi640 抄送: libvirt-users@redhat.com 主题: Re: [libvirt-users] 'virs

Re: [libvirt-users] 'virsh list' issue

2012-03-08 Thread Michal Privoznik
On 08.03.2012 14:22, Felix Blanke wrote: > Hi, > > well, you are not using the libvirt api to create the vm :) You need to > use something like "virt-install" and then start the vm via "virsh start". > > Afaik "virsh list" only shows machines which are using libvirt. Yes & no. This depends on dr

Re: [libvirt-users] Setting the default Hypervisor

2012-03-08 Thread RaSca
Il giorno Gio 08 Mar 2012 14:31:38 CET, Daniel P. Berrange ha scritto: [...] > No, libvirt just probes each of its hypervisor drivers in turn, until > it finds out that claims to work > Daniel Ok, but even if I stop the virtualbox service (even with all processes and modules unloaded) libvirt find

Re: [libvirt-users] Setting the default Hypervisor

2012-03-08 Thread Daniel P. Berrange
On Thu, Mar 08, 2012 at 02:15:49PM +0100, RaSca wrote: > Il giorno Gio 08 Mar 2012 13:06:41 CET, Daniel P. Berrange ha scritto: > [...] > > Set the following env > > export LIBVIRT_DEFAULT_URI=qemu:///system > > We support a config home $HOME/.libvirt/libvirt.conf for setting up > > URI aliases,

Re: [libvirt-users] 'virsh list' issue

2012-03-08 Thread Felix Blanke
Hi, well, you are not using the libvirt api to create the vm :) You need to use something like "virt-install" and then start the vm via "virsh start". Afaik "virsh list" only shows machines which are using libvirt. Kind regards, Felix Blanke On 3/8/12 2:15 PM, wangsuyi640 wrote: Dear all:

Re: [libvirt-users] 'virsh list' issue

2012-03-08 Thread Eric Blake
On 03/08/2012 06:15 AM, wangsuyi640 wrote: > Dear all: > > Afer run the command 'qemu-kvm -hda /root/free.img -m 512 -usbdevice > tablet -vga qxl -spice port=5930,disable-ticketing' , and the VM starts > > there is no VM running! I am puzzled , can someone help me? Running a VM directly v

[libvirt-users] 'virsh list' issue

2012-03-08 Thread wangsuyi640
Dear all: Afer run the command 'qemu-kvm -hda /root/free.img -m 512 -usbdevice tablet -vga qxl -spice port=5930,disable-ticketing' , and the VM starts natrually. Then I run the command 'virsh list' , it shows as follows: [root@localhost ~]# virsh list Id Name State -

Re: [libvirt-users] Setting the default Hypervisor

2012-03-08 Thread RaSca
Il giorno Gio 08 Mar 2012 13:06:41 CET, Daniel P. Berrange ha scritto: [...] > Set the following env > export LIBVIRT_DEFAULT_URI=qemu:///system > We support a config home $HOME/.libvirt/libvirt.conf for setting up > URI aliases, but we don't currently support setting the defautl URI > via the co

Re: [libvirt-users] Setting the default Hypervisor

2012-03-08 Thread Daniel P. Berrange
On Thu, Mar 08, 2012 at 01:00:03PM +0100, RaSca wrote: > Hi all, > I'm using libvirt with qemu-kvm and virtualbox on the same system. > Everything is working, but I want to change the default uri fo virsh. > At the moment, if i run: > > # virsh uri > vbox:///system > > and because of this, if I t

[libvirt-users] Setting the default Hypervisor

2012-03-08 Thread RaSca
Hi all, I'm using libvirt with qemu-kvm and virtualbox on the same system. Everything is working, but I want to change the default uri fo virsh. At the moment, if i run: # virsh uri vbox:///system and because of this, if I try to list my vm(s) in this way: # virsh list --all Id Name

Re: [libvirt-users] where is the libvirt.xml ?

2012-03-08 Thread suyi wang
Thanks! I get it! Thanks again for your help! 2012/3/8 Eric Blake > On 03/08/2012 02:04 AM, Osier Yang wrote: > > On 03/08/2012 11:47 AM, suyi wang wrote: > >> > >> Hi all: > >>My OS is now Fedora16 , and the spice server is installed on it > >> by rpms. Then I run 'qemu-kvm -hda /root/

Re: [libvirt-users] where is the libvirt.xml ?

2012-03-08 Thread Eric Blake
On 03/08/2012 02:04 AM, Osier Yang wrote: > On 03/08/2012 11:47 AM, suyi wang wrote: >> >> Hi all: >>My OS is now Fedora16 , and the spice server is installed on it >> by rpms. Then I run 'qemu-kvm -hda /root/vaddsoft.img -m 512 -vga qxl >> -spice port=5930,disable-ticketing' , I want to fi

Re: [libvirt-users] where is the libvirt.xml ?

2012-03-08 Thread Osier Yang
On 03/08/2012 11:47 AM, suyi wang wrote: Hi all: My OS is now Fedora16 , and the spice server is installed on it by rpms. Then I run 'qemu-kvm -hda /root/vaddsoft.img -m 512 -vga qxl -spice port=5930,disable-ticketing' , I want to find out where is the libvirt.xml for the command . Well

Re: [libvirt-users] where is the libvirt.xml ?

2012-03-08 Thread suyi wang
Dear: I think that I installed the libvirt by rpms automatically , then it does have a fixed location of the file--libvirt.xml , I want to know where is the file(the fixed location). Thanks! 2012/3/8 Evaggelos Balaskas > There are a lot of ways to find one file in linux/unix systems. > Yo