[libvirt-users] where is the libvirt.xml ?
by suyi wang
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 , I mean that the libvirt.xml is genrated
automatically, not by myself manually.
Wish your help! Thanks a lot!
--
Yours.
suyi
12 years, 9 months
[libvirt-users] tunneled VM migration error
by Shantanu Pavgi
I am getting following error with tunneled migration command:
{{{
$ virsh --connect qemu:///system migrate --verbose --p2p --tunnelled 32 qemu+ssh://kvm-03/system
error: operation failed: Failed to connect to remote libvirt URI qemu+ssh://kvm-03/system
}}}
However I am able to perform other virsh command like list, pool-list, dumpxml using the same remote libvirt URI:
{{{
$ virsh --connect qemu+ssh://kvm-03/system list
}}}
Also, the hypervisor native migration is working fine with following command:
{{{
$ virsh --connect qemu:///system migrate 31 qemu+ssh://kvm-03/system
}}}
I am confused why remote URI worked for some of the commands but not for the migrate command. Am I missing something with the tunneled migration command or libvirtd/qemu configuration file? Any help would be appreciated.
Software versions on both systems:
* CentOS 6.2
* Libvirt 0.9.4
* qemu-kvm 2:0.12.1.2-2.209.el6_2.4
--
Shantanu
12 years, 9 months
[libvirt-users] Correctly using libvirt to mount /dev/pts and /dev in an lxc application container
by David Jablonski
We would like to mount /dev and /dev/pts correctly using the libvirt xml
config file instead of doing a bind mount in a container init script we use.
Currently the container config is:
<domain type='lxc'>
<name>CentOS_57</name>
<uuid>ff5d3c04-49e6-a3cc-0a14-ff13625eca3c</uuid>
<memory>262144</memory>
<currentMemory>262144</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='i686'>exe</type>
<init>/bin/lxc-progs</init>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/libexec/libvirt_lxc</emulator>
<filesystem type='mount' accessmode='passthrough'>
<source dir='//home'/>
<target dir='/home'/>
</filesystem>
<filesystem type='mount' accessmode='passthrough'>
<source dir='/archive/centos57-root'/>
<target dir='/'/>
</filesystem>
<filesystem type='mount' accessmode='passthrough'>
<source dir='//archive'/>
<target dir='/archive'/>
</filesystem>
<console type='pty'>
<target type='serial' port='0'/>
</console>
</devices>
</domain>
The /bin/lxc-progs file is:
#!/bin/sh
service rsyslog start
service sssd start
service sshd start
mount -t devtmpfs none /dev
mount -t devpts none /dev/pts
mount -t tmpfs none /dev/shm
exec /bin/sh
Basically how do we remove the above mount points in the lxc init
process and use libvirt to control the mounts instead?
Any help would be appreciated. Thank you.
--
David W. Jablonski
Systems Administrator
INOC
608.204.0202
608.663.4555
djablonski(a)inoc.com
www.inoc.com
*** DELIVERING UPTIME ***
12 years, 9 months
Re: [libvirt-users] 回复: Re: virsh create error : monitor socket did not show up
by Osier Yang
On 03/07/2012 06:44 PM, 张光鹏 wrote:
> ok,here is my log:
> Using CPU model "cpu64-rhel6"
> kvm: -device lsi,id=scsi0,bus=pci.0,addr=0x4: Parameter 'driver' expects
> a driver name
> Try with argument '?' for a list.
This tells the "lsi" device is not supported by
your qemu. You must configured scsi device in
domain XML, and "lsilogic" is the default controller
model if you don't configure it. see
http://libvirt.org/formatdomain.html#elementsControllers
> I had to admit that my template is error ,this is my error part:
>
> <disk type='file' device='disk' >
> xxx
> <target dev='hda'>
> xxx
> </disk>
> <disk type='file' device='cdrom' >
> <target dev='sdc'/>
> </disk>
>
> Althroug i had handled this error ,bug i didnot quite understand .
> ------------------------------------------------------------------------
> 张光鹏
> *发件人:* Osier Yang <mailto:jyang@redhat.com>
> *发送时间:* 2012-03-07 19:18
> *收件人:* 张光鹏 <mailto:zhanggp@neusoft.com>
> *抄送:* libvirt-users <mailto:libvirt-users@redhat.com>
> *主题:* Re: [libvirt-users] virsh create error : monitor socket did not
> show up
> On 03/07/2012 06:22 PM, 张光鹏 wrote:
> > Hi,all
> > i get a problem as below when i create a vm:
> > virsh create deployment.0
> > error: Failed to create domain from deployment.0
> > error: monitor socket did not show up.: No such file or directory
> Generally it tells the qemu failed to start,
> could you check if there is error log in
> guest log (e.g. /var/log/libvirt/qemu/$guest.log)
> Osier
> ---------------------------------------------------------------------------------------------------
> Confidentiality Notice: The information contained in this e-mail and any
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any
> reader of this communication is
> not the intended recipient, unauthorized use, forwarding, printing,
> storing, disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original
> message and all copies from
> your system. Thank you.
> ---------------------------------------------------------------------------------------------------
12 years, 9 months
Re: [libvirt-users] libvirt-users Digest, Vol 27, Issue 11
by Jatin Kumar
How do we allow resource over provisioning in KVM ?
I have already posted the same question twice but haven't got any response
yet,
sorry for repeating it again but its important for me, so if some one could
please point
me in the right direction.
--
Jatin
On Wed, Mar 7, 2012 at 4:58 PM, <libvirt-users-request(a)redhat.com> wrote:
> Send libvirt-users mailing list submissions to
> libvirt-users(a)redhat.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://www.redhat.com/mailman/listinfo/libvirt-users
> or, via email, send a message with subject or body 'help' to
> libvirt-users-request(a)redhat.com
>
> You can reach the person managing the list at
> libvirt-users-owner(a)redhat.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of libvirt-users digest..."
>
>
> Today's Topics:
>
> 1. Re: virsh create error : monitor socket did not show up
> (Osier Yang)
> 2. virsh create error : monitor socket did not show up (???)
> 3. Re: ??: Re: virsh create error : monitor socket did not show
> up (Osier Yang)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 07 Mar 2012 19:18:37 +0800
> From: Osier Yang <jyang(a)redhat.com>
> To: ??? <zhanggp(a)neusoft.com>
> Cc: libvirt-users <libvirt-users(a)redhat.com>
> Subject: Re: [libvirt-users] virsh create error : monitor socket did
> not show up
> Message-ID: <4F57440D.1030009(a)redhat.com>
> Content-Type: text/plain; charset=GB2312
>
> On 03/07/2012 06:22 PM, ??? wrote:
> > Hi,all
> > i get a problem as below when i create a vm:
> > virsh create deployment.0
> > error: Failed to create domain from deployment.0
> > error: monitor socket did not show up.: No such file or directory
>
> Generally it tells the qemu failed to start,
> could you check if there is error log in
> guest log (e.g. /var/log/libvirt/qemu/$guest.log)
>
> Osier
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 7 Mar 2012 19:02:07 +0800
> From: ??? <zhanggp(a)neusoft.com>
> To: libvirt-users <libvirt-users(a)redhat.com>
> Subject: [libvirt-users] virsh create error : monitor socket did not
> show up
> Message-ID: <201203071902069063017(a)neusoft.com>
> Content-Type: text/plain; charset="gb2312"
>
> Hi,all
> i get a problem as below when i create a vm:
> virsh create deployment.0
> error: Failed to create domain from deployment.0
> error: monitor socket did not show up.: No such file or directory
>
> ok,here is my /var/log/libvirt/qemu/guest.log error:
>
> Using CPU model "cpu64-rhel6"
> kvm: -device lsi,id=scsi0,bus=pci.0,addr=0x4: Parameter 'driver' expects a
> driver name
> Try with argument '?' for a list.
> I had to admit that my template is error ,this is my error part:
> <disk type='file' device='disk' >
> xxx
> <target dev='hda'>
> xxx
> </disk>
> <disk type='file' device='cdrom' >
> <target dev='sdc'/>
> </disk>
> Althroug i had handled this error ,bug i didnot quite understand .
>
>
>
>
>
>
> ???
> tel: 13718913184
> mail: zhanggp(a)neusoft.com
> ????????
>
> ??????????
> http://www.neusoft.com
>
> ---------------------------------------------------------------------------------------------------
> Confidentiality Notice: The information contained in this e-mail and any
> accompanying attachment(s)
> is intended only for the use of the intended recipient and may be
> confidential and/or privileged of
> Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader
> of this communication is
> not the intended recipient, unauthorized use, forwarding, printing,
> storing, disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this
> communication in error,please
> immediately notify the sender by return e-mail, and delete the original
> message and all copies from
> your system. Thank you.
>
> ---------------------------------------------------------------------------------------------------
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://www.redhat.com/archives/libvirt-users/attachments/20120307/5364fd...
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: 11635_??20??????logo(0(01-16-12-08-11).jpg
> Type: image/jpeg
> Size: 11635 bytes
> Desc: not available
> URL: <
> https://www.redhat.com/archives/libvirt-users/attachments/20120307/5364fd...
> >
>
> ------------------------------
>
> Message: 3
> Date: Wed, 07 Mar 2012 20:15:09 +0800
> From: Osier Yang <jyang(a)redhat.com>
> To: ??? <zhanggp(a)neusoft.com>
> Cc: "libvirt-users(a)redhat.com" <libvirt-users(a)redhat.com>
> Subject: Re: [libvirt-users] ??: Re: virsh create error : monitor
> socket did not show up
> Message-ID: <4F57514D.9080507(a)redhat.com>
> Content-Type: text/plain; charset=GB2312
>
> On 03/07/2012 06:44 PM, ??? wrote:
> > ok,here is my log:
> > Using CPU model "cpu64-rhel6"
> > kvm: -device lsi,id=scsi0,bus=pci.0,addr=0x4: Parameter 'driver' expects
> > a driver name
> > Try with argument '?' for a list.
>
> This tells the "lsi" device is not supported by
> your qemu. You must configured scsi device in
> domain XML, and "lsilogic" is the default controller
> model if you don't configure it. see
>
> http://libvirt.org/formatdomain.html#elementsControllers
>
> > I had to admit that my template is error ,this is my error part:
> >
> > <disk type='file' device='disk' >
> > xxx
> > <target dev='hda'>
> > xxx
> > </disk>
> > <disk type='file' device='cdrom' >
> > <target dev='sdc'/>
> > </disk>
> >
> > Althroug i had handled this error ,bug i didnot quite understand .
> > ------------------------------------------------------------------------
> > ???
> > *????* Osier Yang <mailto:jyang@redhat.com>
> > *?????* 2012-03-07 19:18
> > *????* ??? <mailto:zhanggp@neusoft.com>
> > *???* libvirt-users <mailto:libvirt-users@redhat.com>
> > *???* Re: [libvirt-users] virsh create error : monitor socket did not
> > show up
> > On 03/07/2012 06:22 PM, ??? wrote:
> > > Hi,all
> > > i get a problem as below when i create a vm:
> > > virsh create deployment.0
> > > error: Failed to create domain from deployment.0
> > > error: monitor socket did not show up.: No such file or directory
> > Generally it tells the qemu failed to start,
> > could you check if there is error log in
> > guest log (e.g. /var/log/libvirt/qemu/$guest.log)
> > Osier
> >
> ---------------------------------------------------------------------------------------------------
> > Confidentiality Notice: The information contained in this e-mail and any
> > accompanying attachment(s)
> > is intended only for the use of the intended recipient and may be
> > confidential and/or privileged of
> > Neusoft Corporation, its subsidiaries and/or its affiliates. If any
> > reader of this communication is
> > not the intended recipient, unauthorized use, forwarding, printing,
> > storing, disclosure or copying
> > is strictly prohibited, and may be unlawful.If you have received this
> > communication in error,please
> > immediately notify the sender by return e-mail, and delete the original
> > message and all copies from
> > your system. Thank you.
> >
> ---------------------------------------------------------------------------------------------------
>
>
>
> ------------------------------
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users(a)redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
>
> End of libvirt-users Digest, Vol 27, Issue 11
> *********************************************
>
12 years, 9 months
[libvirt-users] virsh create error : monitor socket did not show up
by 张光鹏
Hi,all
i get a problem as below when i create a vm:
virsh create deployment.0
error: Failed to create domain from deployment.0
error: monitor socket did not show up.: No such file or directory
but the situation is very few.
So,can some tell me about this? I just want to know why has this kind of situation.
Thanks.
Best Regards!
张光鹏
tel: 13718913184
mail: zhanggp(a)neusoft.com
移动互联网事业部
东软集团股份有限公司
http://www.neusoft.com
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
12 years, 9 months
[libvirt-users] virsh create error : monitor socket did not show up
by 张光鹏
Hi,all
i get a problem as below when i create a vm:
virsh create deployment.0
error: Failed to create domain from deployment.0
error: monitor socket did not show up.: No such file or directory
ok,here is my /var/log/libvirt/qemu/guest.log error:
Using CPU model "cpu64-rhel6"
kvm: -device lsi,id=scsi0,bus=pci.0,addr=0x4: Parameter 'driver' expects a driver name
Try with argument '?' for a list.
I had to admit that my template is error ,this is my error part:
<disk type='file' device='disk' >
xxx
<target dev='hda'>
xxx
</disk>
<disk type='file' device='cdrom' >
<target dev='sdc'/>
</disk>
Althroug i had handled this error ,bug i didnot quite understand .
张光鹏
tel: 13718913184
mail: zhanggp(a)neusoft.com
移动互联网事业部
东软集团股份有限公司
http://www.neusoft.com
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing, storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
12 years, 9 months
[libvirt-users] libvirt for spice
by suyi wang
Hi all:
I tried kvm on my ubuntu with the libvirt.xml file as follows:
<domain type='kvm'>
<name>instance-00000011</name>
<memory>2097152</memory>
<os>
<type>hvm</type>
<boot dev="hd" />
</os>
<features>
<acpi/>
</features>
<vcpu>1</vcpu>
<devices>
<sound model='ac97'/>
<input type='tablet' bus='usb'/>
<disk type='file'>
<driver type='qcow2'/>
<source
file='/opt/stack/nova/nova/../
/instances/instance-00000011/disk'/>
<target dev='vda' bus='ide'/>
</disk>
<disk type='file'>
<driver type='qcow2'/>
<source
- Ignored:
file='/opt/stack/nova/nova/..//instances/instance-00000011/disk.local'/>
<target dev='vdb' bus='ide'/>
</disk>
<interface type='bridge'>
<source bridge='br100'/>
<mac address='02:16:3e:44:a1:dd'/>
<filterref
filter="nova-instance-instance-00000011-02163e44a1dd">
<parameter name="IP" value="10.0.0.2" />
<parameter name="DHCPSERVER" value="10.0.0.1" />
</filterref>
</interface>
<!-- The order is significant here. File must be defined first
-->
<serial type="file">
<source
path='/opt/stack/nova/nova/..//instances/instance-00000011/console.log'/>
<target port='1'/>
</serial>
<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target port='0'/>
</console>
<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
</serial>
<graphics type='vnc' port='-1' autoport='yes' keymap='en-us'
listen='0.0.0.0'/>
</devices>
</domain>
So it works well.
Howerver, I want change the remote access method by spice, I simply
changed
the libvirt.xml as follows:
<domain type='kvm'>
<name>instance-00000011</name>
<memory>2097152</memory>
<os>
<type>hvm</type>
<boot dev="hd" />
</os>
<features>
<acpi/>
</features>
<vcpu>1</vcpu>
<devices>
<sound model='ac97'/>
<input type='tablet' bus='usb'/>
<disk type='file'>
<driver type='qcow2'/>
<source
file='/opt/stack/nova/nova/..//instances/instance-00000011/disk'/>
<target dev='vda' bus='ide'/>
</disk>
<disk type='file'>
<driver type='qcow2'/>
<source
file='/opt/stack/nova/nova/..//instances/instance-00000011/disk.local'/>
<target dev='vdb' bus='ide'/>
</disk>
<interface type='bridge'>
<source bridge='br100'/>
<mac address='02:16:3e:44:a1:dd'/>
<filterref
filter="nova-instance-instance-00000011-02163e44a1dd">
<parameter name="IP" value="10.0.0.2" />
<parameter name="DHCPSERVER" value="10.0.0.1" />
</filterref>
</interface>
<!-- The order is significant here. File must be defined first
-->
<serial type="file">
<source
path='/opt/stack/nova/nova/..//instances/instance-00000011/console.log'/>
<target port='1'/>
</serial>
<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target port='0'/>
</console>
<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
</serial>
<graphics type='spice' port='-1' autoport='yes' keymap='en-us'
listen='0.0.0.0'/>
</devices>
</domain>
As you can see, I just change <graphics type='vnc' port='-1'
autoport='yes'
keymap='en-us' listen='0.0.0.0'/> to <graphics type='spice' port='-1'
autoport='yes' keymap='en-us' listen='0.0.0.0'/> , But it called the
error as follows:
libvirtError: internal error Process exited while reading console log
output: char device redirected to /dev/pts/12
TRACE: do_spice_init: starting 0.8.1
TRACE: do_spice_init: statistics shm_open failed, Permission denied"
I wish someone can give me some help! Thanks!
12 years, 9 months
[libvirt-users] can't add cpu's to virtual guest
by David M. Barlieb
I have a rhel6.0 server running kvm. I have recently needed to add additional cpu's to some of the guests but cannot do it via virt-manager, can't doit using virt, and can't do it by vi the guest.xml file. Is this a bug or am I missing something?
Thanks,
DaveB
12 years, 9 months