[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] Using Restore in another host.



Hello:
I repeated all the test again and reproduce a similar situation.
Apparently the restore is finished ok, and the guest is running but:
a) I cannot connect to the guest trough ssh.
b) I cannot enter to the guest using the virt-manager: It's say " Connecting to graphical console for guest".
c) on the log /var/log/libvirt(qemu/chompi1.log say that an error happened during the restore.

I'm sending the trace I did while restoring the file and the log. (both on target rionegro

Thank you very much in advance.
Marcela.




2011/4/5 Michal Novotny <minovotn redhat com>
On 04/05/2011 06:16 PM, Marcela Castro León wrote:
> Hellol
> I've downloaded the policycoreutils, and then I execute on the nfs
> clients:
>
> *radic santacruz:~/discoguest/aplicaciones/virsh$ setsebool -P
> virt_use_nfs on
> setsebool:  SELinux is disabled.
> *
>
> It's enough? I understand that it's not working, but I don't find good
> information at internet.
>
> Thank you.
> Marcela

That's fine since you have the SELinux disabled and therefore it can't
cause any issues.

Michal

--
Michal Novotny <minovotn redhat com>, RHCE
Virtualization Team (xen userspace), Red Hat


LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/qemu-system-x86_64 -S -M pc-0.12 -enable-kvm -m 4096 -smp 4 -name chompi1 -uuid 22f013aa-25d4-b317-9eac-b232692db8c7 -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/chompi1.monitor,server,nowait -monitor chardev:monitor -boot c -drive file=/home/radic/mvdata/imagenes/chompi1.img,if=ide,index=0,boot=on,format=raw -drive if=ide,media=cdrom,index=2,format=raw -net nic,macaddr=52:54:00:82:ce:80,vlan=0,model=virtio,name=virtio.0 -net tap,fd=34,vlan=0,name=tap.0 -chardev pty,id=serial0 -serial chardev:serial0 -parallel none -usb -vnc 0.0.0.0:0 -vga cirrus -incoming exec:cat 
char device redirected to /dev/pts/2
cat: -: Permission denied
load of migration failed
radic rionegro:~/mvdata/imagenes$ virsh
09:59:36.926: debug : virInitialize:336 : register drivers
09:59:36.927: debug : virRegisterDriver:837 : registering Test as driver 0
09:59:36.927: debug : virRegisterNetworkDriver:675 : registering Test as network driver 0
09:59:36.927: debug : virRegisterInterfaceDriver:706 : registering Test as interface driver 0
09:59:36.927: debug : virRegisterStorageDriver:737 : registering Test as storage driver 0
09:59:36.927: debug : virRegisterDeviceMonitor:768 : registering Test as device driver 0
09:59:36.927: debug : virRegisterSecretDriver:799 : registering Test as secret driver 0
09:59:36.927: debug : virRegisterDriver:837 : registering Xen as driver 1
09:59:36.927: debug : virRegisterDriver:837 : registering OPENVZ as driver 2
09:59:36.927: debug : vboxRegister:109 : VBoxCGlueInit failed, using dummy driver
09:59:36.927: debug : virRegisterDriver:837 : registering VBOX as driver 3
09:59:36.927: debug : virRegisterNetworkDriver:675 : registering VBOX as network driver 1
09:59:36.927: debug : virRegisterStorageDriver:737 : registering VBOX as storage driver 1
09:59:36.927: debug : virRegisterDriver:837 : registering remote as driver 4
09:59:36.927: debug : virRegisterNetworkDriver:675 : registering remote as network driver 2
09:59:36.927: debug : virRegisterInterfaceDriver:706 : registering remote as interface driver 1
09:59:36.927: debug : virRegisterStorageDriver:737 : registering remote as storage driver 2
09:59:36.927: debug : virRegisterDeviceMonitor:768 : registering remote as device driver 1
09:59:36.927: debug : virRegisterSecretDriver:799 : registering remote as secret driver 1
09:59:36.927: debug : virConnectOpenAuth:1337 : name=qemu:///system, auth=0x7f3c89260b80, flags=0
09:59:36.947: debug : do_open:1106 : name "qemu:///system" to URI components:
  scheme qemu
  opaque (null)
  authority (null)
  server (null)
  user (null)
  port 0
  path /system

09:59:36.947: debug : do_open:1116 : trying driver 0 (Test) ...
09:59:36.947: debug : do_open:1122 : driver 0 Test returned DECLINED
09:59:36.947: debug : do_open:1116 : trying driver 1 (Xen) ...
09:59:36.947: debug : do_open:1122 : driver 1 Xen returned DECLINED
09:59:36.947: debug : do_open:1116 : trying driver 2 (OPENVZ) ...
09:59:36.947: debug : do_open:1122 : driver 2 OPENVZ returned DECLINED
09:59:36.947: debug : do_open:1116 : trying driver 3 (VBOX) ...
09:59:36.947: debug : do_open:1122 : driver 3 VBOX returned DECLINED
09:59:36.948: debug : do_open:1116 : trying driver 4 (remote) ...
09:59:36.948: debug : doRemoteOpen:564 : proceeding with name = qemu:///system
09:59:36.948: debug : remoteIO:8455 : Do proc=66 serial=0 length=28 wait=(nil)
09:59:36.948: debug : remoteIO:8517 : We have the buck 66 0x7f3c894b3010 0x7f3c894b3010
09:59:36.948: debug : remoteIODecodeMessageLength:7939 : Got length, now need 64 total (60 more)
09:59:36.948: debug : remoteIOEventLoop:8381 : Giving up the buck 66 0x7f3c894b3010 (nil)
09:59:36.948: debug : remoteIO:8548 : All done with our call 66 (nil) 0x7f3c894b3010
09:59:36.948: debug : remoteIO:8455 : Do proc=1 serial=1 length=56 wait=(nil)
09:59:36.948: debug : remoteIO:8517 : We have the buck 1 0x24d48e0 0x24d48e0
09:59:36.948: debug : remoteIODecodeMessageLength:7939 : Got length, now need 56 total (52 more)
09:59:36.948: debug : remoteIOEventLoop:8381 : Giving up the buck 1 0x24d48e0 (nil)
09:59:36.948: debug : remoteIO:8548 : All done with our call 1 (nil) 0x24d48e0
09:59:36.948: debug : doRemoteOpen:917 : Adding Handler for remote events
09:59:36.948: debug : doRemoteOpen:924 : virEventAddHandle failed: No addHandleImpl defined. continuing without events.
09:59:36.948: debug : do_open:1122 : driver 4 remote returned SUCCESS
09:59:36.948: debug : do_open:1142 : network driver 0 Test returned DECLINED
09:59:36.948: debug : do_open:1142 : network driver 1 VBOX returned DECLINED
09:59:36.948: debug : do_open:1142 : network driver 2 remote returned SUCCESS
09:59:36.948: debug : do_open:1161 : interface driver 0 Test returned DECLINED
09:59:36.948: debug : do_open:1161 : interface driver 1 remote returned SUCCESS
09:59:36.948: debug : do_open:1181 : storage driver 0 Test returned DECLINED
09:59:36.948: debug : do_open:1181 : storage driver 1 VBOX returned DECLINED
09:59:36.949: debug : do_open:1181 : storage driver 2 remote returned SUCCESS
09:59:36.949: debug : do_open:1201 : node driver 0 Test returned DECLINED
09:59:36.949: debug : do_open:1201 : node driver 1 remote returned SUCCESS
09:59:36.949: debug : do_open:1228 : secret driver 0 Test returned DECLINED
09:59:36.949: debug : do_open:1228 : secret driver 1 remote returned SUCCESS
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # restore sv-chubut-1
09:59:48.581: debug : virDomainRestore:2283 : conn=0x24cf070, from=sv-chubut-1
09:59:48.581: debug : remoteIO:8455 : Do proc=54 serial=2 length=72 wait=(nil)
09:59:48.581: debug : remoteIO:8517 : We have the buck 54 0x24f0160 0x24f0160
09:59:49.520: debug : remoteIODecodeMessageLength:7939 : Got length, now need 56 total (52 more)
09:59:49.520: debug : remoteIOEventLoop:8381 : Giving up the buck 54 0x24f0160 (nil)
09:59:49.520: debug : remoteIO:8548 : All done with our call 54 (nil) 0x24f0160
Domain restored from sv-chubut-1

virsh # list --all
10:02:11.700: debug : virConnectNumOfDomains:1714 : conn=0x2508070
10:02:11.701: debug : remoteIO:8455 : Do proc=51 serial=2 length=28 wait=(nil)
10:02:11.701: debug : remoteIO:8517 : We have the buck 51 0x2529160 0x2529160
10:02:11.701: debug : remoteIODecodeMessageLength:7939 : Got length, now need 60 total (56 more)
10:02:11.701: debug : remoteIOEventLoop:8381 : Giving up the buck 51 0x2529160 (nil)
10:02:11.701: debug : remoteIO:8548 : All done with our call 51 (nil) 0x2529160
10:02:11.701: debug : virConnectListDomains:1675 : conn=0x2508070, ids=0x251f770, maxids=1
10:02:11.701: debug : remoteIO:8455 : Do proc=37 serial=3 length=32 wait=(nil)
10:02:11.701: debug : remoteIO:8517 : We have the buck 37 0x2529160 0x2529160
10:02:11.701: debug : remoteIODecodeMessageLength:7939 : Got length, now need 64 total (60 more)
10:02:11.701: debug : remoteIOEventLoop:8381 : Giving up the buck 37 0x2529160 (nil)
10:02:11.701: debug : remoteIO:8548 : All done with our call 37 (nil) 0x2529160
10:02:11.701: debug : virConnectNumOfDefinedDomains:4554 : conn=0x2508070
10:02:11.701: debug : remoteIO:8455 : Do proc=25 serial=4 length=28 wait=(nil)
10:02:11.701: debug : remoteIO:8517 : We have the buck 25 0x2529160 0x2529160
10:02:11.701: debug : remoteIODecodeMessageLength:7939 : Got length, now need 60 total (56 more)
10:02:11.701: debug : remoteIOEventLoop:8381 : Giving up the buck 25 0x2529160 (nil)
10:02:11.701: debug : remoteIO:8548 : All done with our call 25 (nil) 0x2529160
10:02:11.701: debug : virConnectListDefinedDomains:4593 : conn=0x2508070, names=0x251f810, maxnames=1
10:02:11.701: debug : remoteIO:8455 : Do proc=21 serial=5 length=32 wait=(nil)
10:02:11.701: debug : remoteIO:8517 : We have the buck 21 0x2529160 0x2529160
10:02:11.701: debug : remoteIODecodeMessageLength:7939 : Got length, now need 72 total (68 more)
10:02:11.701: debug : remoteIOEventLoop:8381 : Giving up the buck 21 0x2529160 (nil)
10:02:11.701: debug : remoteIO:8548 : All done with our call 21 (nil) 0x2529160
 Id Name                 State
----------------------------------
10:02:11.701: debug : virDomainLookupByID:1850 : conn=0x2508070, id=2
10:02:11.702: debug : remoteIO:8455 : Do proc=22 serial=6 length=32 wait=(nil)
10:02:11.702: debug : remoteIO:8517 : We have the buck 22 0x2529160 0x2529160
10:02:11.702: debug : remoteIODecodeMessageLength:7939 : Got length, now need 88 total (84 more)
10:02:11.702: debug : remoteIOEventLoop:8381 : Giving up the buck 22 0x2529160 (nil)
10:02:11.702: debug : remoteIO:8548 : All done with our call 22 (nil) 0x2529160
10:02:11.702: debug : virGetDomain:345 : New hash entry 0x251f8b0
10:02:11.702: debug : virDomainGetInfo:2825 : domain=0x251f8b0, info=0x7fff1bf3f800
10:02:11.702: debug : remoteIO:8455 : Do proc=16 serial=7 length=60 wait=(nil)
10:02:11.702: debug : remoteIO:8517 : We have the buck 16 0x2529160 0x2529160
10:02:11.702: debug : remoteIODecodeMessageLength:7939 : Got length, now need 88 total (84 more)
10:02:11.702: debug : remoteIOEventLoop:8381 : Giving up the buck 16 0x2529160 (nil)
10:02:11.702: debug : remoteIO:8548 : All done with our call 16 (nil) 0x2529160
10:02:11.702: debug : virDomainGetName:2524 : domain=0x251f8b0
10:02:11.702: debug : virDomainGetID:2617 : domain=0x251f8b0
  2 chompi1              running
10:02:11.702: debug : virDomainFree:2062 : domain=0x251f8b0
10:02:11.702: debug : virUnrefDomain:422 : unref domain 0x251f8b0 chompi1 1
10:02:11.702: debug : virReleaseDomain:376 : release domain 0x251f8b0 chompi1
10:02:11.702: debug : virReleaseDomain:392 : unref connection 0x2508070 2
10:02:11.702: debug : virDomainLookupByName:1974 : conn=0x2508070, name=rnompi1
10:02:11.702: debug : remoteIO:8455 : Do proc=23 serial=8 length=40 wait=(nil)
10:02:11.702: debug : remoteIO:8517 : We have the buck 23 0x2529160 0x2529160
10:02:11.702: debug : remoteIODecodeMessageLength:7939 : Got length, now need 88 total (84 more)
10:02:11.702: debug : remoteIOEventLoop:8381 : Giving up the buck 23 0x2529160 (nil)
10:02:11.702: debug : remoteIO:8548 : All done with our call 23 (nil) 0x2529160
10:02:11.702: debug : virGetDomain:345 : New hash entry 0x251f8b0
10:02:11.702: debug : virDomainGetInfo:2825 : domain=0x251f8b0, info=0x7fff1bf3f800
10:02:11.702: debug : remoteIO:8455 : Do proc=16 serial=9 length=60 wait=(nil)
10:02:11.702: debug : remoteIO:8517 : We have the buck 16 0x2529160 0x2529160
10:02:11.702: debug : remoteIODecodeMessageLength:7939 : Got length, now need 88 total (84 more)
10:02:11.702: debug : remoteIOEventLoop:8381 : Giving up the buck 16 0x2529160 (nil)
10:02:11.702: debug : remoteIO:8548 : All done with our call 16 (nil) 0x2529160
  - rnompi1              shut off
10:02:11.702: debug : virDomainFree:2062 : domain=0x251f8b0
10:02:11.702: debug : virUnrefDomain:422 : unref domain 0x251f8b0 rnompi1 1
10:02:11.702: debug : virReleaseDomain:376 : release domain 0x251f8b0 rnompi1
10:02:11.702: debug : virReleaseDomain:392 : unref connection 0x2508070 2

virsh # 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]