[libvirt-users] libtool: error: '/usr/lib64/libtasn1.la' is not a valid libtool archive
by Ambika Prasad Tripathy (ambtripa)
Hi,
Can you please point me what is going wrong during make of libvirt. I found libtasn1.la is present under my sysroot path, still why make is searching it under /usr/lib64/?
<make logs>
CCLD libvirt_driver.la
/router/bin/grep: /usr/lib64/libtasn1.la: No such file or directory
sed: can't read /usr/lib64/libtasn1.la: No such file or directory
libtool: error: '/usr/lib64/libtasn1.la' is not a valid libtool archive
make-3.79.1-p7[3]: *** [libvirt_driver.la] Error 1
make-3.79.1-p7[3]: Leaving directory `/nobackup/ambtripa/sdk_temp/libvirt-1.3.4/src'
make-3.79.1-p7[2]: *** [all] Error 2
make-3.79.1-p7[2]: Leaving directory `/nobackup/ambtripa/sdk_temp/libvirt-1.3.4/src'
make-3.79.1-p7[1]: *** [all-recursive] Error 1
make-3.79.1-p7[1]: Leaving directory `/nobackup/ambtripa/sdk_temp/libvirt-1.3.4'
make-3.79.1-p7: *** [all] Error 2
bash-3.2$
</make logs>
-
Br,
Ambika Prasad Tripathy
8 years, 7 months
[libvirt-users] Need information
by Gk Gk
Hi,
Referring to the link http://wiki.libvirt.org/page/VirtualNetworking, the
scenario described for the routed mode, explains that
"Host has public IP and virtual machines have static public IPs. But one
can't use bridged networking, since provider accept only packets from the
MAC address of the host"
Can someone explain to me why doesn't the switch accept the packets from
the guest vms' mac addresses also since they have public IPs in the
bridged mode ?
Thanks
Kumar
8 years, 7 months
[libvirt-users] how view all macvlan inrterfaces from LXC on hardware node
by mxs kolo
Hi all
We run LXC contrainers in macvlan bridge mode, i.e.;
<interface type='direct'>
<mac address='02:00:00:da:e1:b9'/>
<source dev='eno1.502' mode='bridge'/>
</interface>
In process list:
5339 ? Sl 0:03 /usr/libexec/libvirt_lxc --name t2.infra
--console 21 --security=none --handshake 24 --veth macvlan6
28645 ? Sl 0:00 /usr/libexec/libvirt_lxc --name t1.infra
--console 21 --security=none --handshake 27 --veth macvlan42
How get list of all vlan by "ip" or any other utility ?
"ip link show" not report this macvlans, and "ip netns list" not show
empty output
b.r.
Maxim Kozin
8 years, 7 months
Re: [libvirt-users] Windows Server 2008 - KVM
by Thiago Oliveira
Hi there!
Sure......see below.
# virsh version
Compiled against library: libvirt 1.3.1
Using library: libvirt 1.3.1
Using API: QEMU 1.3.1
Running hypervisor: QEMU 2.5.0
# uname -a
Linux 4.4.0-22-generic #40-Ubuntu 16
<domain type='kvm' id='8'>
<name>W2k8</name>
<uuid>a148a0b7-eefb-9a5b-8e83-8efaf19f9899</uuid>
<description>None</description>
<memory unit='KiB'>2097152</memory>
<currentMemory unit='KiB'>2097152</currentMemory>
<vcpu placement='static'>2</vcpu>
<resource>
<partition>/machine</partition>
</resource>
<os>
<type arch='x86_64' machine='pc-i440fx-trusty'>hvm</type>
<boot dev='hd'/>
<boot dev='cdrom'/>
<bootmenu enable='yes'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<cpu mode='host-passthrough'>
<topology sockets='1' cores='2' threads='1'/>
</cpu>
<clock offset='localtime'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/kvm-spice</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none' io='native'/>
<source file='/mnt/VM_SAS/w2k8.img'/>
<backingStore/>
<target dev='vda' bus='virtio'/>
<alias name='virtio-disk0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04'
function='0x0'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/mnt/VM_SAS/second_HD.raw'/>
<backingStore/>
<target dev='vdb' bus='virtio'/>
<alias name='virtio-disk1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x0'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<backingStore/>
<target dev='hda' bus='ide' tray='open'/>
<readonly/>
<alias name='ide0-1-1'/>
<address type='drive' controller='0' bus='1' target='0' unit='1'/>
</disk>
<controller type='pci' index='0' model='pci-root'>
<alias name='pci.0'/>
</controller>
<controller type='ide' index='0'>
<alias name='ide'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x1'/>
</controller>
<controller type='usb' index='0'>
<alias name='usb'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01'
function='0x2'/>
</controller>
<interface type='network'>
<mac address='52:54:00:c3:c9:f3'/>
<source network='network_win' bridge='virbr0'/>
<target dev='vnet1'/>
<model type='virtio'/>
<alias name='net0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03'
function='0x0'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/1'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/1'>
<source path='/dev/pts/1'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
<input type='mouse' bus='ps2'/>
<input type='keyboard' bus='ps2'/>
<graphics type='vnc' port='5901' autoport='yes' listen='0.0.0.0'>
<listen type='address' address='0.0.0.0'/>
</graphics>
<video>
<model type='cirrus' vram='16384' heads='1'/>
<alias name='video0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02'
function='0x0'/>
</video>
<memballoon model='virtio'>
<alias name='balloon0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05'
function='0x0'/>
</memballoon>
</devices>
<seclabel type='dynamic' model='apparmor' relabel='yes'>
<label>libvirt-a148a0b7-eefb-9a5b-8e83-8efaf19f9899</label>
<imagelabel>libvirt-a148a0b7-eefb-9a5b-8e83-8efaf19f9899</imagelabel>
</seclabel>
</domain>
2016-05-20 3:57 GMT-03:00 Dominique Ramaekers <
dominique.ramaekers(a)cometal.be>:
>
>
>
>
> *Van:* libvirt-users-bounces(a)redhat.com [mailto:
> libvirt-users-bounces(a)redhat.com] *Namens *Thiago Oliveira
> *Verzonden:* vrijdag 20 mei 2016 4:09
> *Aan:* libvirt-users(a)redhat.com
> *Onderwerp:* [libvirt-users] Windows Server 2008 - KVM
>
>
>
> Hi folks!
>
>
>
> When I start the Windows Server 2008 guest, the host cpu grown up
> the utilization and the host load average too. Are there some tips to
> use Windows Server with libvirt?
>
>
>
> Thanks,
>
> Thiago
>
>
>
>
>
> Could you send the XML and the result of ‘virsh version’?
>
8 years, 7 months
[libvirt-users] Windows Server 2008 - KVM
by Thiago Oliveira
Hi folks!
When I start the Windows Server 2008 guest, the host cpu grown up the
utilization
and the host load average too. Are there some tips to use Windows Server
with libvirt?
Thanks,
Thiago
8 years, 7 months
[libvirt-users] libvirt equivalent for VMWare for SCSI mode = independent-persistent?
by Juha Anttila
Hi,
I'm attempting to add virtual SCSI disks to my KVM guests the same way as I did with VMWare, but I'm having issues.
Without knowing any better, I'm assuming it has something to do with me attaching the disk incorrectly, and when I'm looking at the VMWare config one thing I noticed was the SCSI mode "independent-persistent" which I cannot find in libvirt documentation by quick look. Would anyone know how to achieve this?
In the VMWare VMX file I have:
scsi1:4.present = "TRUE"
scsi1:4.fileName = "SCSI1.vmdk"
scsi1:4.mode = "independent-persistent"
scsi1:4.deviceType = "scsi-hardDisk"
and I attempted the below configuration, but when I tried to use the disk as a IO Fencing disk for veritas cluster file system, it failed saying that the device is not SCSI-3 compliant. With VMWare same works fine.
SCSI Controller:
<controller type='scsi' index='0' model='virtio-scsi'>
<alias name='scsi0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x0e' function='0x0'/>
</controller>
Disk:
<disk type='file' device='disk'>
<driver name='qemu' type='raw' cache='none'/>
<source file='/home/VM/VMImages/IOFencing1.img'/>
<target dev='sda' bus='scsi'/>
<shareable/>
<alias name='scsi0-0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
8 years, 7 months
[libvirt-users] libvirt on Raspberry Pi, block by parameter "-S"
by Xu Ding
Hi
I have used libvirt on Raspberry Pi Debian.
I can start the vm, but it just starts and doesn't continue.
I find the qemu-system-arm command generated by virsh has a parameter "-S", when I copy the command, remove the parameter, run it in the console, the vm can run normally.
But I don't know how to remove the parameter in the xml file, or in virsh.
Regards
Thank you
Xu
Here's the qemu-system-arm command, generated by libvirt:
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/local/bin/qemu-system-arm -name test -S -machine vexpress-a15,accel=kvm,usb=off -cpu host -m 500 -realtime mlock=off -smp 1,sockets=1,cores=1,threads=1 -uuid cab134ea-eed8-42e7-88cb-403ee2801e22 -nographic -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/test.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot menu=off,strict=on -kernel /home/pi/src/vexpress-zImage -append "root=/dev/vda rw console=ttyAMA0" -dtb /home/pi/src/vexpress-v2p-ca15-tc1.dtb -usb -drive file=/home/pi/src/test.qcow2,if=none,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-device,scsi=off,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/home/pi/src/opensuse.img,if=none,media=cdrom,id=drive-virtio-disk1,readonly=on,format=raw -device virtio-blk-device,scsi=off,drive=drive-virtio-disk1,id=virtio-disk1 -net nic,macaddr=00:16:3e:5d:aa:a8,vlan=0,model=lan9118,name=net0 -net tap,fd=23,vlan=0,name=hostnet0 -serial file:/var/log/libvirt/qemu/console.log -serial pty -msg timestamp=on
Here's my xml file:
<domain type='kvm'>
<name>test</name>
<uuid>cab134ea-eed8-42e7-88cb-403ee2801e22</uuid>
<memory unit='KiB'>512000</memory>
<currentMemory unit='KiB'>512000</currentMemory>
<vcpu placement='static'>1</vcpu>
<cputune>
<vcpupin vcpu='0' cpuset='3'/>
</cputune>
<os>
<type arch='armv7l' machine='vexpress-a15'>hvm</type>
<kernel>/home/pi/src/vexpress-zImage</kernel>
<cmdline>"root=/dev/vda rw console=ttyAMA0"</cmdline>
<dtb>/home/pi/src/vexpress-v2p-ca15-tc1.dtb</dtb>
<boot dev='hd'/>
<bootmenu enable='no'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<cpu mode='host-model'>
<model fallback='allow'/>
</cpu>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/local/bin/qemu-system-arm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/home/pi/src/test.qcow2'/>
<target dev='hda' bus='virtio'/>
<address type='virtio-mmio'/>
</disk>
<disk type='file' device='cdrom'>
<driver name='qemu' type='raw'/>
<source file='/home/pi/src/opensuse.img'/>
<target dev='hdb' bus='virtio'/>
<readonly/>
<address type='virtio-mmio'/>
</disk>
<interface type='bridge'>
<mac address='00:16:3e:5d:aa:a8'/>
<source bridge='br0'/>
<model type='lan9118'/>
</interface>
<serial type='file'>
<source path='/var/log/libvirt/qemu/console.log'/>
<target port='0'/>
</serial>
<serial type='pty'>
<target port='1'/>
</serial>
<console type='file'>
<source path='/var/log/libvirt/qemu/console.log'/>
<target type='serial' port='0'/>
</console>
</devices>
</domain>
8 years, 7 months
[libvirt-users] Cannot get Sound-Output via pulseaudio
by arne
Hi,
i am currently trying to get my qemu-bashscripts to run via libvirt.
It took some time but my first VM seems to work okay. My main problem is Sound.
I run a pulse audio service and when starting the vm via Commandline it sends sound to the pulseaudioserver just fine
However when i start the vm via libvirt i cannot get any sound output, pavucontrol shows no connected application.
When looking at the /var/log/libvirt/<vmname>.log i can see that the vm is started with ‚QEMU_AUDIO_DRV=none‘ .
How can i set this to QEMU_AUDIO_DRV=pa ?
Hope someone might help me.
Cheers
8 years, 7 months
[libvirt-users] Cannot get Sound-Output via pulseaudio
by arne
Hi,
i am currently trying to get my qemu-bashscripts to run via libvirt.
It took some time but my first VM seems to work okay. My main problem is Sound.
I run a pulse audio service and when starting the vm via Commandline it sends sound to the pulseaudioserver just fine
However when i start the vm via libvirt i cannot get any sound output, pavucontrol shows no connected application.
When looking at the /var/log/libvirt/<vmname>.log i can see that the vm is started with ‚QEMU_AUDIO_DRV=none‘ .
How can i set this to QEMU_AUDIO_DRV=pa ?
Hope someone might help me.
Cheers
8 years, 7 months
[libvirt-users] Disable certain VMs from being launched
by Sureshkumar Kaliannan
The VMs are launched using a pre-defined domain.xml + raw disk.
All VMs (whitelisted + backlisted) ones are launched the same way
(virsh define followed by virsh start)
I want to be able to disable launching of certain VMs(blacklisted ones)
unless explicitly allowed.
What is the best way to accomplish this?
I am exploring the selinux path for this requirement. The current
implementation(understandably) isolates each guest into their own MCS
categories but by default the resources are always relabeled.
Unless, I change the libvirtd code, the auto relabelling can't be
disabled(?)
Still trying to understand the various virt selinux policies, and XML
seclabel options to accomplish this.
Are there better alternatives?
thanks
Suresh
8 years, 7 months