Jun Hu wrote:
> 1.though  xendomains scripts   'Required-Start'  has no '$network"
>
> but xendomanis depend   xend ,   we can  see /etc/init.d/.depend.start :
>
> network-remotefs: network
> ntp: network-remotefs syslog
> xend:nt  p
> xendomains:  xend
>
> so , apparently , there is no problem about dependency relationship.
>   

Right.

> 2. after I add '$network" in  'Required-Start' line  of  xendomains
> scripts,   
>  run insserv xendomains 
>
> reboot , but  found the issue exists still.
>   

Not surprising, given your point above.

> 3. on opensuse, it use systemd  instead of sysvinit ,   I think   cause
> may be there.
>   

Agreed.  IMO, you should file a bug against systemd.  Proper systemd
service files for the xen package would be nice too.

Regards,
Jim

>
>
> On Thu, 2013-01-03 at 18:09 -0700, Jim Fehlig wrote:
>   
>> Jun Hu wrote:
>>     
>>> Hi Guys:
>>>
>>> I found an issue that xen vm can't autoboot because of  bridge hasn't
>>> set up,  i can manually boot  the vm .
>>>
>>> maybe a bug?
>>>       
>> Seems the xendomains script should require the network to be active. 
>> Does adding '$network' to 'Required-Start' and 'Required-Stop' help?
>>
>> Regards,
>> Jim
>>
>>     
>>>   
>>>
>>> junwork:/etc/libvirt/qemu # chkconfig -A --list | grep xen
>>>
>>> Note: This output shows SysV services only and does not include native
>>> systemd services. SysV configuration data might be overridden by native
>>> systemd configuration.
>>>
>>> xen-watchdog              0:off  1:off  2:off  3:off  4:off  5:off
>>> 6:off
>>> xencommons                0:off  1:off  2:on   3:on   4:off  5:on
>>> 6:off
>>> xend                      0:off  1:off  2:off  3:on   4:off  5:on
>>> 6:off
>>> xendomains                0:off  1:off  2:off  3:on   4:off  5:on
>>> 6:off
>>>
>>>
>>> junwork:~ # rcxend status
>>> redirecting to systemctl
>>> xend.service - LSB: Starts and stops the Xen management daemon
>>>       Loaded: loaded (/etc/init.d/xend)
>>>       Active: active (running) since Fri, 04 Jan 2013 06:41:11 +0800; 1h
>>> 14min ago
>>>      Process: 659 ExecStart=/etc/init.d/xend start (code=exited,
>>> status=0/SUCCESS)
>>>       CGroup: name=systemd:/system/xend.service
>>>               ├ 737 /usr/bin/python /usr/sbin/xend start
>>>               ├ 738 blktapctrl
>>>               └ 740 /usr/bin/python /usr/sbin/xend start
>>>
>>> Jan 04 06:41:11 junwork xend[659]: Starting xend ..done
>>>
>>>
>>> junwork:/etc/libvirt/qemu # rcxendomains status
>>> redirecting to systemctl
>>> xendomains.service - LSB: Starts and stops Xen VMs
>>>       Loaded: loaded (/etc/init.d/xendomains)
>>>       Active: failed (Result: exit-code) since Fri, 04 Jan 2013 06:41:31
>>> +0800; 1h 20min ago
>>>      Process: 1323 ExecStart=/etc/init.d/xendomains start (code=exited,
>>> status=1/FAILURE)
>>>       CGroup: name=systemd:/system/xendomains.service
>>>
>>> Jan 04 06:41:11 junwork xendomains[1323]: Restoring saved Xen domains
>>> Jan 04 06:41:29 junwork xendomains[1323]: windowsxp: ..failed
>>> Jan 04 06:41:29 junwork xendomains[1323]: Starting auto Xen domains
>>> Jan 04 06:41:31 junwork xendomains[1323]: config_winxp: Error: Device 0
>>> (vif) could not be connected. Could not find ...ce br0
>>> Jan 04 06:41:31 junwork xendomains[1323]: ..failed
>>>
>>> junwork:/etc/libvirt/qemu # ifconfig
>>> br0       Link encap:Ethernet  HWaddr 00:1F:16:25:AA:66  
>>>           inet addr:192.168.5.20  Bcast:192.168.5.255
>>> Mask:255.255.255.0
>>>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>>>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>           collisions:0 txqueuelen:0 
>>>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>>>
>>> eth0      Link encap:Ethernet  HWaddr 00:1F:16:25:AA:66  
>>>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>>>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>           collisions:0 txqueuelen:1000 
>>>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>>>           Interrupt:20 Memory:f2600000-f2620000 
>>>
>>> lo        Link encap:Local Loopback  
>>>           inet addr:127.0.0.1  Mask:255.0.0.0
>>>           inet6 addr: ::1/128 Scope:Host
>>>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>>>           RX packets:10 errors:0 dropped:0 overruns:0 frame:0
>>>           TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
>>>           collisions:0 txqueuelen:0 
>>>           RX bytes:1212 (1.1 Kb)  TX bytes:1212 (1.1 Kb)
>>>
>>> wlan0     Link encap:Ethernet  HWaddr 00:1E:65:6E:90:AE  
>>>           inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
>>>           inet6 addr: fe80::21e:65ff:fe6e:90ae/64 Scope:Link
>>>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>>           RX packets:6695 errors:0 dropped:0 overruns:0 frame:0
>>>           TX packets:5897 errors:0 dropped:0 overruns:0 carrier:0
>>>           collisions:0 txqueuelen:1000 
>>>           RX bytes:3861362 (3.6 Mb)  TX bytes:1266239 (1.2 Mb)
>>>
>>>
>>>
>>> junwork:/etc/xen/auto # cat config_winxp
>>> name="windowsxp"
>>> description="ip_192.168.10.55"
>>> uuid="d090b5fe-c5e2-e8fd-6720-a49d5debb94c"
>>> memory=512
>>> maxmem=512
>>> vcpus=2
>>> on_poweroff="destroy"
>>> on_reboot="restart"
>>> on_crash="destroy"
>>> localtime=1
>>> keymap="en-us"
>>>
>>> builder="hvm"
>>> device_model="/usr/lib/xen/bin/qemu-dm"
>>> kernel="/usr/lib/xen/boot/hvmloader"
>>> boot="c"
>>> disk=[ 
>>> 'file:/xendisk/xen_vms/winxp/winxp.img,hda,w',
>>>
>>>  ]
>>> vif=[ 'mac=00:16:3e:63:af:b9,bridge=br0,model=rtl8139',
>>> #     'mac=00:16:3e:13:63:2b,bridge=br1,model=rtl8139',
>>>  ]
>>> ##ip=192.168.5.221
>>>
>>> stdvga=0
>>> vnc=1
>>> vncunused=1
>>> extid=0
>>> usb=1
>>> acpi=1
>>> pae=1
>>>
>>> usbdevice='tablet'
>>>
>>> serial="pty"
>>>
>>>
>>>
>>>   
>>>       
>
>
>
>   
-- 
To unsubscribe, e-mail: opensuse-virtual+unsubscr...@opensuse.org
To contact the owner, e-mail: opensuse-virtual+ow...@opensuse.org

Reply via email to