[libvirt-users] Virsh console stops accepting inputs
by Satvinder Gunsi
Hello All,
I am trying following steps:
1. Untar a gzip image
2. virsh create NAME.xml ( for the image)
3. virsh console NAME
The above steps are done for four times on different files.
In step 3 above for one out of four VMs (usually the first one), when I try
to login:, typing the first letter of password brings me back to "login:"
prompt.
Then for the next four tries "each" letter moves me from "login" to
"password:" and back to "login:"
I also see following error in libvirtd.log for each console login attempt.
25446: error : daemonStreamHandleAbort:609 : stream aborted at client
request
My libvirt version is:
libvirtd (libvirt) 1.0.2
OS: FC16
Important: If I destroy the VM and bring it up again, then I donot see this
issue and am able to successfully login.
Can somebody help in resolving this issue.
Thanks in advance,
Regards,
Satvinder
11 years
[libvirt-users] How to attach USB disk to specified USB controller in domian?
by Jianwei Hu
Hi guys,
I want to attach a few USB disks to specified USB controller in domain on libvirt layer, but I didn't find any method to deal with it. Anyone can help me on that?
I added some USB type disk to my domain, started it, I found all USB disk had been attached to same USB controller automatically, I want to assign some USB disks to another controller manually but I can't find the entry. qemu-kvm has provided command line to support it by using "bus" argument.(like: device_add usb-storage,id=my_usb_disk,drive=my_usb_disk,bus=usb.0 )
Action steps:
1. Add some USB disks to domain xml,
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/usb-img/usb-1.img'/>
<target dev='sda' bus='usb'/>
<alias name='usb-disk0'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/var/lib/libvirt/images/usb-img/usb-2.img'/>
<target dev='sdb' bus='usb'/>
<alias name='usb-disk1'/>
</disk>
...
2. Added more than 2 USB controller to domain xml
<controller type='usb' index='0'>
<alias name='usb0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
</controller>
<controller type='usb' index='1'>
<alias name='usb1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</controller>
<controller type='usb' index='2'>
<alias name='usb2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</controller>
<controller type='usb' index='3'>
<alias name='usb3'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
</controller>
3. Enter into guest OS to check those usb device
[root@localhost ~]# lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/8p, 12M
|__ Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 2: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 3: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 4: Dev 7, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 5: Dev 8, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 6: Dev 9, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 7: Dev 10, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 8: Dev 11, If 0, Class=Hub, Driver=hub/8p, 12M
|__ Port 1: Dev 12, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 2: Dev 13, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 3: Dev 14, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 4: Dev 15, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 5: Dev 16, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 6: Dev 17, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 7: Dev 18, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 8: Dev 19, If 0, Class=Hub, Driver=hub/8p, 12M
|__ Port 1: Dev 20, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 2: Dev 21, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 3: Dev 22, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 4: Dev 23, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 5: Dev 24, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 6: Dev 25, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 7: Dev 26, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 8: Dev 27, If 0, Class=Hub, Driver=hub/8p, 12M
|__ Port 1: Dev 28, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 2: Dev 29, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 3: Dev 30, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 4: Dev 31, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 5: Dev 32, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 6: Dev 33, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 7: Dev 34, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 8: Dev 35, If 0, Class=Hub, Driver=hub/8p, 12M
|__ Port 1: Dev 36, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 2: Dev 37, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 3: Dev 38, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 4: Dev 39, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 5: Dev 40, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 6: Dev 41, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 7: Dev 42, If 0, Class=Mass Storage, Driver=usb-storage, 12M
|__ Port 8: Dev 43, If 0, Class=Mass Storage, Driver=usb-storage, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
[root@localhost ~]#
BR,
Jianwei
11 years
[libvirt-users] assign static external IP to container
by scar
hello i have a server colocated in a datacenter with several external IP
addresses available to use. the physical server is using one of these
IPs, and i want to assign another, unused IP to the virtual machine. i
thought i could just do this by editing the container's
/etc/network/interfaces, setting a static IP address for eth0 much like
i did for br0 on the host machine.... but doesn't seem to be working.
ifconfig shows eth0 has the external address but i can't resolve any
hostnames nor telnet to a direct IP address (no route to host). if i
change back to dhcp and let eth0 get an internal address, i can at least
access the internet but cannot access the virtual machine from the
internet. what is the trick to giving a VM a routable, external IP
address? thanks
11 years
[libvirt-users] blockcopy for libvirt and version compatibility
by Mark Trinh
I'm currently running:
virsh --version
1.0.2
libvirtd --version
libvirtd (libvirt) 1.0.2
I have a couple questions.
1. Can I upgrade my libvirt.so version to use with an older libvirtd? In
other words, does the versions of libvirt and libvirtd need to be in lock
step?
2. I'm able to use virsh blockcopy, but I want to do it programmatically
via C. I looked through the API and was not able to see any references to
that. I did see mention of virDomainBlockCopy on the TIP of the git
repository, but no other references to it.
How do I run virsh blockcopy via a C function?
11 years
[libvirt-users] About debugging of libvirt.
by cool dharma06
i am using libvirt-1.1.4 with xen(libxl). When destroying the VM its
showing the following error :
virsh # destroy 4
error: Failed to destroy domain 4
error: End of file while reading data: Input/output error
error: One or more references were leaked after disconnect from the
hypervisor
error: Failed to reconnect to the hypervisor
virsh # list
error: failed to connect to the hypervisor
error: no valid connection
error: Failed to connect socket to '/var/run/libvirt/libvirt-sock':
Connection refused
already i send one request to this community to solve this problem. they
suggested to do gdb.
Any guide to do the gdb libvirtd. By googling i did the following things:
1. i enable the logoutput and loglevel in libvirtd.conf
2. restarted the libvirtd with the changed configuration file.
3. ps -aux | grep libvirtd
4. gdb libvirtd pid
5. then what i have to do to find the reason for this error.
Suggest me some steps to solve this problem.
regards,
cooldharma06.
11 years
[libvirt-users] fuse in libivrt-lxc
by Eldar Yusupov
Hi,
I created an LXC domain via libvirt (on Fedora 20), but when I'm trying to
mount a FUSE filesystem, like sshfs, I'm getting a following error:
$ sshfs 172.30.15.2:/<mntdir> /<mntpoint>
fuse: device not found, try 'modprobe fuse' first
I see that there's no /dev/fuse device. Is there a way to make it work? Can
I get it working via libvirt domain xml file settings or should I use
something else, for example, edit cgroups settings directly somehow?
Thanks in advance!
--
--
Regards,
Eldar Yusupov.
11 years
[libvirt-users] QXL and VRAM settings in Virsh/Virt-Manager
by Alex GS
Hello list,
Having a bit of an issue with virt-manager and virsh on Fedora 19/20. I've
created several virtual guest machines, one of them is Windows. I've
selected QXL and everything is working normally. The only part that's
giving me trouble is that I'm unable to set the QXL VRAM higher than 64mb.
This would be very useful for performance reasons. I've edited the XML
for the corresponding machines and manually set the VRAM higher but when I
start the machine with either virsh or virt-manager it defaults to 64mb
again.
Questions:
1. How can I set the QXL VRAM higher than the default 64mb?
2. Does the VRAM size even matter for guest video performance or does guest
video share RAM from the total virtual RAM allocated?
Thank you,
AGS
11 years
[libvirt-users] BZ1042505: Upon assigning addresses to new virtio-serial ports, libvirt can over-allocate
by Jonathan Lebon
Hello,
(Not sure if this would be better suited for libvir-list,
but here it goes!)
I filed a bug last week regarding the way in which libvirt
assigns addresses to virtio-serial ports.
https://bugzilla.redhat.com/show_bug.cgi?id=1042505
To summarize, adding more than 31 ports causes problems
because libvirt assigns them all to a single controller,
which has a max of 31 (or less if the controller has a
ports attribute).
I was wondering, in general (eg. for things other than
virtio-serial ports), are address assignments done by
libvirt considered 'best efforts' (ie. we don't guarantee
that it will work) or part of the 'promise' to the [API]
user? (Ie. it should always result in a functioning
virtual machine)
I might be interested in working on a patch for this if
it is considered worthwhile.
Cheers,
Jonathan
11 years
[libvirt-users] How to Position a Network Interface in Physical PCI Slot
by Thiru Murugan
Hi ,
I would like to assign a Network Interface card to Physical Slot X in the
virtual machine,
I have gone through the XML file definition[Now i have some idea on how to
position the Network Interface in Logical PCI Slot.]
I am NOT interested in using a PCI Pass-through from the Host.
currently running Fedora 19 with libvirt 1.2.0
I would like to create an network interface card on Physical Slot 5 so all
my network interfaces under the pci-bridge get detected as pci5px
Regards
Thiru
11 years
[libvirt-users] non trivial question
by Vasiliy Tolstov
Hi all.
I have very special task - i have some vps on kvm, that sometimes
needs external support help (administration). But i can't trust
external workers and need to known what files are changed.
As i understand best of all - create backup before work and after.
After that check it for difference and decide apply this work or not.
Vps need to run all time. (no downtime for work).
How can i do that and what tools i need to use? Is that possible?
Thanks for all answers.
--
Vasiliy Tolstov,
e-mail: v.tolstov(a)selfip.ru
jabber: vase(a)selfip.ru
11 years