[libvirt-users] Renaming a LVM LV (where is vol-edit??)
by Dax Kelson
Hello,
I'm using a LVM storage pool. I renamed a guest and I would like to
change the LV name to match to avoid future confusion.
How do i do this? There is no vol-edit command (fully updated RHEL6).
Thanks,
Dax Kelson
12 years, 7 months
Re: [libvirt-users] Python Libvirt Bindings
by Hubert Zhang
https://www.redhat.com/archives/libvirt-users/2012-May/msg00005.html
When I run the sample code with the case of Python code for using qemu+tcp with SASL, I always got this SASL error:
Traceback (most recent call last):
File "esxList.py", line 102, in ?
conn = libvirt.openAuth(uri, auth, 0)
File "/usr/lib/python2.4/site-packages/libvirt.py", line 102, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: authentication failed: Failed to start SASL negotiation: -4 (SASL(-4): no mechanism available:
I have no problem to run the C&java code with qemu+tcp with SASL. Is it possible an error of Python binding?
Thanks,
-Hubert
12 years, 7 months
[libvirt-users] Problem with pty
by Daniele Milani
Dear all
I have the following problem:
-I'm running libvirt 0.9.11 on ubuntu 12.04;
-when I try to create a VM with the following configuration:
...
<serial type='pty'>
<source path='/dev/pts/2'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/2'>
<source path='/dev/pts/2'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
...
I obtain this output:
errore: Impossibile creare il dominio da domain_alpha_1.xml
(error, impossible to create a domain from domain_alpha_1.xml)
errore: errore interno Process exited while reading console log output:
chardev: opening backend "pty" failed: Permission denied
Does anyone know what's going wrong and ho to fix it?
Thanks,
Daniele Milani
12 years, 7 months
[libvirt-users] F14->F16 Upgrade Results in Win2003 Server Client BSOD 0x7f
by Thomas J. Baker
Hello,
I upgraded my kvm server from Fedora 14 to Fedora 16 and the only casualty was a Windows 2003 Server client that will no longer boot with and produces a BSOD. I admittedly know very little about Windows and this VM has been around - real hardware -> Parallels on a Mac -> linux kvm but it was working fine under Fedora 14. The client does boot fine under safe mode but anything higher than that (even safe mode with networking) results in the BSOD. I've tried explicitly setting the network driver to rtl8139 in virt-manager which appears to be what it was under F14 but it didn't help. Neither did just removing the NIC under Device Manager and letting it get recognized again.
As you can guess given the description, this crusty old Win2003 server instance has some worth in that recreating it is very undesirable for all involved. I'd appreciate any tips on getting it working again.
Thanks,
tjb
--
=======================================================================
| Thomas Baker email: tjb(a)unh.edu |
| Systems Programmer |
| Research Computing Center voice: (603) 862-4490 |
| University of New Hampshire fax: (603) 862-1761 |
| 332 Morse Hall |
| Durham, NH 03824 USA http://wintermute.sr.unh.edu/~tjb |
=======================================================================
12 years, 7 months
[libvirt-users] Migration with rbd storage backend
by Andrey Korolyov
Hi,
Seems that such migration is currently broken, at least for
0.9.11|0.9.12, with 0.9.8 all works fine:
virsh migrate --live testvm qemu+tcp://towerbig/system
---snip---
2012-05-17 21:22:30.250+0000: 16926: debug :
qemuDriverCloseCallbackGet:605 : vm=testvm,
uuid=feb7ccb6-1087-8661-9284-62e3a1e9f44a, conn=(nil)
2012-05-17 21:22:30.250+0000: 16926: debug :
qemuDriverCloseCallbackGet:611 : cb=(nil)
2012-05-17 21:22:30.250+0000: 16926: error :
virStorageFileIsSharedFSType:1007 : Invalid relative path
'rbd/testvm-Vwu': Invalid argument
2012-05-17 21:22:30.250+0000: 16926: debug :
qemuDomainObjEndAsyncJob:955 : Stopping async job: migration out
2012-05-17 21:22:30.250+0000: 16926: debug : virDomainObjUnref:1645 :
obj=0x1c00cd0 refs=3
2012-05-17 21:22:30.250+0000: 16926: debug :
virDomainMigrateBegin3:6173 : xml (null)
2012-05-17 21:22:30.250+0000: 16926: debug : virDomainFree:2345 :
dom=0x1d7ee30, (VM: name=testvm,
uuid=feb7ccb6-1087-8661-9284-62e3a1e9f44a)
2012-05-17 21:22:30.250+0000: 16926: debug : virUnrefDomain:276 :
unref domain 0x1d7ee30 testvm 1
---snip---
Also there is a second point - libvirt doesn`t allow migration of VM
until all snapshots has been deleted, which is not necessary for
network filesystems, so it probably needs to be fixed. Thanks!
12 years, 7 months
Re: [libvirt-users] How to use Python Binding with Lbivirt.
by Hubert Zhang
When I run the python test code I got the SASL error. But it's ok if I run the C sample code. Do you know the reason?
Here is the message:
libvir: RPC error : authentication failed: Failed to start SASL negotiation: -4 (SASL(-4): no mechanism available: No worthy mechs found)
Traceback (most recent call last):
File "esxList.py", line 101, in ?
conn = libvirt.openAuth(uri, auth, 0)
File "/usr/lib/python2.4/site-packages/libvirt.py", line 102, in openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirt.libvirtError: authentication failed: Failed to start SASL negotiation: -4 (SASL(-4): no mechanism available: No worthy mechs found)
Thanks,
-Hubert
12 years, 7 months
[libvirt-users] USB passthrough of all USB-slots to guest
by eGerlach
Hi,
how can I define passthrough of all USB-slots to a guest with libvirt?
With qemu it's very easy:
# kvm -usb -usbdevice host:0.* -usbdevice host:1.* -usbdevice host:2.* -usbdevice host:3.* ...
This configuration of the VM gets *all* 4 USB-Slots. Every time somewhat USB-device
is plugged in the VM gets it.
virt-install manpage offers:
--host-device 001.003
USB by bus, device (via lsusb).
I installed a VM with option --host-device 001.001 according to output of lsusb.
The XML-file generated:
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<vendor id='0x1d6b'/>
<product id='0x0002'/>
</source>
</hostdev>
But no USB device is passed through automatically. I always need
virsh attach-device virtualM myusb.xml
with exact vendor and product ID. I want to plug in somewhat USB-Stick or other USB stuff
without exploring vendor and product id before.
Who can help?
tia
Ekkard
12 years, 7 months
[libvirt-users] lxc: Add /dev/tty to lxcContainerPopulateDevices() ?
by Sukadev Bhattiprolu
Hi,
src/lxc/lxc_container.c:lxcContainerPopulateDevices() has this table
of devices that are automatically created when an lxc container is
started.
const struct {
int maj;
int min;
mode_t mode;
const char *path;
} devs[] = {
{ LXC_DEV_MAJ_MEMORY, LXC_DEV_MIN_NULL, 0666, "/dev/null" },
{ LXC_DEV_MAJ_MEMORY, LXC_DEV_MIN_ZERO, 0666, "/dev/zero" },
{ LXC_DEV_MAJ_MEMORY, LXC_DEV_MIN_FULL, 0666, "/dev/full" },
{ LXC_DEV_MAJ_MEMORY, LXC_DEV_MIN_RANDOM, 0666, "/dev/random" },
{ LXC_DEV_MAJ_MEMORY, LXC_DEV_MIN_URANDOM, 0666, "/dev/urandom" },
};
Can we add '/dev/tty' to this list ?
We were trying to run 'smbpasswd -a user' inside a container without
/dev/tty and the fopen("/dev/tty", "w+") in smbpasswd made /dev/tty
a regular file, breaking man(1), less(1), and ofcourse smbpasswd :-)
Sure we can add /dev/tty to container's rc.local or something, but
wouldn't it be in the same category as say, /dev/null or /dev/zero ?
Sukadev
12 years, 7 months
[libvirt-users] Using virsh to connect to ESX
by Mauro Monteiro
Hello All,
I have just started studying the libvirt and I am trying to connect to ESX
Server (version 4) using virsh (version 0.7.5) using the following command:
virsh -c esx+ssh://root@<fully qualified hostname)>
It inquires the root password and as soon as I inform the password it
throws the error:
error: cannot recv data: Connection reset by peer
error: failed to connect to the hypervisor
I can access my server using ssh. I am running it from Ubuntu 10.04 and the
libvirt version 0.7.5. Can someone help me?
--
[]'s
Mauro
12 years, 7 months