[libvirt-users] Error message doesn't make sense
by Tashi Lu
Hi everyone,
I incidentally configured two IDE controller for my machine-1.2 VM(it
might be virsh attach-disk to blame), and I got the error message
"Only a single IDE controller is unsupported...". I can't understand
this error message, I think it means I HAVE to configure two or more
IDE controllers until I looked it up in the source.
At libvirt-1.2.22/src/qemu/qemu_command.c:
4916 case VIR_DOMAIN_CONTROLLER_TYPE_IDE:
4917 /* Since we currently only support the integrated IDE controller
4918 * on 440fx, if we ever get to here, it's because some other
4919 * machinetype had an IDE controller specified, or a 440fx had
4920 * multiple ide controllers.
4921 */
4922 if (qemuDomainMachineIsI440FX(domainDef))
4923 virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
4924 _("Only a single IDE controller is
unsupported "
4925 "for this machine type"));
I didn't dig VIR_DOMAIN_CONTROLLER_TYPE_IDE up, but reasoning from the
comment, I think this error message should be something like "More
than one IDE controllers is not supported for this machine type"
8 years, 9 months
Re: [libvirt-users] snapshot of running vm's
by Lentes, Bernd
Dominique wrote:
>
> As stated in http://wiki.libvirt.org/page/Live-disk-backup-with-active-
> blockcommit
> You'll need libvirt 1.2.9 ...
>
> It seems even Suse enterprise 12 is still using libivrt 1.2.5...
>
> Bad luck.
>
> Before 1.2.9 I made my backups with a "virsh save $VM" but it cost a lot
> of time to save a VM...
>
I managed to update to libvirt 1.2.11. Guest Agent is running in the vm.
I'm trying to snapshot:
virsh # snapshot-create-as --domain sles11 --name sn_sles11 --atomic
--disk-only --quiesce
error: internal error: unable to execute QEMU agent command
'guest-fsfreeze-freeze': The command guest-fsfreeze-freeze has been
disabled for this instance
What is now going on ?
Guest Agent in VM is qemu-guest-agent-2.0.2-1.35.
Bernd
Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671
8 years, 9 months
Re: [libvirt-users] snapshot of running vm's
by Lentes, Bernd
Dominique wrote:
> -----Original Message-----
> From: Dominique Ramaekers
> [mailto:dominique.ramaekers@cometal.be]
> Sent: Thursday, December 03, 2015 9:46 AM
> To: Lentes, Bernd
> Subject: RE: snapshot of running vm's
>
>
>
> > -----Oorspronkelijk bericht-----
> > Van: Lentes, Bernd [mailto:bernd.lentes@helmholtz-muenchen.de]
> > Verzonden: woensdag 2 december 2015 21:22
> > Aan: Dominique Ramaekers; libvirt-ML
> > Onderwerp: RE: snapshot of running vm's
> >
> ...
> >
> > Hi,
> >
> > i have inserted:
> >
> > <channel type='unix'>
> > <source mode='bind'
> >
> path='/var/lib/libvirt/qemu/channel/target/sles11.org.qemu.guest_age
> nt
> > .0'/
> > >
> > <target type='virtio' name='org.qemu.guest_agent.0'/>
> > <address type='virtio-serial' controller='0' bus='0' port='2'/>
> > </channel>
> >
> >
> > I didn't insert the path, it was added automatically, the same with
> > "<address type='virtio-serial' controller='0' bus='0' port='2'/>".
> > I tried already port 1 and 2, but get this error:
> >
> > sunhb58820:~/libvirt_1.2.11 # virsh start sles11
> > error: Failed to start domain sles11
> > error: internal error: process exited while connecting to monitor:
> > qemu-kvm: -chardev
> >
> socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/sles1
> > 1.or
> > g.qemu.guest_agent.0,server,nowait: Failed to bind socket: No such
> > file or directory
> > chardev: opening backend "socket" failed
>
> Does the path /var/lib/libvirt/qemu/channel/target/ exists?
> Is libvirt able to write to this path?
>
Hi Dominique,
no, the path does not exist. But from where does libvirt derive it ?
I forgot: I'm still running libvirt 1.2.5. Do I need to update also for
this problem ?
Bernd
Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671
8 years, 9 months
Re: [libvirt-users] snapshot of running vm's
by Lentes, Bernd
Dominique wrote:
> -----Original Message-----
> From: Dominique Ramaekers
> [mailto:dominique.ramaekers@cometal.be]
> Sent: Thursday, December 03, 2015 9:46 AM
> To: Lentes, Bernd
> Subject: RE: snapshot of running vm's
>
>
>
> > -----Oorspronkelijk bericht-----
> > Van: Lentes, Bernd [mailto:bernd.lentes@helmholtz-muenchen.de]
> > Verzonden: woensdag 2 december 2015 21:22
> > Aan: Dominique Ramaekers; libvirt-ML
> > Onderwerp: RE: snapshot of running vm's
> >
> ...
> >
> > Hi,
> >
> > i have inserted:
> >
> > <channel type='unix'>
> > <source mode='bind'
> >
> path='/var/lib/libvirt/qemu/channel/target/sles11.org.qemu.guest_age
> nt
> > .0'/
> > >
> > <target type='virtio' name='org.qemu.guest_agent.0'/>
> > <address type='virtio-serial' controller='0' bus='0' port='2'/>
> > </channel>
> >
> >
> > I didn't insert the path, it was added automatically, the same with
> > "<address type='virtio-serial' controller='0' bus='0' port='2'/>".
> > I tried already port 1 and 2, but get this error:
> >
> > sunhb58820:~/libvirt_1.2.11 # virsh start sles11
> > error: Failed to start domain sles11
> > error: internal error: process exited while connecting to monitor:
> > qemu-kvm: -chardev
> >
> socket,id=charchannel0,path=/var/lib/libvirt/qemu/channel/target/sles1
> > 1.or
> > g.qemu.guest_agent.0,server,nowait: Failed to bind socket: No such
> > file or directory
> > chardev: opening backend "socket" failed
>
> Does the path /var/lib/libvirt/qemu/channel/target/ exists?
> Is libvirt able to write to this path?
>
Hi Dominique,
no, the path does not exist. But from where does libvirt derive it ?
Bernd
Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671
8 years, 9 months
[libvirt-users] snapshot of running vm's
by Lentes, Bernd
Hi,
i'd like to create snapshots of my running vm's. I have several hosts with
SLES11 SP4 64bit. I use libvirt 1.2.5-7.1 . VM's are Windows 7, SLES,
Ubuntu, Opensuse.
I use raw files for the vm's.
I try to orientate myself by
http://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit .
The hosts are backuped every night by a network based backup solution
(Legato).
My idea is:
- delete any existing snapshot
- create a new snapshot
- of course before Legato arrives
- then Legato might come and saves my snapshot
- next night the same
Questions:
When I delete a snapshot, is it merged automatically with its base image ?
Or is it something I have to do explicitly (maybe via blockcommit) ?
How can I get rid of the unused snapshot afterwards ? just rm ?
Because I'm doing a live backup do I need to create an external snapshot ?
To create an external snapshot do I have to provide --disk-only ?
Do I have to provide --live as a parameter ?
I tried --quiesce but got that message:
virsh # snapshot-create --domain sles11 --atomic --disk-only --quiesce
error: argument unsupported: QEMU guest agent is not configured
The system I'm testing with is SLES11 SP4 (host and guest). I installed
the guest agent:
vm58820-8:~ # rpm -q qemu-guest-agent
qemu-guest-agent-2.0.2-1.35
Is there something I have to configure ?
Is this way of backup a good solution ? Is there something to improve,
something I have to take care of ?
Is this backup consistent ?
Does that all work with libvirt 1.2.5-7.1 or do I need a more recent
version (what I don't like because I tried
already to update my libvirt but had tons of dependencies) ?
I know. A lot of questions. But it's a backup, and I wanted to be sure
that it operates properly.
Thanks.
Bernd
--
Bernd Lentes
Systemadministration
institute of developmental genetics
Gebäude 35.34 - Raum 208
HelmholtzZentrum München
bernd.lentes(a)helmholtz-muenchen.de
phone: +49 (0)89 3187 1241
fax: +49 (0)89 3187 2294
Wer Visionen hat soll zum Hausarzt gehen
Helmut Schmidt
Helmholtz Zentrum Muenchen
Deutsches Forschungszentrum fuer Gesundheit und Umwelt (GmbH)
Ingolstaedter Landstr. 1
85764 Neuherberg
www.helmholtz-muenchen.de
Aufsichtsratsvorsitzende: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrer: Prof. Dr. Guenther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen
Registergericht: Amtsgericht Muenchen HRB 6466
USt-IdNr: DE 129521671
8 years, 9 months
[libvirt-users] create a directory storage pool in a random location
by Andrei Perietanu
Hi all,
I am trying to figure out if you can store the definition of a directory
storage pool in a custom location.
This is how I create the storage pool:
xmlDesc = """
<pool type='dir'>
<name>guest_images_storage_pool</name>
<uuid>8c79f996-cb2a-d24d-9822-ac7547ab2d01</uuid>
<capacity unit='bytes'>4306780815</capacity>
<allocation unit='bytes'>237457858</allocation>
<available unit='bytes'>4069322956</available>
<source>
</source>
<target>
<path>/disk1/guest_images</path>
<permissions>
<mode>0755</mode>
<owner>-1</owner>
<group>-1</group>
</permissions>
</target>
</pool>"""
pool = conn.storagePoolDefineXML(xmlDesc, 0)
This creates guest_images_storage_pool.xml in /etc/libvirt/storage. I
assume this is the default path libvirt looks for any storage pools on the
system
The problem is that /etc is mapped to a ramdisk on my system. So after
restart anything in there would be wiped.
The path /disk1 maps to an actual hdd partition so ideally libvirt sould
look for it's storage pools in there. I can't seem to make that happen.
I tried adding a source path:
<source>
<dir path="/disk1/storage_pool"/>
</source>
But that has no effect.
Any ideas?
Andrei
--
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of or
taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you receive
this in error please contact the sender and delete the material from any
computer immediately. It is the policy of Klas Limited to disavow the
sending of offensive material and should you consider that the material
contained in the message is offensive you should contact the sender
immediately and also your I.T. Manager.
Klas Telecom Inc., a Virginia Corporation with offices at 1101 30th St. NW,
Washington, DC 20007.
Klas Limited (Company Number 163303) trading as Klas Telecom, an Irish
Limited Liability Company, with its registered office at Fourth Floor, One
Kilmainham Square, Inchicore Road, Kilmainham, Dublin 8, Ireland.
8 years, 9 months
[libvirt-users] libvirt list --all shows empty list after restart
by Andrei Perietanu
Hi all,
I think I might have a small configuration issue: after restarting my
machine, all the VMs previously installed are not available.
virsh list --all shows an empty list.
The .img files where the VMs were intalled are present in the folder I put
them in. Furthermore if I import the VMs (virt-install -import) it all
seems to work. It's just that I don't want to have to do this after every
restart and can't find where libvirt picks up information about any
existing VMs on the system.
Thanks,
Andrei
--
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of or
taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you receive
this in error please contact the sender and delete the material from any
computer immediately. It is the policy of Klas Limited to disavow the
sending of offensive material and should you consider that the material
contained in the message is offensive you should contact the sender
immediately and also your I.T. Manager.
Klas Telecom Inc., a Virginia Corporation with offices at 1101 30th St. NW,
Washington, DC 20007.
Klas Limited (Company Number 163303) trading as Klas Telecom, an Irish
Limited Liability Company, with its registered office at Fourth Floor, One
Kilmainham Square, Inchicore Road, Kilmainham, Dublin 8, Ireland.
8 years, 9 months
[libvirt-users] Why does libvirt insert USB controller automagically?
by Sundar Nadathur
Hello all,
I find this curious behavior that libvirt will automatically insert a USB controller and a memballoon virtio driver into the domain's XML, when defineXML is called. IOW, the original XML did not have these 2 devices but they are present right after defineXML is called. Why should libvirt add a USB controller?
DETAILS:
Here is a little Python snippet to show that behavior:
import libvirt
conn = libvirt.open('qemu:///system')
xml_list = open('/tmp/vm.xml', "r").readlines()
in_xml = ''.join(xml_list) <-- This XML string does not have a USB or a memballoon
dom = conn.defineXML(in_xml)
out_xml = dom.XMLDesc() <-- But this XML string does!
print out_xml
The file /tmp/vm.xml does not have a memballoon or a USB device. Neither, of course, does in_xml string. But out_xml has:
<controller type='usb' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</memballoon>
I don't see anything in libvirt.conf that explains this. This is libvirt version: 1.2.8, package: 16.el7_1.5 (Red Hat, Inc....). The host is RHEL 7.1.
The memballoon part is understandable once I found: https://www.redhat.com/archives/libvir-list/2010-August/msg00132.html
However, why should libvirt add a USB controller gratuitously? Is this controllable from the conf file?
Cheers,
Sundar
________________________________
Confidentiality Notice.
This message may contain information that is confidential or otherwise protected from disclosure. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution, or copying of this message, or any attachments, is strictly prohibited. If you have received this message in error, please advise the sender by reply e-mail, and delete the message and any attachments. Thank you.
8 years, 9 months
[libvirt-users] "Failed to start domain..."
by Ken D'Ambrosio
Sadly, I'm back with another issue. I can do a "system list --all" just
fine; however, if I attempt to start the machines, I get back:
maas@Bill-MAAS-cc:~$ strace -s 1024 -f -o /tmp/asdfasdf.log virsh -c
vbox+ssh://gbadmin@10.20.0.1/system start PXE-client-07
error: Failed to start domain PXE-client-07
error: An error occurred, but the cause is unknown
Log files on both client and server are pretty sparse on details of any
sort... as, again, is Google. Any ideas?
Thanks yet again,
-Ken
8 years, 9 months