[libvirt-users] libvir: QEMU error : cannot set ownership
by Ali Shoker
Hello everybody,
I installed eucalyptus on ubuntu10, basic configuration . Everything is ok
untill I start the instances, the disk is being created but it terminates
soon.
Environment:
NFS , KVM, ubuntu10 x64, Euca on 2 machines (wc sc cc clc on one machine,
and nc on another).
libvirtd (libvirt) 0.7.5
QEMU PC emulator version 0.12.3 (qemu-kvm-0.12.3), Copyright (c) 2003-2008
Fabrice Bellard.
Logs:
/var/log/eucalyptus/nc.log:
[Thu Jun 16 03:54:31 2011][003755][EUCADEBUG ] doStartNetwork() invoked
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] StartNetwork(): SUCCESS
return from vnetStartNetwork 0
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] StartNetwork(): done
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] doRunInstance() invoked
(id=i-4C9D08C3 cores=2 disk=10 memory=512)
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ]
image=emi-DDBD105C at
http://10.1.1.2:8773/services/Walrus/image-store-1308215076/image.manifes...
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ]
krnel=eki-F41F10E3 at
http://10.1.1.2:8773/services/Walrus/image-store-1308215076/kernel.manife...
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ]
rmdsk=eri-08841148 at
http://10.1.1.2:8773/services/Walrus/image-store-1308215076/ramdisk.manif...
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ]
vlan=10 priMAC=d0:0d:4C:9D:08:C3 pubMAC=d0:0d:4C:9D:08:C3
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] network started for instance
i-4C9D08C3
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] retrieving images for
instance i-4C9D08C3 (disk limit=10240MB)...
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] verifying cached file in
/var/lib/eucalyptus/instances//eucalyptus/cache/eki-F41F10E3/kernel...
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] walrus_request(): downloading
/tmp/walrus-digest-3D4AKY
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] from
http://10.1.1.2:8773/services/Walrus/image-store-1308215076/kernel.manife...
[Thu Jun 16 03:54:31 2011][003755][EUCADEBUG ] walrus_request(): writing GET
output to /tmp/walrus-digest-3D4AKY
[Thu Jun 16 03:54:31 2011][003755][EUCADEBUG ] walrus_request(): wrote 3479
bytes in 3 writes
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] walrus_request(): saved image
in /tmp/walrus-digest-3D4AKY
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] vrun(): [cp -a
/var/lib/eucalyptus/instances//eucalyptus/cache/eki-F41F10E3/kernel
/var/lib/eucalyptus/instances//admin/i-4C9D08C3/ker
nel]
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] verifying cached file in
/var/lib/eucalyptus/instances//eucalyptus/cache/eri-08841148/ramdisk...
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] walrus_request(): downloading
/tmp/walrus-digest-sVEVa4
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] from
http://10.1.1.2:8773/services/Walrus/image-store-1308215076/ramdisk.manif...
[Thu Jun 16 03:54:31 2011][003755][EUCADEBUG ] walrus_request(): writing GET
output to /tmp/walrus-digest-sVEVa4
[Thu Jun 16 03:54:31 2011][003755][EUCADEBUG ] walrus_request(): wrote 3482
bytes in 3 writes
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] walrus_request(): saved image
in /tmp/walrus-digest-sVEVa4
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] vrun(): [cp -a
/var/lib/eucalyptus/instances//eucalyptus/cache/eri-08841148/ramdisk
/var/lib/eucalyptus/instances//admin/i-4C9D08C3/ramdisk]
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] verifying cached file in
/var/lib/eucalyptus/instances//eucalyptus/cache/emi-DDBD105C/disk...
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] walrus_request(): downloading
/tmp/walrus-digest-RQEzI9
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] from
http://10.1.1.2:8773/services/Walrus/image-store-1308215076/image.manifes...
[Thu Jun 16 03:54:31 2011][003755][EUCADEBUG ] walrus_request(): writing GET
output to /tmp/walrus-digest-RQEzI9
[Thu Jun 16 03:54:31 2011][003755][EUCADEBUG ] walrus_request(): wrote 5887
bytes in 5 writes
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] walrus_request(): saved image
in /tmp/walrus-digest-RQEzI9
[Thu Jun 16 03:54:31 2011][003755][EUCAINFO ] vrun(): [cp -a
/var/lib/eucalyptus/instances//eucalyptus/cache/emi-DDBD105C/disk
/var/lib/eucalyptus/instances//admin/i-4C9D08C3/disk]
[Thu Jun 16 03:54:32 2011][003755][EUCAINFO ] vrun():
[//usr/lib/eucalyptus/euca_rootwrap //usr/share/eucalyptus/partition2disk
/var/lib/eucalyptus/instances//admin/i-4C9D08C3/disk 512 8280]
[Thu Jun 16 03:54:37 2011][003755][EUCADEBUG ] doDescribeResource() invoked
[Thu Jun 16 03:54:37 2011][003755][EUCADEBUG ] doDescribeInstances() invoked
[Thu Jun 16 03:54:43 2011][003755][EUCAINFO ] preparing images for instance
i-4C9D08C3...
[Thu Jun 16 03:54:43 2011][003755][EUCAINFO ] adding key/tmp/sckey.uUHVTI
to the root file system at
/var/lib/eucalyptus/instances//admin/i-4C9D08C3/disk using
(//usr/lib/eucalyptus/euca_rootwrap
//usr/share/eucalyptus/add_key.pl//usr/lib/eucalyptus/euca_mountwrap)
[Thu Jun 16 03:54:43 2011][003755][EUCAINFO ] vrun():
[//usr/lib/eucalyptus/euca_rootwrap
//usr/share/eucalyptus/add_key.pl//usr/lib/eucalyptus/euca_mountwrap
32256
/var/lib/eucalyptus/instances//admin/i-4C9D08C3/disk /tmp/sckey.uUHVTI]
[Thu Jun 16 03:54:43 2011][003755][EUCADEBUG ] system_output():
[//usr/lib/eucalyptus/euca_rootwrap
//usr/share/eucalyptus/gen_kvm_libvirt_xml --ramdisk --ephemeral]
[Thu Jun 16 03:54:43 2011][003755][EUCAINFO ] currently running/booting:
i-4C9D08C3
[Thu Jun 16 03:54:43 2011][003755][EUCADEBUG ] doDescribeResource() invoked
[Thu Jun 16 03:54:43 2011][003755][EUCADEBUG ] doDescribeInstances() invoked
[Thu Jun 16 03:54:49 2011][003755][EUCADEBUG ] doDescribeResource() invoked
[Thu Jun 16 03:54:49 2011][003755][EUCADEBUG ] doDescribeInstances() invoked
[Thu Jun 16 03:54:55 2011][003755][EUCADEBUG ] doDescribeResource() invoked
[Thu Jun 16 03:54:55 2011][003755][EUCADEBUG ] doDescribeInstances() invoked
[Thu Jun 16 03:55:01 2011][003755][EUCADEBUG ] doDescribeResource() invoked
[Thu Jun 16 03:55:01 2011][003755][EUCADEBUG ] doDescribeInstances() invoked
[Thu Jun 16 03:55:07 2011][003755][EUCADEBUG ] doDescribeResource() invoked
[Thu Jun 16 03:55:07 2011][003755][EUCADEBUG ] doDescribeInstances() invoked
[Thu Jun 16 03:55:13 2011][003755][EUCAERROR ] libvirt: monitor socket did
not show up.: No such file or directory (code=38)
[Thu Jun 16 03:55:13 2011][003755][EUCAFATAL ] hypervisor failed to start
domain
[Thu Jun 16 03:55:13 2011][003755][EUCADEBUG ] doDescribeResource() invoked
[Thu Jun 16 03:55:13 2011][003755][EUCADEBUG ] doDescribeInstances() invoked
[Thu Jun 16 03:55:15 2011][003755][EUCAERROR ] libvirt: Domain not found: no
domain with matching name 'i-4C9D08C3' (code=42)
[Thu Jun 16 03:55:15 2011][003755][EUCAINFO ] vrun(): [rm -rf
/var/lib/eucalyptus/instances//admin/i-4C9D08C3/]
[Thu Jun 16 03:55:15 2011][003755][EUCAINFO ] stopping the network
(vlan=10)
[Thu Jun 16 03:55:19 2011][003755][EUCADEBUG ] doDescribeResource() invoked
[Thu Jun 16 03:55:19 2011][003755][EUCADEBUG ] doDescribeInstances() invoked
[Thu Jun 16 03:55:25 2011][003755][EUCADEBUG ] doDescribeResource() invoked
[Thu Jun 16 03:55:25 2011][003755][EUCADEBUG ] doDescribeInstances() invoked
[Thu Jun 16 03:55:26 2011][003755][EUCAINFO ] doTerminateInstance() invoked
(id=i-4C9D08C3)
[Thu Jun 16 03:55:26 2011][003755][EUCAERROR ] libvirt: Domain not found: no
domain with matching name 'i-4C9D08C3' (code=42)
[Thu Jun 16 03:55:26 2011][003755][EUCAWARN ] warning: domain i-4C9D08C3 to
be terminated not running on hypervisor
[Thu Jun 16 03:55:31 2011][003755][EUCADEBUG ] doDescribeResource() invoked
[Thu Jun 16 03:55:31 2011][003755][EUCADEBUG ] doDescribeInstances() invoked
/var/log/libvirt/qemu/i-4C9D08C3.log:
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
/usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 512 -smp 2 -name i-3D4B085B -uuid
68e17542-66cb-0240-81f5-d71c935e5a5e -nographic -chardev
socket,id=monitor,path=/var/lib/libvirt/qemu/i-3D4B085B.monitor,server,nowait
-monitor chardev:monitor -boot c -kernel
/var/lib/eucalyptus/instances//admin/i-3D4B085B/kernel -initrd
/var/lib/eucalyptus/instances//admin/i-3D4B085B/ramdisk -append
root=/dev/sda1 console=ttyS0 -drive
file=/var/lib/eucalyptus/instances//admin/i-3D4B085B/disk,if=scsi,index=0,boot=on,format=raw
-net nic,macaddr=d0:0d:3d:4b:08:5b,vlan=0,model=e1000,name=e1000.0 -net
tap,fd=44,vlan=0,name=tap.0 -chardev
file,id=serial0,path=/var/lib/eucalyptus/instances//admin/i-3D4B085B/console.log
-serial chardev:serial0 -parallel none -usb
libvir: QEMU error : cannot set ownership on
/var/lib/eucalyptus/instances//admin/i-3D4B085B/kernel: Permission denied
more info:
qemu user/group is eucalyptus/root
I noticed that soem process (libvirt or qemu) is changing the ownership
before termination:
Before and after:
1. ll /var/lib/eucalyptus/instances//admin/i-3D4B085B/
2. total 715912K
3. -rw-r--r-- 1 eucalyptus eucalyptus 10767826944 2011-06-16 04:01 disk
4. -rw------- 1 eucalyptus eucalyptus 571064 2011-06-16 04:01
instance-checkpoint
5. -rw-r--r-- 1 eucalyptus eucalyptus 4159008 2011-06-16 03:09 kernel
6. -rw-r--r-- 1 eucalyptus eucalyptus 933 2011-06-16 04:01
libvirt.xml
7. -rw-r--r-- 1 eucalyptus eucalyptus 3899035 2011-06-16 03:09
ramdisk
8.
9. ll /var/lib/eucalyptus/instances//admin/i-3D4B085B/
10. total 715912K
11. -rw-r--r-- 1 root root 10767826944 2011-06-16 04:01 disk
12. -rw------- 1 eucalyptus eucalyptus 571064 2011-06-16 04:01
instance-checkpoint
13. -rw-r--r-- 1 root root 4159008 2011-06-16 03:09
kernel
14. -rw-r--r-- 1 eucalyptus eucalyptus 933 2011-06-16 04:01
libvirt.xml
15. -rw-r--r-- 1 root root 3899035 2011-06-16 03:09
ramdisk
additional info:
ls -al /var/lib/eucalyptus
total 24K
drwxr-xr-x 5 eucalyptus eucalyptus 4096 2011-06-16 03:34 .
drwxr-xr-x 43 root root 4096 2011-06-16 02:29 ..
-rw------- 1 eucalyptus eucalyptus 16 2011-06-16 03:34 .bash_history
drwx------ 2 eucalyptus eucalyptus 4096 2011-06-16 02:52 .cache
lrwxrwxrwx 1 eucalyptus eucalyptus 14 2011-06-16 02:49 instances ->
/mnt/instances
drwx------ 2 eucalyptus eucalyptus 4096 2011-06-16 02:52 keys
drwxr-xr-x 2 eucalyptus root 4096 2011-06-16 02:43 .ssh
ls -al /mnt/instances
total 16K
drwxrwxrwx 4 eucalyptus eucalyptus 4096 2011-06-16 03:09 .
drwxr-xr-x 5 eucalyptus eucalyptus 4096 2011-06-16 02:25 ..
drwxr-xr-x 2 eucalyptus eucalyptus 4096 2011-06-16 04:02 admin
drwxr-xr-x 3 eucalyptus eucalyptus 4096 2011-06-16 03:09 eucalyptus
Is there any solution to this problem? A workaround also works. Thanks
Best,
Ali
13 years, 5 months
[libvirt-users] request to add an application the app listing on libvirt site
by Ohad Levy
Hi,
I would like to add two apps which uses libvirt the site.
Ruby Objects for libvirt
based on top of the native ruby binding, Virt ruby gem exposes real objects
such as Host, Guest, StoragePool, Interface etc.
more info at https://github.com/ohadlevy/virt
Foreman - Web UI for provisioning and managing servers
Among the many things foreman can do, It provides to relevant parts to
libvirt:
UI to list / start / stop / destroy vms
UI to create a new vm as part of the provisioning process (e.g. dhcp, dns,
tftp, pxe, vm, ks/preseed, puppet etc)
more info at http://theforeman.org
Thanks!
Ohad
13 years, 5 months
[libvirt-users] Difference between function Migrate and Migrate2
by Abhishek Gupta
I was reading the API reference for the libvirt, when I came across
the function virDomainMigrate and virDomainMigrate2. I am unable to
find the difference between the two. Can someone please tell the
difference in the application of the two?
--
Abhishek
13 years, 5 months
[libvirt-users] Boot delay
by Jeff
Is there a method of tweaking the boot sequence of a KVM instance so that you can delay the process for X number of seconds? I don't have enough time between starting the KVM and connecting via VNC.
Thanks
Jeff
13 years, 5 months
[libvirt-users] libvirt-bin MOSTLY fails to create default virtual network
by m m
I have observed 3 scenarios after I reboot the host with 2 guests (which are
supposed to autostart after boot/reboot of the host):
1. Default network is created but I can not ping guests. Gests don't have
assigned IP address or they both have IP address 192.168.122.100.
2. Default network is not created.
3. Default netork is properly created and everything works fine.
In each case guests are started and they work properly. Cases 1. and 2.
happen a lot more often then case 3.
My solutions:
- When I restart libvirt-bin then everything is fine.
- When I set 'sleep 40' in 'pre-start' section of /etc/init/libvirt-bin.conf
and modify 'start on' section in the following way:
start on (runlevel [2345] and net-device-up IFACE=br0)
then everything works fine.
However, none of the above solutions indeed solves the problem. Please, let
me know if there is solution to this problem or what are your suggestions
regarding this issue.
****
HOST$ uname -a
Linux ras 2.6.32-32-server #62-Ubuntu SMP Wed Apr 20 22:07:43 UTC 2011
x86_64 GNU/Linux
GUEST1 and GUEST2
$ uname -a
Linux server1-desktop 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:54:21
UTC 2011 i686 GNU/Linux
HOST$ libvirtd --version
libvirtd (libvirt) 0.7.5
My idea was that some kernel modules sometimes are loaded before libvirt-bin
starts, and sometimes libvirt-bin starts earlier, or in the middle of
loading of these modules, that is why 3 scenarios can be observed.
That is why I have added:
cp /proc/modules /home/wsadmin2/modules1
cp /proc/modules /home/wsadmin2/modules2
to 'pre-start' and 'post-start' parts respectively of
/etc/init/libvirt-bin.conf.
Of course, beween execution of
- pre-start part
- exec /usr/sbin/libvirtd -d
- post-start part
other kernel modules can be loaded, so we can not be sure which additional
modules in file 'modules2' were indeed loaded before libvirtd was actually
started.
Here are my observations:
Scenatio 1.
33 (fixed) modules were logged - call them BASE MODULES.
Scenatio 2.
Beside BASE MODULES + the following modules were loaded:
> iptable_filter 1841 0 - Live 0xffffffffa007c000
> ip_tables 18201 1 iptable_filter, Live 0xffffffffa0172000
> x_tables 22361 1 ip_tables, Live 0xffffffffa0164000
Scenatio 3.
Beside BASE MODULES + the following modules were loaded:
$ diff modules1 modules2
1c1,6
< iptable_filter 1841 0 - Live 0xffffffffa008b000
---
> xt_state 1490 14 - Live 0xffffffffa01ab000
> xt_tcpudp 2667 12 - Live 0xffffffffa01a5000
> nf_conntrack_ipv4 12742 14 - Live 0xffffffffa019b000
> nf_conntrack 73326 2 xt_state,nf_conntrack_ipv4, Live 0xffffffffa017d000
> nf_defrag_ipv4 1481 1 nf_conntrack_ipv4, Live 0xffffffffa0177000
> iptable_filter 1841 1 - Live 0xffffffffa008b000
3c8
< x_tables 22361 1 ip_tables, Live 0xffffffffa0162000
---
> x_tables 22361 3 xt_state,xt_tcpudp,ip_tables, Live 0xffffffffa0162000
Other observations:
Scenatio 1.
No errors in libvirtd.log
Scenario 2.
10:06:06.980: error : networkAddIptablesRules:750 : failed to add iptables
rule to allow DHCP requests from 'virbr0': Invalid argument
(...)
10:06:08.630: error : qemudNetworkIfaceConnect:1445 : Failed to add tap
interface to bridge 'virbr0': No such device
10:06:08.630: error : qemuAutostartDomain:584 : Failed to autostart VM
'cluster_server1': Failed to add tap interface to bridge 'virbr0': No such
device
10:06:08.921: info : qemudDispatchSignalEvent:390 : Received unexpected
signal 17
10:06:08.927: debug : virExecWithHook:617 : LC_ALL=C /usr/bin/kvm -help
10:06:08.938: info : qemudDispatchSignalEvent:390 : Received unexpected
signal 17
10:06:09.000: error : qemudNetworkIfaceConnect:1445 : Failed to add tap
interface to bridge 'virbr0': No such device
10:06:09.000: error : qemuAutostartDomain:584 : Failed to autostart VM
'cluster_server2': Failed to add tap interface to bridge 'virbr0': No such
device
(...)
Scenatio 3.
No errors in libvirtd.log
I didn't see any valuable logs in /var/log/boot.log, /var/log/messages,
/var/log/syslog. Please let me know if you want to see them anyway or have
any suggestions right away.
13 years, 5 months
[libvirt-users] e: How to disconnect the ISO image using virsh
by Jeff
I am trying to detach an ISO from a KVM machine and I've tried both attach-disk using " " in the file path as well as the update-device option but am getting this error
error: Failed to update device from /var/run/libvirt/qemu/kvmtest1.xml
error: XML description for unknown device type is not well formed or invalid.
I tried doing a virsh edit on the xml file to remove the source file path to the ISO, as I assume is the correct method, and then running the virsh update-device but it's not working.
Can anyone advise the correct steps to detach a device from a running and/or offline domain?
Additionally - anyone have any guidance on how to attach a CD device to a domain that is currently shutdown, for example, if I wanted to boot the domain to a rescue CD image?
Thanks
Jeff
于 2011年03月31日 15:17, Masanari Iida 写道:
Somebody sent me a tips.
Following command do what I wanted to do.
Thanks.
attach-disk guest01 " " hdc --driver file --type cdrom
--mode readonly
Also using "update-device" with an xml which doesn't specify
the source file path will work.
On Thu, Mar 31, 2011 at 3:29 PM, Masanari Iida<standby24x7 gmail com> wrote:
Hello,
I can attach disc ISO image to cd-rom from virsh.
And I can replace the ISO image from disc1 to disc2 using the 2nd example.
(example)
attach-disk guest01 /root/disc1.iso hdc --driver file --type cdrom
--mode readonly
attach-disk guest01 /root/disc2.iso hdc --driver file --type cdrom
--mode readonly
My question is, how can I disconnect the image from the cdrom drive using virsh.
Because, if I try to detach-disk hdc, I got following errors.
virsh # detach-disk guest01 hdc
error: Failed to detach disk
error: this function is not supported by the connection driver:
This type of device cannot be hot unplugged
What I can do is possible from virt-manager's "Disconnect" button,
(next to source path: line) from Hardware's TAB, Disk hdc screen.
I want to do this from virsh.
OS: RHEL5.6
libvirt-0.8.2-15.el5_6.1 is used.
Regards,
Masanari Iida
_______________________________________________
libvirt-users mailing list
libvirt-users redhat com
https://www.redhat.com/mailman/listinfo/libvirt-users
13 years, 5 months
[libvirt-users] stuck after upgrade
by Julian Cerruti
Hi all,
We're completely stuck helpless with our CentOS system which we've been
using as a VM server.
After an unanticipated system upgrade, we can't get virsh or virt-manager to
connect to libvirt anymore. It gets completely stuck during startup, trying
to connect.
One of the suspicious things we've seen is the following:
[root@ana libvirt]# netstat | grep /var/run/libvirt/libvirt-sock
unix 3 [ ] STREAM CONNECTING 0
/var/run/libvirt/libvirt-sock
unix 3 [ ] STREAM CONNECTING 0
/var/run/libvirt/libvirt-sock
unix 3 [ ] STREAM CONNECTING 0
/var/run/libvirt/libvirt-sock
unix 3 [ ] STREAM CONNECTING 0
/var/run/libvirt/libvirt-sock
unix 3 [ ] STREAM CONNECTING 0
/var/run/libvirt/libvirt-sock
....
I'm not adding more information here because there is so much we've tried
that I wouldn't know where to start. I would be happy to provide any info
that would be useful to solve this issue.
Any hint or help would be greatly appreciated.
Thanks!
Julian
13 years, 5 months
Re: [libvirt-users] libvirt-users Digest, Vol 18, Issue 11
by m m
I have attached all the logs (/var/log/dmesg, /var/log/libvirtd.log,
/var/log/messages, /var/log/syslog, /var/log/boot.log and info about loaded
modules /proc/modules) regarding scenatios1,2,3 (please see the README file
for simple explanation what is there). By the way, I have installed only
dnsmasq-bin (and not dnsmasq).
Have a nice day
2011/6/8 <libvirt-users-request(a)redhat.com>
> Send libvirt-users mailing list submissions to
> libvirt-users(a)redhat.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://www.redhat.com/mailman/listinfo/libvirt-users
> or, via email, send a message with subject or body 'help' to
> libvirt-users-request(a)redhat.com
>
> You can reach the person managing the list at
> libvirt-users-owner(a)redhat.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of libvirt-users digest..."
>
>
> Today's Topics:
>
> 1. Re: libvirt-users Digest, Vol 18, Issue 7(libvirt-bin MOSTLY
> fails to create default virtual network) (m m)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 8 Jun 2011 08:28:19 -0500
> From: m m <bk.praca(a)gmail.com>
> To: libvirt-users(a)redhat.com
> Subject: Re: [libvirt-users] libvirt-users Digest, Vol 18, Issue
> 7(libvirt-bin MOSTLY fails to create default virtual network)
> Message-ID: <BANLkTikt49i78OJfzBgufoesv3C-Pjrdjw(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I have attached all the logs (/var/log/dmesg, /var/log/libvirtd.log,
> /var/log/messages, /var/log/syslog, /var/log/boot.log and info about loaded
> modules /proc/modules) regarding scenatios1,2,3 (please see the README file
> for simple explanation what is there). By the way, I have installed only
> dnsmasq-bin (and not dnsmasq).
> Have a nice day
>
> 2011/6/6 <libvirt-users-request(a)redhat.com>
>
> > Send libvirt-users mailing list submissions to
> > libvirt-users(a)redhat.com
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > https://www.redhat.com/mailman/listinfo/libvirt-users
> > or, via email, send a message with subject or body 'help' to
> > libvirt-users-request(a)redhat.com
> >
> > You can reach the person managing the list at
> > libvirt-users-owner(a)redhat.com
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of libvirt-users digest..."
> >
> >
> > Today's Topics:
> >
> > 1. libvirt-bin MOSTLY fails to create default virtual network (m
> > m)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Mon, 6 Jun 2011 14:24:04 -0500
> > From: m m <bk.praca(a)gmail.com>
> > To: libvirt-users(a)redhat.com
> > Subject: [libvirt-users] libvirt-bin MOSTLY fails to create default
> > virtual network
> > Message-ID: <BANLkTinrE80HURSwJUUv28_v9HB9mRxNNw(a)mail.gmail.com>
> > Content-Type: text/plain; charset="iso-8859-1"
> >
> > I have observed 3 scenarios after I reboot the host with 2 guests (which
> > are
> > supposed to autostart after boot/reboot of the host):
> > 1. Default network is created but I can not ping guests. Gests don't have
> > assigned IP address or they both have IP address 192.168.122.100.
> > 2. Default network is not created.
> > 3. Default netork is properly created and everything works fine.
> > In each case guests are started and they work properly. Cases 1. and 2.
> > happen a lot more often then case 3.
> >
> > My solutions:
> > - When I restart libvirt-bin then everything is fine.
> > - When I set 'sleep 40' in 'pre-start' section of
> > /etc/init/libvirt-bin.conf
> > and modify 'start on' section in the following way:
> >
> > start on (runlevel [2345] and net-device-up IFACE=br0)
> >
> > then everything works fine.
> >
> >
> > However, none of the above solutions indeed solves the problem. Please,
> let
> > me know if there is solution to this problem or what are your suggestions
> > regarding this issue.
> >
> > ****
> > HOST$ uname -a
> > Linux ras 2.6.32-32-server #62-Ubuntu SMP Wed Apr 20 22:07:43 UTC 2011
> > x86_64 GNU/Linux
> >
> > GUEST1 and GUEST2
> > $ uname -a
> > Linux server1-desktop 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20
> 21:54:21
> > UTC 2011 i686 GNU/Linux
> >
> > HOST$ libvirtd --version
> > libvirtd (libvirt) 0.7.5
> >
> > My idea was that some kernel modules sometimes are loaded before
> > libvirt-bin
> > starts, and sometimes libvirt-bin starts earlier, or in the middle of
> > loading of these modules, that is why 3 scenarios can be observed.
> > That is why I have added:
> > cp /proc/modules /home/wsadmin2/modules1
> > cp /proc/modules /home/wsadmin2/modules2
> > to 'pre-start' and 'post-start' parts respectively of
> > /etc/init/libvirt-bin.conf.
> >
> > Of course, beween execution of
> > - pre-start part
> > - exec /usr/sbin/libvirtd -d
> > - post-start part
> > other kernel modules can be loaded, so we can not be sure which
> additional
> > modules in file 'modules2' were indeed loaded before libvirtd was
> actually
> > started.
> >
> > Here are my observations:
> > Scenatio 1.
> > 33 (fixed) modules were logged - call them BASE MODULES.
> >
> > Scenatio 2.
> > Beside BASE MODULES + the following modules were loaded:
> >
> > > iptable_filter 1841 0 - Live 0xffffffffa007c000
> > > ip_tables 18201 1 iptable_filter, Live 0xffffffffa0172000
> > > x_tables 22361 1 ip_tables, Live 0xffffffffa0164000
> >
> > Scenatio 3.
> > Beside BASE MODULES + the following modules were loaded:
> >
> > $ diff modules1 modules2
> > 1c1,6
> > < iptable_filter 1841 0 - Live 0xffffffffa008b000
> > ---
> > > xt_state 1490 14 - Live 0xffffffffa01ab000
> > > xt_tcpudp 2667 12 - Live 0xffffffffa01a5000
> > > nf_conntrack_ipv4 12742 14 - Live 0xffffffffa019b000
> > > nf_conntrack 73326 2 xt_state,nf_conntrack_ipv4, Live
> 0xffffffffa017d000
> > > nf_defrag_ipv4 1481 1 nf_conntrack_ipv4, Live 0xffffffffa0177000
> > > iptable_filter 1841 1 - Live 0xffffffffa008b000
> > 3c8
> > < x_tables 22361 1 ip_tables, Live 0xffffffffa0162000
> > ---
> > > x_tables 22361 3 xt_state,xt_tcpudp,ip_tables, Live 0xffffffffa0162000
> >
> > Other observations:
> > Scenatio 1.
> > No errors in libvirtd.log
> > Scenario 2.
> >
> > 10:06:06.980: error : networkAddIptablesRules:750 : failed to add
> iptables
> > rule to allow DHCP requests from 'virbr0': Invalid argument
> > (...)
> > 10:06:08.630: error : qemudNetworkIfaceConnect:1445 : Failed to add tap
> > interface to bridge 'virbr0': No such device
> > 10:06:08.630: error : qemuAutostartDomain:584 : Failed to autostart VM
> > 'cluster_server1': Failed to add tap interface to bridge 'virbr0': No
> such
> > device
> >
> > 10:06:08.921: info : qemudDispatchSignalEvent:390 : Received unexpected
> > signal 17
> > 10:06:08.927: debug : virExecWithHook:617 : LC_ALL=C /usr/bin/kvm -help
> > 10:06:08.938: info : qemudDispatchSignalEvent:390 : Received unexpected
> > signal 17
> > 10:06:09.000: error : qemudNetworkIfaceConnect:1445 : Failed to add tap
> > interface to bridge 'virbr0': No such device
> > 10:06:09.000: error : qemuAutostartDomain:584 : Failed to autostart VM
> > 'cluster_server2': Failed to add tap interface to bridge 'virbr0': No
> such
> > device
> > (...)
> > Scenatio 3.
> > No errors in libvirtd.log
> >
> >
> > I didn't see any valuable logs in /var/log/boot.log, /var/log/messages,
> > /var/log/syslog. Please let me know if you want to see them anyway or
> have
> > any suggestions right away.
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <
> >
> https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07a...
> > >
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: scenario1
> > Type: application/octet-stream
> > Size: 19317 bytes
> > Desc: not available
> > URL: <
> >
> https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07a...
> > >
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: scenario2
> > Type: application/octet-stream
> > Size: 8294 bytes
> > Desc: not available
> > URL: <
> >
> https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07a...
> > >
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: scenario3
> > Type: application/octet-stream
> > Size: 2366 bytes
> > Desc: not available
> > URL: <
> >
> https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07a...
> > >
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: libvirt-bin.conf
> > Type: application/octet-stream
> > Size: 924 bytes
> > Desc: not available
> > URL: <
> >
> https://www.redhat.com/archives/libvirt-users/attachments/20110606/54a07a...
> > >
> >
> > ------------------------------
> >
> > _______________________________________________
> > libvirt-users mailing list
> > libvirt-users(a)redhat.com
> > https://www.redhat.com/mailman/listinfo/libvirt-users
> >
> > End of libvirt-users Digest, Vol 18, Issue 7
> > ********************************************
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> https://www.redhat.com/archives/libvirt-users/attachments/20110608/625b33...
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: LucidClusterStack.rar
> Type: application/rar
> Size: 4473008 bytes
> Desc: not available
> URL: <
> https://www.redhat.com/archives/libvirt-users/attachments/20110608/625b33...
> >
>
> ------------------------------
>
> _______________________________________________
> libvirt-users mailing list
> libvirt-users(a)redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-users
>
> End of libvirt-users Digest, Vol 18, Issue 11
> *********************************************
>
13 years, 5 months
[libvirt-users] Shared Folders
by Guilherme Santos
Good afternoon.
I am having trouble trying to set up shared folders in the guest VM using
VirtualBox hypervisor. No matter what configuration is defined in my XML, it
never works, I mean, no shared folder is added/specifyed, then, inside the
guest, when I try to mount the folder, I always get a protocol error.
If I use VirtualBoxManage, I can add/specify shared folders easily and mount
it with no problem.
I need to use libvirt in order to deal, in a generalized way, with the
process of creating shared folders in all hypervisors supported by libvirt,
otherwise my problem would be solved already. I must not use specific
commands of a certain hypervisor (such as VirtualBoxManage's).
How does libvirt allow me to set up shared folders? Does it use
VirtualBoxManage for VBox hypervisors? If so, how do I use it?
I've read the documentation and followed it in defining my XMLs.
Thanks anyway!
--
Guilherme Santos G. Baptista
Undergraduate in Computer Science at UFCG
LSD - Distributed Systems Laboratory
13 years, 5 months