[libvirt-users] Booting virtual machines automatically
by Daniel Gonzalez
Hello,
I am managing several virtual machines (a predefined set) with virsh, and I
would like to make sure that all VMs are booted when the host reboots.
What is the recommended approach for this?
Thanks,
Daniel Gonzalez
12 years, 8 months
[libvirt-users] PCI-X card controlled by VM
by Daniel Gonzalez
Hi all,
I have a PCI-X card which I would like to assign to one of my VM guests.
Is there any way, using libvirt, of completely bypassing the host system,
and routing all PCI-X interaction (drivers, interrupts, general ownership)
to one of the VMs?
Thanks,
Daniel Gonzalez
12 years, 8 months
[libvirt-users] qemu - could not load kernel and dynamic ownership setting
by Shantanu Pavgi
Hi,
I am getting following 'qemu: could not load kernel' error while trying to create a new VM using virt-install or virt-manager. The software versions are as follows: CentOS 6.2, Libvirt 0.9.4, qemu-kvm 2:0.12.1.2-2.209.el6_2.1.
The qemu.conf has disabled dynamic_ownership setting. The VM instantiation has worked fine before when dynamic_ownership was enabled (default). So is this error related to dynamic ownership being disabled? I appreciate any help on how to debug this error further.
Also, is there any documentation on why/when dynamic_ownership setting should be used? We have enabled it to figure this out through some test installs but right now unable to move further with the install step itself.
{{{
virt-install --connect qemu:///system \
-n $guestname \
-r 512 \
--vcpus=1 \
--os-type=linux \
--os-variant=rhel6 \
--accelerate \
--graphics vnc,keymap=en-us \
-v \
-w bridge:br1 \
--disk path=$datastore/$guestname.img,size=40 \
-l $repo \
-x "ks=$ksurl/$ksfile ksdevice=eth0 ip=$guestip netmask=$netmask nameserver=$nameserver gateway=$gw"
}}}
{{{
Starting install...
Retrieving file .treeinfo... | 798 B 00:00 ...
Retrieving file vmlinuz... | 7.5 MB 00:00 ...
Retrieving file initrd.img... | 59 MB 00:01 ...
Allocating 'virtinst-vmlinuz.l4mEAd' | 3.8 MB 00:00
Transferring virtinst-vmlinuz.l4mEAd | 3.8 MB 00:00
Allocating 'virtinst-initrd.img.IvGhFr' | 29 MB 00:00
Transferring virtinst-initrd.img.IvGhFr | 29 MB 00:05
Creating storage file generic-server.img | 40 GB 00:00
ERROR internal error process exited while connecting to monitor: char device redirected to /dev/pts/1
qemu: could not load kernel '/var/lib/libvirt/boot/virtinst-vmlinuz.l4mEAd': Permission denied
Domain installation does not appear to have been successful.
}}}
--
Thanks,
Shantanu
12 years, 8 months
[libvirt-users] About suspend VM
by Александр Семенов
Hello.
I want to disable function suspend and saving in libvirt. How can i do it?
--
------------
С уважением, Семенов А.С.
тел. 8-9269150661
12 years, 8 months
Re: [libvirt-users] Unable to connect qemu:///system on CentOS 6.2 X86_64
by Michał Kulling | IQ.pl
Try one more time and paste /var/log/message (tail -100
/var/log/message) and /var/log/secure (tail -40 /var/log/secure) to
pastebin.com and send link.
On Mon, 5 Mar 2012 22:16:15 +0800, suyi wang <wangsuyi640(a)gmail.com>
wrote:
> I just tried it , but... :(
>
> 2012/3/5 Michał Kulling | IQ.pl
> On Mon, 5 Mar 2012 20:50:29 +0800, suyi wang
> wrote:
>
>> Dear all:
> > I ust installed Fedora16Fedora16 X86_64 on my new machine,
> and
> > then I ran the commands as follows(ran as root):
> >
> > yum install qemu-kvm
> > yum install qemu
> > yum install libvirt
> > yum install virt-manager
> >
> > then I started the libvirtd as follow:
> > /etc/init.d/lbvirtd start
> >
> > So , it ran well.
> >
> > However, after a few days , when I ran the command "virt-manager"
> ,
> > it showed as in the attachment.
> >
> > it seemed that ti cannot connect the hipervisor.
> >
> > Then I did a little test:
> > I ran the conmand "virsh list" , but it didnot work,either.
> >
> > Then I used Python as follows:
> > import libvirt
> > cc = libvirt.open(r'qemu:///system'
> > )
> >
> > but it didnot work,either.
> >
> > All the test above are under root . I hope that someone can give
> me
> > some suggestiion. Thanks to all!
>
> Try:
>
> # service qemu-kvm restart
> # service libvirtd restart
>
> :-)
>
> --
>
> Michał Kulling
> http://iq.pl/ [3]
>
>
>
> Links:
> ------
> [1] mailto:mkulling@iq.pl
> [2] mailto:wangsuyi640@gmail.com
> [3] http://iq.pl/
--
Michał Kulling
http://iq.pl/
12 years, 8 months
[libvirt-users] Unable to connect qemu:///system on CentOS 6.2 X86_64
by suyi wang
Dear all:
I ust installed Fedora16Fedora16 X86_64 on my new machine, and then I
ran the commands as follows(ran as root):
yum install qemu-kvm
yum install qemu
yum install libvirt
yum install virt-manager
then I started the libvirtd as follow:
/etc/init.d/lbvirtd start
So , it ran well.
However, after a few days , when I ran the command "virt-manager" , it
showed as in the attachment.
it seemed that ti cannot connect the hipervisor.
Then I did a little test:
I ran the conmand "virsh list" , but it didnot work,either.
Then I used Python as follows:
import libvirt
cc = libvirt.open(r'qemu:///system'
)
but it didnot work,either.
All the test above are under root . I hope that someone can give me some
suggestiion. Thanks to all!
12 years, 8 months
[libvirt-users] Solution for Address family not supported by protocol
by 4k3nd0
I just upgrade to the last version of the libvirt on my Gentoo System.
(From 0.9.6 to 0.9.10-r3) But i have a problem with starting my NAT:
Error starting network 'NAT': Cannot open network interface control
socket: Address family not supported by protocol
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in
cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 66, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/network.py", line 82, in start
self.net.create()
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1863, in
create
if ret == -1: raise libvirtError ('virNetworkCreate() failed',
net=self)
libvirtError: Cannot open network interface control socket: Address
family not supported by protocol
Anyone have an idea how to fix this? I try also to add a new adapter by
hand, but know seems to work her....
so far
4k3nd0
12 years, 8 months