[libvirt-users] renaming a domain
by Roberto Attias (rattias)
Hello,
In my system a VM with a given domain name is defined and started. At a
certain point I will define and start a new VM, with a different name. I
then want to dispose of the old VM and rename the new one to the old
one. Unfortunately I didn't find any API to do the last step. Is it
possible to change the domain name of a running VM?
Thanks,
Roberto
13 years, 2 months
[libvirt-users] Unable to acquire lock
by Jatin Kumar
Hello,
I am trying to execute virsh commands on a host but it is giving errors
due to failure in acquiring lock.
root@kvm01:~# virsh suspend blindone
error: Failed to suspend domain blindone
error: Timed out during operation: cannot acquire state change lock
Any suggestions how can we figure out possible reasons.
--
Jatin
13 years, 2 months
[libvirt-users] Running LXC instance as a non-root user
by Dong-In David Kang
Hello,
I'm new to this mailing list.
I have a question on running an LXC instance from libvirt as a non-root user.
I saw libvirt can launch a QEMU instance as a non-root user by editing /etc/libvirt/qemu.conf configuration file via the user=$USERNAME and group=$GROUPNAME parameters.
But, I could not find such options for LXC.
Is there a way to run an LXC instance as a non-root user?
If it is not possible, then could I run libivrtd itself as a non-root user?
Thanks,
David.
----------------------
Dr. Dong-In "David" Kang
Computer Scientist
USC/ISI
13 years, 2 months
[libvirt-users] virsh modified option... alternative..
by vmnode guy
Hi All,
I am new to libvirt, i wander how we can achieve below objective, i
read through a lot from libvirt.org but couldn't found any thing solid
something equivalent to this:-
virsh dumpxml dom > /tmp/dom.xml
$EDITOR /tmp/dom.xml && virsh define /tmp/dom.xml
What i try to achieve is to have one management server that install
with libvirt in place then we can use libvirt to connect to other
libvirt box to provision the vm-create, vm-delete & capable to
vm-modified the CPU,MEM,HDD,boot sequence, vnc password attached &
detech network card..on the targeted VM.
Currently we do it through editing the xml file which was a bit pain to do so..
Regards,
Peter
13 years, 2 months
[libvirt-users] high-privileges
by Face
hello all,
my vm (windows server 2008) keep crashing?
2011-09-21 15:00:45.924: 1355: info : libvirt version: 0.9.6
2011-09-21 15:00:45.924: 1355: error : virSysinfoRead:465 : internal
error Failed to find path for dmidecode binary
2011-09-21 15:05:43.873: 1349: warning : qemuDomainObjTaint:1128 :
Domain id=1 name='IIS' uuid=a02e41a9-9f4d-d94f-43a6-995b1ca6d37d is
tainted: high-privileges
2011-09-21 16:07:10.593: 1344: error : qemuMonitorIO:541 : internal
error End of file from monitor
Any help would be much appreciated.
--
Sincerely,
falazemi
13 years, 2 months
[libvirt-users] virt-install with set vnc password
by vmnode guy
Hi Guy,
Anyone know how we can set up the vnc password during using virt-install
command ?
# virt-install \
--connect qemu:///system \
--name demo \
--ram 500 \
--disk path=/var/lib/libvirt/images/demo.img,size=5 \
--network network=default,model=virtio \
--vnc \
--cdrom /dev/cdrom
Regards,
Peter
13 years, 2 months
[libvirt-users] Libvirt Live Migrat error
by Luengffy XUE
Dear ,
Today, i use the libvirt-manager to migrate the live VM . Problem comes ad
the picture.
How did it happen?
Please help me.
Thanks very much.
Leungffy XUE
13 years, 2 months
[libvirt-users] Identifying proper CPU type
by Alex
Hi,
I've been working on trying to figure out why my virtual machine keeps
crashing when I don't believe I have a hardware problem, and I believe
I might know why. As I'm relatively new to this, I believe I may have
misconfigured the XML file to try and maximize the CPU features that
are available to the guest from the host.
I have an Intel Xeon E3-1240 3.3Ghz quad-core. How can I properly
configure the XML file to transparently make available as many of the
CPU features as possible to the guest?
I have read cpu_map.xml, and my processor has more capabilities than
anything listed. I've now configured the <cpu> section to read as
follows:
<cpu>
<topology sockets='1' cores='4' threads='2'/>
</cpu>
The guest processor still seems to indicate there is only one core,
despite there being 7 processors? Below is the cpuinfo from the host,
followed by that of the guest:
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Xeon(R) CPU E31240 @ 3.30GHz
stepping : 7
cpu MHz : 3301.000
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 3
cpu cores : 4
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl
xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl
vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt aes
xsave avx lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi
flexpriority ept vpid
bogomips : 6584.20
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
Guest:
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 2
model name : QEMU Virtual CPU version 0.14.0
stepping : 3
cpu MHz : 3292.520
cache size : 4096 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 4
wp : yes
flags : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pse36 clflush mmx fxsr sse sse2 ht syscall nx lm rep_good nopl
pni cx16 popcnt hypervisor lahf_lm
bogomips : 6585.04
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management:
Any ideas greatly appreciated.
Thanks,
Alex
13 years, 2 months
[libvirt-users] general protection and other errors
by Alex
Hi,
I'm having a problem with a fedora15 x86_64 host with a fedora15
x86_64 guest on a Xeon E3-1240 with 8GB RAM on the guest. This is the
only guest. The server is configured as a mail server, using
spamassassin, postfix, amavisd, and clamav.
It was previously running without error on different hardware. I
migrated the disks to a more powerful server due to load. It's a new
server, and has been stress tested with memtest86, mprime, and
passmark's Linux test for more than 24 hours without producing a
problem.
However, when I run the kvm vm, I receive a bunch of errors similar to
these on the guest:
[169245.360511] clamscan[27448] general protection ip:7f125f2e6ffb
sp:7fff117566f0 error:0 in libclamav.so.6.1.11[7f125f229000+9ce000]
[29016.445470] clamd[1110] general protection ip:30df2c3981
sp:7fffa08f4fe0 error:0 in libclamav.so.6.1
.11[30df200000+9ce000]
There are other applications, such as pyzor, that produce similar errors.
Is this something that could be a result of some software
configuration error I've made? Is there something I can do to debug
this further? There also aren't any errors on the host indicating a
kernel problem or hardware issue.
Is it possible this is a known error?
I was previously trying to improve IO performance by using 'block'
instead of 'file' for the device, but had to abandon that idea because
it didn't work and I had to concentrate on this problem.
Could disabling the cache (cache=none) cause this?
I've included some info below, in hopes someone could guide me towards
a solution.
# rpm -qva|egrep 'kvm|libvirt|kernel|qemu'
libvirt-python-0.8.8-7.fc15.x86_64
kernel-2.6.40.6-0.fc15.x86_64
qemu-img-0.14.0-8.fc15.x86_64
gpxe-roms-qemu-1.0.1-4.fc15.noarch
kernel-2.6.40.4-5.fc15.x86_64
qemu-system-x86-0.14.0-8.fc15.x86_64
libvirt-0.8.8-7.fc15.x86_64
libvirt-client-0.8.8-7.fc15.x86_64
qemu-common-0.14.0-8.fc15.x86_64
kernel-headers-2.6.40.6-0.fc15.x86_64
qemu-kvm-0.14.0-8.fc15.x86_64
I've included my domain config below in hopes it helps.
<domain type='kvm'>
<name>mail02</name>
<uuid>ec4f3cf5-2f27-fb3e-72f6-3fa3176b13b6</uuid>
<memory>6291456</memory>
<currentMemory>6291456</currentMemory>
<vcpu>4</vcpu>
<os>
<type arch='x86_64' machine='pc-0.14'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/qemu-kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source file='/var/lib/libvirt/images/mail02.img'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
</disk>
<disk type='block' device='cdrom'>
<driver name='qemu' type='raw'/>
<target dev='hdc' bus='ide'/>
<readonly/>
<address type='drive' controller='0' bus='1' unit='0'/>
</disk>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
</controller>
<interface type='bridge'>
<mac address='52:54:00:67:2c:4c'/>
<source bridge='br0'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
</video>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x0'/>
</memballoon>
</devices>
</domain>
Thanks,
Alex
13 years, 2 months