[libvirt-users] Suspend Domain (virsh suspend) or Freeze Filesystems (virsh domfsfreze) to take Snapshot of ISCSI volume
by Payes Anand
Hi everybody,
I am trying to take snapshot of a particular iscsi disk mounted inside
the guest operating system. I have created my own snapshot feature for
that.
Could someone please suggest the better choice for stopping read/write
operations on disk out of the two to take snapshots, or if you have
any better solution,
1) freeze filesystems ( using domfsfreeze ) and then take the snapshot or,
2) suspend the VM ( using virsh suspend ) and then take the snapshot
And, before taking the snapshots what other operations should i
perform ( like sync or flush buffer ) for a consistent snapshot.
Any help would be greatly appreciated.
Best Regards,
Payes
9 years, 10 months
[libvirt-users] Trouble creating virtio-serial device
by David Richardson
Hello,
I've running Ubuntu-14.04 as my host and my guest. I've been trying to get
guest to host communication set up by configuring a virtio-serial device.
My xml file contains:
<channel type='unix'>
<source mode='bind' path='/home/dave/vm1.agent'/>
<target type='virtio' name='vm1'/>
</channel>
When I start up the VM, I get the following error:
error: Failed to create domain from vm1.xml
error: internal error: process exited while connecting to monitor:
qemu-system-x86_64: -chardev
socket,id=charchannel0,path=/home/dave/vm1.agent,server,nowait: Failed to
bind socket: Permission denied
qemu-system-x86_64: -chardev
socket,id=charchannel0,path=/home/dave/vm1.agent,server,nowait: chardev:
opening backend "socket" failed
dmesg shows what appears to be an apparmor denial for mknod:
[250108.632450] type=1400 audit(1415994657.679:152): apparmor="DENIED"
operation="mknod" profile="libvirt-2fd2ec54-f644-228e-08ba-297c8b304153"
name="/home/dave/vm1.agent" pid=21856 comm="qemu-system-x86"
requested_mask="c" denied_mask="c" fsuid=112 ouid=112
I can add a line to /etc/apparmor.d/abstractions/libvirt-qemu similar to:
owner /home/dave/vm1.agent rw,
After restarting apparmor, this gets rid of the apparmor complaint, but I
still get the same error from 'virsh create vm1.xml' when trying to create
the VM.
Any suggestions for how to fix this?
Thanks,
~Dave
9 years, 10 months
[libvirt-users] hostdev a Xeon Phi
by lejeczek
hi everybody
I'd like to ask around if Xeon Phis are any good for
passthrough?
Are there any plans for near future or maybe there are
already some success stories using this product?
many thanks,
P.
9 years, 11 months
[libvirt-users] Is there a way to disable libvirt qemu monitor while creating kvm vm using virsh?
by Min Du
Hi,
Now for some reason, I need to add “ -qmp tcp:127.0.0.1:1235” when creating a KVM VM using libvirt. This command meaning in “qemu-kvm --help” is: -qmp dev like -monitor but opens in 'control' mode.
I added command-line equivalent options into the xml file, like below format:
<qemu:commandline>
<qemu:arg value="-s"/>
<qemu:arg value="-qmp"/>
<qemu:arg value="tcp:127.0.0.1:1235"/>
</qemu:commandline>
However when I create VM using this xml file, I got the error:
# virsh create instance-libvirt.xml
error: Failed to create domain from instance-libvirt.xml
error: internal error process exited while connecting to monitor: qemu-kvm: -qmp tcp:127.0.0.1:1235: Duplicate ID 'monitor' for mon
duplicate chardev: monitor
The VM I created, without “—qmp” option, has below options showing in “ps aux | grep qemu-kvm”:
-chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/vmifs_test.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control
Looks like libvirt automatically adds the monitor options upon VM creation.
Is there a way to disable this and use “—qmp” instead when creating VM?
Thanks for your help.
Best Regards,
Min
9 years, 11 months
[libvirt-users] TCP or TLS Connection error
by Ajitha Robert
Hi all i am using libvirt 1.2.0 with xen hypervisor 4.4..
I am facing error while remotely connecting other libvirt using TCP or TLS.
I couldnt make libvirt to listen to the port.. I installed libvirt from
source in debian. I enabled --listen option by uncommenting
LIBVIRTD_ARGS="--listen"
/opt/libvirt-1.2.1/daemon/libvirtd.sysconf ..
I killed the current libvirt. and started the daemon again..
when i gave ps aux | grep libvirtd
the listen is not enabled..
Pls guide me
--
*Regards,Ajitha R*
9 years, 11 months
[libvirt-users] migrate works for xen4.4?
by Ajitha Robert
Hi all,
i m using xen 4.4.0 as hypervisor with libvirt 1.2.0. When i tried with
migrate command i m facing certain issues.. I need to ensure whether
libvirt supports xen 4.4?
--
*Regards,Ajitha R*
9 years, 11 months
[libvirt-users] hvm in xen via libvirt.
by cool dharma06
hi all,
i am using libvirt-1.2.5. i launched my VM(pv) in xen. its worked. But when
i tried to launch HVM its not able to launch. i am facing some error.
Please suggest me some solutions.
thanks& regards,
cooldharm06 ..:)
9 years, 11 months
[libvirt-users] php api binding for setting interface link flags (up/down).
by Vasiliy Tolstov
Hello. I can't see in php api reference info about setting port status
of interface.
virsh have comands virsh domif-setlink, but php api does not have link
funstions.
Please add this interface, bacause it very useful - then we need to
disable some vps, but not want to shutdown it.
Thanks!
--
Vasiliy Tolstov,
e-mail: v.tolstov(a)selfip.ru
jabber: vase(a)selfip.ru
9 years, 11 months