[libvirt-users] some problem with snapshot by libvirt
by xingxing gao
Hi,all,i am using libvirt to manage my vm,in these days i am testing
the libvirt snapshot ,but meet some problem:
the snapshot was created from this command:
snapshot-create-as win7 --disk-only --diskspec
vda,snapshot=external --diskspec hda,snapshot=no
but when i tried to revert from the snapshot which created from the
above command ,i got error below:
virsh # snapshot-revert win7 1338041515 --force
error: unsupported configuration: revert to external disk snapshot not
supported yet
version:
virsh # version
Compiled against library: libvir 0.9.4
Using library: libvir 0.9.4
Using API: QEMU 0.9.4
Running hypervisor: QEMU 1.0.93
10 years, 1 month
[libvirt-users] virsh update-device: need to clear network filters
by Oleg Bondarev
Hi,
Can anyone please help with the following: I have a running instance with
interface
<interface type='bridge'>
<mac address='fa:16:3e:ba:a4:67'/>
<source bridge='br100/>
<target dev='vnet0'/>
<model type='virtio'/>
<filterref filter='nova-instance-instance-00000001-fa163ebaa467'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
</interface>
what I need is to clear network interface on the instance. I tried virsh
update-device with following xml:
<interface type='bridge'>
<mac address='fa:16:3e:ba:a4:67'/>
<source bridge='br100/>
<model type='virtio'/>
</interface>
but this results in the following error:
$ sudo virsh update-device 13 xml.xml --persistent --live --config
error: Failed to update device from xml.xml
error: End of file while reading data: Input/output error
error: Failed to reconnect to the hypervisor
and libvirt is restarted. Is it possible to clear nw filter at all?
Thanks,
Oleg
10 years, 7 months
[libvirt-users] About virsh console on Windows guest
by Yoann Dandine
Hello,
Then everything is in the title, i would like to get the guest's serial
console, the Windows one, Linux works perfectly at the moment. I don't find
enough informations about that, so I'm asking myself : "Is that stupid or
inconsistent ?". I know we can go trough 2 ssh access it but that's not
really nice to do.
My searches resulted in the use of EMS, I'm still trying this way but it
seems it doesn't work.
Any suggestions ?
Kind regards
Yoann Dandine.
10 years, 7 months
Re: [libvirt-users] libvirt-users Digest, Vol 52, Issue 39
by Taimur Al Said
On Sun, Apr 27, 2014 at 5:00 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. Ability of a VM to detect Libvirt events. (Taimur Al Said)
> 2. Re: Ability of a VM to detect Libvirt events. (Brian Rak)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 26 Apr 2014 22:46:30 +0100
> From: Taimur Al Said <alsaidts(a)gmail.com>
> To: libvirt-users(a)redhat.com
> Subject: [libvirt-users] Ability of a VM to detect Libvirt events.
> Message-ID:
> <CACwu6qRADOyJ6EB_OD=
> YZgbogNqQLQPxOJfRXshGcqosgDmPKg(a)mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi there,
>
> Let's assume a libvirt event occurred on a VM, i.e an event like pause VM
> or reboot VM or any other libvirt event. Can the VM determine that such
> event was originated by libvirt? ---or in a more general term by the
> hypervisor? If yes, how can this be done in theory?
>
> Thanks in advance,
>
> Regards,
> Taimur
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://www.redhat.com/archives/libvirt-users/attachments/20140426/4699d4...
> >
>
> ------------------------------
>
> Message: 2
> Date: Sat, 26 Apr 2014 18:46:42 -0400
> From: Brian Rak <brak(a)gameservers.com>
> To: libvirt-users(a)redhat.com
> Subject: Re: [libvirt-users] Ability of a VM to detect Libvirt events.
> Message-ID: <535C3752.5070609(a)gameservers.com>
> Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
>
> How are you thinking that a VM would be paused/rebooted via something
> other then the hypervisor?
>
> On 4/26/2014 5:46 PM, Taimur Al Said wrote:
> > Hi there,
> >
> > Let's assume a libvirt event occurred on a VM, i.e an event like pause
> > VM or reboot VM or any other libvirt event. Can the VM determine that
> > such event was originated by libvirt? ---or in a more general term by
> > the hypervisor? If yes, how can this be done in theory?
> >
> > Thanks in advance,
> >
> > Regards,
> > Taimur
> >
> >
> > _______________________________________________
> > libvirt-users mailing list
> > libvirt-users(a)redhat.com
> > https://www.redhat.com/mailman/listinfo/libvirt-users
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://www.redhat.com/archives/libvirt-users/attachments/20140426/d18e0d...
> >
>
> ------------------------------
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users(a)redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
>
> End of libvirt-users Digest, Vol 52, Issue 39
> *********************************************
>
Thanks,
I guess my query was clear. However, I'll make it clearer.
I know that the such events are caused by the hypervisor. Either directly
or using tools such as Libvirt. The question is: can such events be
detectable from the VM level? In another word, can the VM tell if it was
being paused/rebooted/migrated/etc?
Best regards,
Taimur
10 years, 8 months
[libvirt-users] Fwd: [s3-bug-review] [RHEL7] [Virtual disks] Met error messages while the guest OS booting up on a nbd device.
by Chenli Hu
Hi, all
We met an issue while doing the nbd related test, will you please help to review if this issue is a bug? Thank you!
=================================================
Subject: [s3-bug-review] [RHEL7] [Virtual disks] Met error messages while the guest OS booting up on a nbd device.
Description:
Start a guest with only one nbd device and with a linux OS installed on the nbd device,
"virsh create" return successfully, but meet error messages while the guest OS booting up.
Version:
libvirt-client-1.1.1-29.el7.x86_64
qemu-kvm-1.5.3-60.el7.x86_64
kernel-3.10.0-121.el7.x86_64
How reproducible:
100%
Steps to Reproduce:
1. start nbd server on the server host.
#nbd-server 10809 /var/lib/libvirt/images/r7g-qcow2.img
2. create a domain with xml as bellow.
# virsh create r7g-nbd.xml
Domain r7g-qcow2 created from r7g-nbd.xml
# virsh dumpxml r7g-qcow2| grep disk -A 7
<disk type='network' device='disk'>
<driver name='qemu' type='qcow2'/>
<source protocol='nbd'>
<host name='10.66.106.34' port='10809'/>
</source>
<target dev='sda' bus='scsi'/>
<alias name='scsi0-0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
# ps -ef| grep qemu-kvm| grep nbd
qemu 15724 1 99 09:58 ? 00:00:47 /usr/libexec/qemu-kvm -name r7g-qcow2
......
-drive file=nbd:10.66.106.34:10809,if=none,id=drive-scsi0-0-0-0,format=qcow2
-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=1
......
3. login to the guest, the console output error messages and fail to booting up.
Actual results:
As described.
Expected results:
The guest can boot up successfully.
Additional info:
Attached screen-shot and log files.
Regards,
chhu
10 years, 8 months
[libvirt-users] Forwarding incoming connections from an secondary external interface with dhcp
by Bhima Pandava
Hi everyone,
I have a server (ubuntu 14.04 lts) running KVM with a few guests (each
with static IP addresses) which I manage using libvirt. This machine
has a wired interface (br0 / p2p1) connecting to my internal network and
a wireless interface using dhcp (ppp0) as a secondary direct connection
to the internet.
My goal is route all administration traffic for both the host and guests
through the wired interface (br0); while routing the service traffic,
and _only_ this traffic, through the ppp0 interface.
For example: One vm is a webserver and I wish to route all traffic on
ports 80 & 443 from ppp0 to that vm. Another vm is a mailserver and I
wish to route all the imap & pop traffic from ppp0 to that vm. At the
same time, I wish to be able to ssh in through the wired interface
(p2p1) and route all system maintenance traffic through the wired
interface as well. Additionally I wish to drop/reject incoming traffic
on ppp0 which is not on these specified ports.
Reading the libvirt documentation, I have found a section which very
nearly describes my needs:
http://wiki.libvirt.org/page/Networking#Forwarding_Incoming_Connections
Unfortunately, I am unsure how to correcting modify the given examples
to meet my specific needs. To begin with, the examples assume a static
external IP, while mine is dynamic.
I think I would like to refer to interface by name (ppp0) or perhaps
create a secondary bridge (br1) with a static IP, the ppp0 included with
"bridge_prts ppp0" command, and then refer to the static IP of the new
bridge (br1).
Next, I don't see the correct mechanism which I could configure such
that all traffic coming in ppp0 which was not on the specified ports is
rejected/dropped and all administrative traffic, originating from both
the host and guests, is routed through the wired interface. I am
assuming that this also should be done through libvirt/virsh and not
directly through iptables.
If it matters, the wired interface connects to a router running
shorewall (and thus the server is in the "dmz" zone). The server itself
is not running shorewall or any other similar things. The router is
managing the primary connection to internet, which is distinct from the
secondary wireless interface on the server, it is connecting to a
different ISP.
If anyone could give me some advice or point me to some additional or
more relevant documentation/examples I would really, really appreciate it.
Thanks!
10 years, 8 months
[libvirt-users] Ability of a VM to detect Libvirt events.
by Taimur Al Said
Hi there,
Let's assume a libvirt event occurred on a VM, i.e an event like pause VM
or reboot VM or any other libvirt event. Can the VM determine that such
event was originated by libvirt? ---or in a more general term by the
hypervisor? If yes, how can this be done in theory?
Thanks in advance,
Regards,
Taimur
10 years, 8 months
[libvirt-users] Deriving VMs from a reference image via scripts
by Philip Prindeville
Hi.
I have a reference .vmdk (and .xml) reference VM. I need to instantiate multiple new VM’s from this, but changing various parameters: name, MAC address, network connections, cores, memory size, disk size and backing store, etc. and then start these new VM’s… all via ‘virsh’ et al from a script.
What are the steps to do this? I was looking at the command help and some tutorials but apparently not the right ones.
Thanks,
-Philip
10 years, 8 months