[libvirt-users] Help!
by huachao yao
Buddy, I am a noob in libvirt develop.
When I want to create a domain by using virDomainDefineXML and displays a
window on the host desktop. But when I add the line
" <graphics type='sdl' display=':0.0'/>" into the config xml file, the
error as below will happen.
libvir: QEMU error : internal error process exited while connecting to
monitor: Could not initialize SDL(No available video device) - exiting
when I delete " <graphics type='sdl' display=':0.0'/>",I can create the
domain normally. Who can help me?!
The config xml file is as below:
<domain type='qemu'>
<name>qemu_ubuntu_01</name>
<memory>219200</memory>
<currentMemory>219200</currentMemory>
<vcpu>2</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<boot dev='hd'/>
<boot dev='cdrom'/>
</os>
<devices>
<emulator>/usr/bin/qemu</emulator>
<disk type='file' device='cdrom'>
<source file='/root/Downloads/ubuntu-11.04-desktop-amd64.iso'/>
<target dev='hdc' bus='ide'/>
<readonly/>
</disk>
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/winXP.img'/>
<driver name='qemu' type='raw'/>
<target dev='hda'/>
</disk>
<video>
<model type='cirrus' vram='9216' heads='1'>
<acceleration accel3d='yes'/>
</model>
</video>
<interface type='bridge'>
<mac address='52:54:00:d8:65:c9'/>
<source bridge='virbr0'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='10' listen='127.0.0.1'/>
<graphics type='sdl' display=':0.0'/>
</devices>
</domain>
13 years, 2 months
[libvirt-users] Xenapi - Domain Console opening & System info
by sharmila radha krishnan
Hi All,
I would like to know how to open a console of a running domain using libvirt. Looking at the code, seems that there is no support available currently. Any workarounds for this? Also how do I get the System info(Like system tot memory use/Disk info/cpu info,network info etc through libvirt. Are there any palns to support this in the future release?
Also, how to I add a new API to libvirt?
Thanks,
Sharmila
13 years, 2 months
[libvirt-users] Reg: Workaround to use pivot_root while using "rootfs" for "/" ?
by Alphonse Hansel Anthony
Hi All,
I am trying to start a lxc container using libvirt and I am facing an
issue due to pivot_root.
The return code from the system call “pivot_root” is EINVAL (Invalid
arguments).
I isolated the issue to this specific condition check within the system
call.
This is an code snippet from fs/namespace.c::pivot_root
* error = -EINVAL;
if (root.mnt->mnt_root != root.dentry)
goto out2; /* not a mountpoint */
if (root.mnt->mnt_parent == root.mnt) << this represents a circular
mount reference
goto out2; /* not attached */
if (new.mnt->mnt_root != new.dentry)
goto out2; /* not a mountpoint */
if (new.mnt->mnt_parent == new.mnt)
goto out2; /* not attached */
*
This issue occurs for me, since I am using fstype "rootfs" as "/" and all
binaries are mounted ISO's for execution within "/".
Based on information from the below links, I have realized, that pivot_root
is not possible for the above case.*
**https://lkml.org/lkml/2005/10/8/17
https://bugzilla.kernel.org/show_bug.cgi?id=4857
*
I would like to know , if my observations are correct and is there any
workaround to overcome this issue?
Any help in this regard would be useful.
-Alphonse
13 years, 2 months
[libvirt-users] (no subject)
by lingjiao.lc
Hi,
I’ve used the libvirt and sheepdog, they are so great!
But I have one question about libvirt and sheepdog.
As we know, I can use this command to create a sheepdog image,
#qemu-img create –f raw sheepdog:fedora15.img 40G
but how can I create a pool and volume for sheepdog with the xml of libvirt ?
________________________________
This email (including any attachments) is confidential and may be legally privileged. If you received this email in error, please delete it immediately and do not copy it or use it for any purpose or disclose its contents to any other person. Thank you.
本电邮(包括任何附件)可能含有机密资料并受法律保护。如您不是正确的收件人,请您立即删除本邮件。请不要将本电邮进行复制并用作任何其他用途、或透露本邮件之内容。谢谢。
13 years, 2 months
[libvirt-users] libvirt ruby binding with vmware
by Ohad Levy
Hi,
I've been trying to use the ruby libvirt binding with vmware esx on F15,
however it doesnt seems to work, I get:
Libvirt::ConnectionError: Call to virConnectOpen failed: Cannot access CA
certificate '/etc/pki/CA/cacert.pem': No such file or directory
I've using the same uri with virsh and it works.
it seems like somehow the no_verify is not passed, or we are back to old
libvirt error messages :)
any idea?
thanks,
Ohad
13 years, 2 months
[libvirt-users] pool-refresh on iSCSI pools does not actually rescan the bus
by Guido Winkelmann
Hi,
When I add a new LUN on an iscsi target and then issue a pool-refresh command
on the respective storage pool in libvirt, libvirt will not find the new lun
(or notice if luns have been removed).
I'm using a Dell PowerVault MD3200i iSCSI Array to hold the volumes for
virtual servers in libvirt. In libvirt, I have defined the storage pool as
this:
<pool type='iscsi'>
<name>iscsi01</name>
<uuid>52eb9c59-a7ac-a4e8-a26e-7ca112f0dd70</uuid>
<capacity>85899345920</capacity>
<allocation>85899345920</allocation>
<available>0</available>
<source>
<host name='10.3.1.15'/>
<device
path='iqn.1984-05.com.dell:powervault.md3200i.6782bcb0000859f3000000004d3eec7d'/>
</source>
<target>
<path>/dev/disk/by-id</path>
<permissions>
<mode>0700</mode>
<owner>-1</owner>
<group>-1</group>
</permissions>
</target>
</pool>
If I add a new LUN on the iSCSI array, and then issue the command "pool-
refresh iscsi01", followed by "vol-list iscsi01" in virsh, the list does not
contain the new volume. The only workaround I have found so far for this is to
manually log in to the host server as root, do "iscsiadm -m discovery -t
sendtargets -p 10.3.1.15" and then issue the pool-refresh command in libvirt.
Libvirt is libvirt-0.8.3-4.fc14.x86_64 on Fedora 14.
Is this supposed to work like this? If not, will a newer version fix that
problem?
Regards,
Guido
13 years, 2 months
[libvirt-users] Strange libvirt exit status 1 (LXC containers)
by Stephen Eilert
Hello,
I've encountered the following error, trying to start a domain:
error: internal error Child process (PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin LIBVIRT_DEBUG=2 LIBVIRT_LOG_OUTPUTS=2:syslog:libvirtd /usr/libexec/libvirt_lxc --name vm_14 --console 18 --handshake 21 --background --veth veth1) status unexpected: exit status 1
I see nothing relevant in syslog, google searches have returned nothing. Starting libvirt_lxc manually seems to work (the process never returns), but of course the VMs do not start.
I am at a loss on what to do next. I'm running Ubuntu 10.04, which is itself a guest system running under virtual box (host is OSX Lion). I've compiled libvirt from git (using /usr as the --prefix, after removing the OS package), LXC containers are installed from a PPA, as the default Ubuntu kernel doesn't enable network namespaces. LXC itself doesn't appear to be a problem, as I can start VMs with lxc-start. Since I required libvirt's API, using LXC directly is not desirable.
Does anyone have any tips on what I should be looking for? Thanks.
-- Stephen
-- Domain definition follows:
<domain type='lxc'>
<name>vm_14</name>
<uuid>9243fb5b-6b26-44af-7408-69c7f2d4ff03</uuid>
<memory>262144</memory>
<currentMemory>262144</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64'>exe</type>
<init>/sbin/init</init>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>preserve</on_crash>
<devices>
<emulator>/usr/libexec/libvirt_lxc</emulator>
<filesystem type='mount' accessmode='passthrough'>
<source dir='/var/lib/lxc/vmpea/rootfs/'/>
<target dir='/'/>
<readonly/>
</filesystem>
<filesystem type='mount' accessmode='passthrough'>
<source dir='/home/lxcadmin/repositories/14'/>
<target dir='/home/lxcmaster'/>
</filesystem>
<interface type='network'>
<mac address='52:54:00:10:7a:e7'/>
<source network='default'/>
<target dev='veth0'/>
</interface>
<console type='pty'>
<target type='serial' port='0'/>
</console>
</devices>
</domain>
13 years, 2 months
[libvirt-users] migration in parallel
by Yih-Herng Chuang
Hi,
We ran into various errors when tried to run migration in parallel. Does
libvirt support migration in parallel?
Regards,
--Yih
Yih-Herng Chuang
IBM Center for Microsoft Technologies
3600 Carillon Point, Kirkland WA 98033
(DID) (425) 803-7285
(TIE) 977-7285
YihHerng(a)us.ibm.com
13 years, 2 months
[libvirt-users] Problem to migrate virtual machine between two hosts with same uuid
by info@umbertocarrara.it
hi at all,
i'm trying to migrate a vm between two host but fails, this is what
I did:
virsh # start win2008
Domain win2008 started
virsh # list
Id Name State
----------------------------------
1 win2008 running
virsh # migrate --live win2008 qemu+ssh://host2/system
error: internal error Attempt to migrate guest to the same host
00010203-0405-0607-0809-0a0b0c0d0e0f
if I type on both hosts:
host1
virsh # sysinfo
.......
<system>
<entry name='manufacturer'>Supermicro</entry>
<entry name='product'>X9SCL/X9SCM</entry>
<entry name='version'>0123456789</entry>
<entry name='serial'>0123456789</entry>
<entry name='uuid'>00010203-0405-0607-0809-0A0B0C0D0E0F</entry>
<entry name='sku'>To be filled by O.E.M.</entry>
<entry name='family'>To be filled by O.E.M.</entry>
</system>
........
host2
virsh # sysinfo
.......
<system>
<entry name='manufacturer'>Supermicro</entry>
<entry name='product'>X9SCL/X9SCM</entry>
<entry name='version'>0123456789</entry>
<entry name='serial'>0123456789</entry>
<entry name='uuid'>00010203-0405-0607-0809-0A0B0C0D0E0F</entry>
<entry name='sku'>To be filled by O.E.M.</entry>
<entry name='family'>To be filled by O.E.M.</entry>
</system>
........
The problem seems to be the same uuid on both hosts,
1) is correct?
2) if is correct, how I can resolve?
Thanks a lot in advance
Umberto
--
------------------------------------------
mediaus
around the web
Via Romana, 2143 - 55100 Antraccoli - LUCCA
Web: http://www.mediaus.it
Tel.: +39 (0) 583 493745/464501
Mob. +39 349.5422881
Fax.: +39 (0) 583 471420
Mailto:info@mediaus.it
13 years, 2 months
[libvirt-users] pool assumed to have 512B sector
by David Cohen
Hi,
When creating a dedicated storage pool on a FC attached storage with sector
size of 4096B and size of 2TB, the storage pool is created but reported as 1/8
of it's size, the same follows for any volume created in the same storage
pool:
# virsh pool-info guest_images_disk
Name: guest_images_disk
UUID: 30247222-c1fb-8749-b833-a73782198d26
State: running
Persistent: yes
Autostart: yes
Capacity: 256.00 GB
Allocation: 122.07 MB
Available: 255.88 GB
--
David Cohen
Grid Computing
Physics Department
Technion - Israel Institute of Technology
Phone: 972-4-8293668
Fax: 972-4-8295755
Cellular: 972-54-5385664
13 years, 2 months