[libvirt-users] How to fix an incorrect storage pool?
by Phill Edwards
I've created my storage pool incorrectly. I'm using LVM and I have a volume
group called vms-lvm.
When I look at it in virt-manager I see that the volumes it contains are
home, root and swap, so when I created the storage group in virt-manager I
must have specified something incorrectly.
Unfortunately I can't find a way to correct this. If I try to destroy
(stop) the storage group I get an error:
# virsh pool-destroy vms-lvm
error: Failed to destroy pool vms-lvm
error: internal error: Child process (/usr/sbin/vgchange -aln centos_hyv2)
unexpected exit status 5: Logical volume centos_hyv2/swap in use.
Can't deactivate volume group "centos_hyv2" with 3 open logical volume(s)
Same if I try to undefine it:
# virsh pool-undefine vms-lvm
error: Failed to undefine pool vms-lvm
error: Requested operation is not valid: storage pool 'vms-lvm' is still
active
Can anyone please advise how I get out of this mess? There must surely be a
way of undefining this?
9 years, 1 month
[libvirt-users] a VM does not get dhcp
by lejeczek
hi everybody
I'm looking at my setup and got stuck
I have a box with two NICs on the same subnet, and another
box similar, also two NICs on one subnet, all four NICs are
on the same subnet.
Now, that second box has also a virtual NIC (libvirtd's
bridge route mode) and VMs guests are using it, traffic to
that virtual net is routed via 1st real NIC. This second box
dhcrelays to the first box(dhcpd).
I see box-dhcrelay forwards to box-dhcpd, I see box-dhcpd
receives and offers a lease but that VM guest does not get it.
I have policy routing manually set in place so both boxes
can ping each other all NICs. (including virtual NIC on the
box-dhcrelay)
Moreover, that VM guest can ping both boxes' all NICs when
its IP address is set to manual.
It's RHEL7 and I'm only trying IPv4.
I'm hoping some can rule out (or suggest what might be
broken in) libvirt/policy based routing.
I see those offers box-dhcpd makes are exactly for the
subnet of box-dhcrelay's virtual NIC/subnet.
It's a pickle. An expert's thought would be great to hear.
9 years, 1 month
[libvirt-users] xen+ssh with openauth
by Shahar Havivi
Hi,
I am trying to connect to remote libvirt via script,
and I get password prompt from the shell.
============================================================================
uri='xen+ssh://root@myserver/?no_verify=1'
def req(credentials, user_data):
print('in req...\n')
for cred in credentials:
if cred[0] == libvirt.VIR_CRED_AUTHNAME:
cred[4] = username
elif cred[0] == libvirt.VIR_CRED_PASSPHRASE:
cred[4] = passwd
return 0
auth = [[libvirt.VIR_CRED_AUTHNAME, libvirt.VIR_CRED_PASSPHRASE], req, None]
con = libvirt.openAuth(uri, auth, 0)
============================================================================
The script never enter req() method but prompts for password, after I enter
the password I am able to connect to the remote machine.
I did try to put all the flags ie:
auth = [[1,2,3,4,5,6,7,8], req, None]
with no successes as well...
The server is RHEL 5.11 with libvirt-0.8.2-29.el5_9.1
Thank you,
Shahar.
9 years, 1 month
[libvirt-users] ERROR_NO_SYSTEM_RESOURCES on virtio port within the Windows Guest
by Jean-Pierre Ribeauville
Hi,
>From a Windows Guest , I try to read data sent by the Host , via a virtio port . ( I.e. channel device type UNIX on host side)
If no data sent by Host , the blocking ReadFile() invoked within the Guest exits immediately with following error code :
ERROR_NO_SYSTEM_RESOURCES
1450 (0x5AA)
Insufficient system resources exist to complete the requested service.
Is it the waited behavior or did I misunderstood something ?
If datas are sent , I got them correctly.
Thx for help.
J.P. Ribeauville
P: +33.(0).1.47.17.20.49
.
Puteaux 3 Etage 5 Bureau 4
jpribeauville(a)axway.com<mailto:jpribeauville@axway.com>
http://www.axway.com<http://www.axway.com/>
P Pensez à l'environnement avant d'imprimer.
9 years, 1 month
[libvirt-users] availability of target type state within a dumpxml result
by Jean-Pierre Ribeauville
Hi,
I'm trying to find out what is the minimum release I need to use to have this field 'state' available ?
<channel type='unix'>
<source mode='bind' path='//var/lib/libvirt/qemu/dummy_agent'/>
<target type='virtio' name=dummy' state='connected'/>
<alias name='channel0'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
By using a virsh 0.10.2 , it seems tooo old .
Thanks for help.
J.P. Ribeauville
P: +33.(0).1.47.17.20.49
.
Puteaux 3 Etage 5 Bureau 4
jpribeauville(a)axway.com<mailto:jpribeauville@axway.com>
http://www.axway.com<http://www.axway.com/>
P Pensez à l'environnement avant d'imprimer.
9 years, 1 month
[libvirt-users] How could I do the guest mount operation from the host?
by 李笳平
Hi all,
When I attach a disk like this:
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/kvmdata/disk/dk389_581.img'/>
<backingStore/>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</disk>
And then I use “fdisk -l” on the guest, can find the disk info, if I want to mount a disk, I should log on the guest and use the command just like:
mount /dev/vda1 /mnt
Does Libvirt has some API which can send the guest operation(like mount/umount) from host to guest?
Thus I can do the operation on host and need not to log on guest to do the operation.
Thanks!
Best Regards
From Jiaping LI
保密:本函仅供收件人使用,如阁下并非抬头标明的收件人,请您即刻删除本函,勿以任何方式使用及传播,并请您能将此误发情形通知发件人,谢谢!
9 years, 1 month
[libvirt-users] ./build-aux/bracket-spacing.pl missing from tarball
by George Trakatelis
Hi,
When trying to build libvirt from recent tarballs,
I noticed that ./build-aux/bracket-spacing.pl is missing.
That makes 'make syntax-check' fail.
Of course, one would argue that syntax-check is only for developers using
git.
On the other hand, the addition of the file would enable
building libvirt from the tarball just by executing ./autobuild.sh
I'm wondering whether that has been done on purpose or just slipped.
It's always nice to have a package build out-of-the-box.
George
9 years, 1 month
[libvirt-users] VGA passtrough
by Dominique Ramaekers
Hi,
I've been reading up on how to create guests which will have a gpu. I found a technologie of nvidia called Grid K1 or Grid K2. It's a graphical PCIe card which can make virtual gpu's available. Only I think nvidia doesn't support qemu and it looks expensive (didn't ask for a quote yet) because these cards are created for 10 tot 20 users. I only need to support about 6 tops. (and for now just one or two to start)
On libvirt-qemu we can also use the VGA-passtrough support. It seems easy enough.
I have the idea that when using the VGA passtrough, the screen image is send to the hdmi/dvi port on the grapfics card. It seems logical. Does this also mean I can't use the gpu power on a remote screen? I think when using spice, this is surely true but what if I use vnc?
If anyone can give me some tips on this, I'll appreciate it...
Greetings,
Dominique.
9 years, 1 month
[libvirt-users] live vnc port change
by Fırat KÜÇÜK
Hello,
I want to live migrate a vm from one host to another host. Bu I got this
error:
error: internal error: process exited while connecting to monitor:
2015-11-06T07:53:59.006762Z qemu-system-x86_64: Failed to start VNC
server on `0.0.0.0:3': Failed to bind socket: Address already in use
The same VNC port is in use at the destination host. Is it possible to
change port address without rebooting the server?
9 years, 1 month
[libvirt-users] how to make dhcrelay service use libvirt's interfaces?
by lejeczek
hi everybody
in my libvirtd I use bridge with route forward mode,
Problem for me is dhcrelay.service on host which is starting
before libvirtd thus not listening on libvirt interface.
OS is RHEL7.
I wonder if you know how to fix it, besides restarting
dhcrelay that is.
many thanks
9 years, 1 month