Hello Xen Users, I have a couple of unrelated questions but didn''t want to clutter everyones in-boxes with two emails. --- 1. Has anyone else been having trouble with the xendomains script? I am running 4.2 stable on Debian Wheezy, and the xendomains script does not shut down my running domains (specifically two linux HVM''s one with PVHVM). When run manually via `service xendomains stop` or `/etc/init.d/xendomains stop` it returns a success message, but my machines continue to run as though nothing happened. When I shut down my computer without running `xl destroy` on the running domains it locks up, my guess is because the domains are still running. Has anyone else encountered this problem? --- 2. Is anyone else having problems restarting network adapters on Windows HVM''s with GPLPV drivers? Without them it works fine, but with GPLPV installed if I disable and then attempt to re-enable a network adapter the device disappears from the machine. The only solution so far has been to reboot the HVM. Thanks for your help in advance. Sincerely, ~Casey _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
> 1. Has anyone else been having trouble with the xendomains script? > > I am running 4.2 stable on Debian Wheezy, and the xendomains script does > not shut down my running domains (specifically two linux HVM''s one with > PVHVM). > > When run manually via `service xendomains stop` or `/etc/init.d/xendomains > stop` it returns a success message, but my machines continue to run as > though nothing happened.That is a bit strange. Check the /etc/default/xendomains and see what the behaviours are set to... it shouldn''t leave the domains running but maybe is set to save but save is failing?> When I shut down my computer without running `xl destroy` on the running > domains it locks up, my guess is because the domains are still running. >When you say ''locks up'' do you mean dom0 gets part way through the shutdown tasks then hangs waiting for xen services to shut down?> > 2. Is anyone else having problems restarting network adapters on Windows > HVM''s with GPLPV drivers? > > Without them it works fine, but with GPLPV installed if I disable and then > attempt to re-enable a network adapter the device disappears from the > machine. > > The only solution so far has been to reboot the HVM. >What Windows OS and what version of GPLPV? Sounds like a bug but I''ve disabled and enabled adapters lots of times without problems... James
On Mon, Feb 18, 2013 at 6:05 PM, James Harper <james.harper@bendigoit.com.au> wrote:> > 1. Has anyone else been having trouble with the xendomains script? > > > > I am running 4.2 stable on Debian Wheezy, and the xendomains script does > > not shut down my running domains (specifically two linux HVM''s one with > > PVHVM). > > > > When run manually via `service xendomains stop` or > `/etc/init.d/xendomains > > stop` it returns a success message, but my machines continue to run as > > though nothing happened. > > That is a bit strange. Check the /etc/default/xendomains and see what the > behaviours are set to... it shouldn''t leave the domains running but maybe > is set to save but save is failing? > > I see, totally forgot about that file. All set to defaults, and`XENDOMAINS_SAVE` is set to `/var/lib/xen/save`, should I set it to an empty string?> > When I shut down my computer without running `xl destroy` on the running > > domains it locks up, my guess is because the domains are still running. > > > > When you say ''locks up'' do you mean dom0 gets part way through the > shutdown tasks then hangs waiting for xen services to shut down? > > I mean if I run `shutdown -r "now"` with running domains it goes throughall the shutdown messages and then simply stops at the last message, and sits there. Since after the shutdown commands are run I can''t interact with the machine I can''t exactly do much about it, but if I shut down the machines first manually then run the shutdown command it reboots without a problem.> > > > 2. Is anyone else having problems restarting network adapters on Windows > > HVM''s with GPLPV drivers? > > > > Without them it works fine, but with GPLPV installed if I disable and > then > > attempt to re-enable a network adapter the device disappears from the > > machine. > > > > The only solution so far has been to reboot the HVM. > > > > What Windows OS and what version of GPLPV? Sounds like a bug but I''ve > disabled and enabled adapters lots of times without problems... > > I am using GPLPV 11.0.357.I had the same problems on Windows 7 but am currently using Windows 8. At first I thought it was a misconfigured vif, but after trying every combination of options without any changes I think it must be something else. I have attached my windows CFG to this email.> James >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
> What Windows OS and what version of GPLPV? Sounds like a bug but > I''ve disabled and enabled adapters lots of times without problems... > > > > I am using GPLPV 11.0.357. > > I had the same problems on Windows 7 but am currently using Windows 8. > > At first I thought it was a misconfigured vif, but after trying every > combination of options without any changes I think it must be something > else. I have attached my windows CFG to this email. > >I don''t see an attachment. James
Sorry, guess it didn''t take. Just in case: name=''windows'' builder=''hvm'' vcpus=4 memory=8192 disk=[ ''/dev/mapper/xen-windows,,hda,w'', ''/dev/mapper/backups-music,,hdb,w'' ] vif=[ ''mac=00:16:3e:14:b1:1d,bridge=xenbr1'' ] pci=[ ''00:1d.0'', ''01:00.0'', ''01:00.1'', ''0b:00.0'', ''0c:00.0'' ] boot=''c'' pae=1 nx=1 videoram=16 stdvga=1 #sdl=1 vnc=1 vnclisten="0.0.0.0:10" usb=1 usbdevice="tablet" localtime=1 viridian=1 xen_platform_pci=1 On Mon, Feb 18, 2013 at 6:46 PM, James Harper <james.harper@bendigoit.com.au> wrote:> > What Windows OS and what version of GPLPV? Sounds like a bug but > > I''ve disabled and enabled adapters lots of times without problems... > > > > > > > > I am using GPLPV 11.0.357. > > > > I had the same problems on Windows 7 but am currently using Windows 8. > > > > At first I thought it was a misconfigured vif, but after trying every > > combination of options without any changes I think it must be something > > else. I have attached my windows CFG to this email. > > > > > > I don''t see an attachment. > > James >_______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users
On 18/02/13 22:20, Casey DeLorme wrote:> Hello Xen Users, > > I have a couple of unrelated questions but didn''t want to clutter > everyones in-boxes with two emails. > > --- > > 1. Has anyone else been having trouble with the xendomains script? > > I am running 4.2 stable on Debian Wheezy, and the xendomains script > does not shut down my running domains (specifically two linux HVM''s > one with PVHVM). > > When run manually via `service xendomains stop` or > `/etc/init.d/xendomains stop` it returns a success message, but my > machines continue to run as though nothing happened. > > When I shut down my computer without running `xl destroy` on the > running domains it locks up, my guess is because the domains are still > running. > > Has anyone else encountered this problem? > > ---Xendomains is always horribly broken for me when using xl. I wrote a patch to fix it. I can''t remember if I was getting exactly the same behaviour as you, but it is worth a try. This is using the script from the vanilla Xen sources, so I doubt it will patch against the Debian version. I can email the whole xendomains script off-list if you like, or it is pretty easy to mod by hand. I have one Dom0 based on Ubuntu 12.04 and another against Scientific Linux 6.3 with custom kernel and the same script works on both. Whoever maintains the xendomains script must test it against an environment very alien to me! My patch (untested against xm):- --- xendomains.421 2012-12-17 15:00:34.000000000 +0000 +++ xendomains 2013-01-06 11:14:44.622409914 +0000 @@ -27,11 +27,13 @@ # boots / shuts down. ### END INIT INFO +HEADCOMP="LinuxGuestRecord" CMD=xm $CMD list &> /dev/null if test $? -ne 0 then CMD=xl + HEADCOMP="Xen saved domain" fi $CMD list &> /dev/null @@ -202,10 +204,10 @@ done } -LIST_GREP=''((domain\|(domid\|(name\|^{$\|"name":\|"domid":'' +LIST_GREP=''((domain$\|(domid\|(name\|^{$\|"name":\|"domid":'' parseln() { - if [[ "$1" =~ ''(domain'' ]] || [[ "$1" = "{" ]]; then + if [[ "$1" = ''(domain'' ]] || [[ "$1" = "{" ]]; then name=;id elif [[ "$1" =~ ''(name'' ]]; then name=$(echo $1 | sed -e ''s/^.*(name \(.*\))$/\1/'') @@ -255,7 +257,7 @@ for dom in $XENDOMAINS_SAVE/*; do if [ -f $dom ] ; then HEADER=`head -c 16 $dom | head -n 1 2> /dev/null` - if [ $HEADER = "LinuxGuestRecord" ]; then + if [ "$HEADER" = "$HEADCOMP" ]; then echo -n " ${dom##*/}" XMR=`$CMD restore $dom 2>&1 1>/dev/null` #$CMD restore $dom
On Tue, 2013-02-19 at 00:23 +0000, Ian wrote:> Xendomains is always horribly broken for me when using xl. I wrote a > patch to fix it.Did you resend this patch as discussed in <1357813957.67365.YahooMailNeo@web171303.mail.ir2.yahoo.com> ? Sorry if I''ve missed it somewhere along the way.> I can''t remember if I was getting exactly the same > behaviour as you, but it is worth a try. > This is using the script from the vanilla Xen sources, so I doubt it > will patch against the Debian version.IIRC Debian has a completely rewritten version of this script. It''s likely that the Ubuntu packages have picked this up also. Of course this won''t matter if you are pulling from source. Ian.