RE: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-21 Thread Jay West
Feedback Mark you absolutely ROCK.

Jay West
EZwind.net
PO Box 460474
Saint Louis, MO 63146
Voice: (314) 262-4143 ext 1000
Toll Free: (866) 343-2589
Fax: (314) 558-9284
jw...@ezwind.net


This e-mail transmission may contain information that is proprietary, 
privileged and/or confidential
and is intended exclusively for the person(s) to whom it is addressed. Any use, 
copying, retention
or disclosure by any person other than the intended recipient or the intended 
recipient's designees
is strictly prohibited. If you are not the intended recipient or their 
designee, please notify the
sender immediately by return e-mail and delete all copies.


-Original Message-
From: owner-freebsd-...@freebsd.org [mailto:owner-freebsd-...@freebsd.org] On 
Behalf Of Mark Felder
Sent: Saturday, August 18, 2012 3:02 PM
To: freebsd-xen@freebsd.org
Subject: Re: Citrix Xenserver and FreeBSD migration/suspend scripts

Hi guys, I've done some recent updates:

We're down to a resonable amount of scripts now:

%%LOCALBASE%%/etc/rc.d/xe-daemon
%%LOCALBASE%%/sbin/xe-daemon
%%LOCALBASE%%/sbin/xe-update-guest-attrs
%%LOCALBASE%%/sbin/xe_wrapper


Other changes:

- Cleaner memory reporting
- IPs for your network interfaces are reported correctly
- New version and build to match what the Linux tools report on XenServer
6.0.2 which should make the out of date errors go away


Feel free to leave some more feedback. I expect this will be joining the 
xen-tools port very soon now.
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-18 Thread Mark Felder

Hi guys, I've done some recent updates:

We're down to a resonable amount of scripts now:

%%LOCALBASE%%/etc/rc.d/xe-daemon
%%LOCALBASE%%/sbin/xe-daemon
%%LOCALBASE%%/sbin/xe-update-guest-attrs
%%LOCALBASE%%/sbin/xe_wrapper


Other changes:

- Cleaner memory reporting
- IPs for your network interfaces are reported correctly
- New version and build to match what the Linux tools report on XenServer  
6.0.2 which should make the out of date errors go away



Feel free to leave some more feedback. I expect this will be joining the  
xen-tools port very soon now.

___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-17 Thread Egoitz Aurrekoetxea Aurre




El 17/08/2012, a las 16:07, Mark Felder f...@feld.me escribió:

 On Thu, 16 Aug 2012 17:01:41 -0500, Egoitz Aurrekoetxea 
 ego...@ramattack.net wrote:
 
 Sorry in this last mails I was talking about making a port with my own
 scripts and adaptation
 http://wiki.xen.org/wiki/FreeBSD_9.0_64-bit_HVM_on_XCP_1.1
 I assume I didn't know about you're project at this date... when I
 answered this mail...
 
 My work is an improvement on yours. Please take a look at it and feel free 
 contribute additional changes :-) I'm very glad you were able to get this 
 working and post it for everyone to use.


I'll take a look Mark :) sure... Was just clarifying that what I have been 
spoken about is about the code adapted by me... You know, I'm on holiday and 
most of times answering from the smartphone... Sometimes you don't read in the 
street and in so a little screen the contents as you should :)

Just that..,

But sure although I have my code in production and working :) everything is 
improvable :) :)

Bye!!

P.S.: FreeBSD rules!!!___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-16 Thread Egoitz Aurrekoetxea
On Fri, 2012-08-10 at 09:31 -0500, Mark Felder wrote:
 No more bash
 Less scripts
 No need for /procfalse or any temp files for IPs or memory usage
 rc script rewritten and conforms to normal FreeBSD standards
 
 It's on my github -- https://github.com/felderado/freebsd-xen-tools-scripts

Sorry in this last mails I was talking about making a port with my own
scripts and adaptation

http://wiki.xen.org/wiki/FreeBSD_9.0_64-bit_HVM_on_XCP_1.1


I assume I didn't know about you're project at this date... when I
answered this mail...

I'm on holiday sorry for answering so late...



___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-14 Thread Egoitz Aurrekoetxea Aurre
I was assuming here you were using my script's... Well anyway all right if 
solved.. But what are you then running now?



El 13/08/2012, a las 03:53, moto kawasaki m...@kawasaki3.org escribió:

 
 Hi Egoitz-san,
 
 Thank you very much for your reply!!
 
 Year, I've tried that in xe-update-guest-attrs:
 
xenstore_write_cached attr/PVAddons/MajorVersion 6
xenstore_write_cached attr/PVAddons/MinorVersion 0
xenstore_write_cached attr/PVAddons/MicroVersion 2
 
 But still XenCenter recognises it as old version of xenserver-tools.
 
 
 
 was Xenserver 6.2.0 wasn't it??
 No, it was 6.0.2. I haven't had a chance to figure this out as I
 don't have a 6.0.2 XenServer available right now.
 
 This is true. XenServer version is 6.0.2. just for clarification.
 
 
 Best Regards,
 
 
 
 -- 
 moto kawasaki m...@kawasaki3.org 090-2464-8454
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-12 Thread Mark Felder

On Sun, 12 Aug 2012 07:50:16 -0500, Jay West jw...@ezwind.net wrote:


Questions:
1) on the stock 64bit 9.0  9.1-beta XENHVM kernels, we still had the  
boot
problem where after installing the kernel and rebooting, the boot failed  
as
being unable to find the boot device. We had to pass a boot string of  
ad0p2

instead of the default ada0p2, and then edit fstab accordingly. I assume
others here had to do that as well?



Yes, but I think that's because with the XENHVM kernel the disks are using  
a different driver. There's a difference between the ad and ada drivers.


2) I'm sure this will show a lack of understanding on my part,  but I'm  
just
curious about the xen-tools port that has been in the ports collection  
for a
little while. As per the pdf on the migration/suspend scripts, this  
needs to

be installed first. I would think the current port - being called
xen-tools, would/should include these migration/suspend scripts. It's  
not
xen-tools (in Citrix parlance) without that capability. So, is this a  
case

of the new scripts just finish off the work that went into the current
xen-tools script and the xen-tools port in the ports collection is
functionally incomplete? I guess I'm unclear as to the
history/relationship/status of the xen-tools port and these
migration/suspend scripts.


This is likely where it will show up. I've been talking to the ports@ team  
and it seems to make sense that we include it in that port.




3) In some of my googling on 64 bit XENHVM how-to's, one of them (can't
find it at the moment) mentioned 64 bit Freebsd not working right under  
Xen
with regards to SMP, and the how-to offered several patches to disable  
SMP
amongst other related items. To run the new migration/suspend scripts,  
did

other people here need to use those patches?



I have a feeling this is an old/resolved issue as I've not seen it yet.
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-12 Thread moto kawasaki

Hi Egoitz-san,

Thank you very much for your reply!!

Year, I've tried that in xe-update-guest-attrs:

xenstore_write_cached attr/PVAddons/MajorVersion 6
xenstore_write_cached attr/PVAddons/MinorVersion 0
xenstore_write_cached attr/PVAddons/MicroVersion 2

But still XenCenter recognises it as old version of xenserver-tools.



 was Xenserver 6.2.0 wasn't it??
 No, it was 6.0.2. I haven't had a chance to figure this out as I
 don't have a 6.0.2 XenServer available right now.

This is true. XenServer version is 6.0.2. just for clarification.


Best Regards,



-- 
moto kawasaki m...@kawasaki3.org 090-2464-8454
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-12 Thread moto kawasaki

Hi Mark-san,

Thank you very much for your patch.

I've applied that patch already, and seems fix the problem.


Thank you very very much!!

Sincerely,


 Let me check this please but surely it would be something easy to
 solve or something that is not complete on the installation
 
 He's using my modified version of the xen tools scripts and I just
 caught this bug this morning. It appears to be fixed here:
 
 https://github.com/felderado/freebsd-xen-tools-scripts/commit/9250a10ae8a1ab1045f15964bd1cfce1124423bd#src/usr/local/sbin/xe-update-guest-attrs

-- 
moto kawasaki m...@kawasaki3.org 090-2464-8454
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-10 Thread Egoitz Aurrekoetxea
On Fri, 2012-08-10 at 10:31 +0200, Egoitz Aurrekoetxea wrote:
 Hi!!
 

Hi!!

 
 
 El 10/08/2012, a las 03:37, moto kawasaki m...@kawasaki3.org escribió:
 
  
  Hi,
  
  Thank you for your quick reply!
  This is moto again.
  
  From: Egoitz Aurrekoetxea ego...@ramattack.net
  Subject: Re: Citrix Xenserver and FreeBSD migration/suspend scripts
  Date: Thu, 9 Aug 2012 22:50:18 +0200
  
  1) XenCenter shows warning as;
 XenServer Tools out of date (version 6.0 installed)
snip

take a look a little later in this mail :)


  I suppose you'll have to have 6 0 2 in three *version xenstore
 attribs... Make some tests... Not just change the micro...
  


Check the change proposed down


  I couldn't find any line in the scripts except for micro version
  mentioned before... X-(
  
 
 Let me check I'll tell you something today... Should be easy...
 

Try setting in xe-update-guest-attrs

xenstore_write_cached attr/PVAddons/MajorVersion 6
xenstore_write_cached attr/PVAddons/MinorVersion 2
xenstore_write_cached attr/PVAddons/MicroVersion 0 

(line 172 and so)

was Xenserver 6.2.0 wasn't it??


 
 
  2) Shutdown button on XenCenter works but doesn't complete.
snip
  Yep just hit intro twice and you should be done...
 
 Click on the vm vnc console and two times enter/intro I meant
 
 
  
  All right, I'll try push shutdown button twice.
  But, this is not critical since I can do it by just logging in and
  shutdown from command line.
  
  3) Moving VM from one member host to another in the pool works.
   wow!!
  
  Meanwhile suspend works this shoud not be a problem... Why don't you
   try Xen Cloud??
  
  Ah, I'll try. It is from historical and political reasons.
  
 
 Ok this way you can be running the same env...
 
  By the way, now my /var/log/messages is filled with the following
  logs.
  Could you please give me any pointer/information if you don't mind ?
  Thanks in advance.
  
  Aug 10 10:31:28 xenserver xe_daemon[10567]: 
  /usr/local/sbin/xe-update-guest-attrs: cannot open eth0 | 192.168.227.33
  Aug 10 10:31:28 xenserver xe_daemon[10567]: eth1 | 192.168.227.161: No such 
  file or directory
  Aug 10 10:32:15 xenserver xe_daemon[126]: 
  /usr/local/sbin/xe-update-guest-attrs: cannot open eth0 | 192.168.227.33
  Aug 10 10:32:15 xenserver xe_daemon[126]: eth1 | 192.168.227.161: No such 
  file or directory
  Aug 10 10:32:28 xenserver xe_daemon[10567]: 
  /usr/local/sbin/xe-update-guest-attrs: cannot open eth0 | 192.168.227.33
  Aug 10 10:32:28 xenserver xe_daemon[10567]: eth1 | 192.168.227.161: No such 
  file or directory
  Aug 10 10:33:15 xenserver xe_daemon[126]: 
  /usr/local/sbin/xe-update-guest-attrs: cannot open eth0 | 192.168.227.33
  Aug 10 10:33:15 xenserver xe_daemon[126]: eth1 | 192.168.227.161: No such 
  file or directory


are you using the version provided in the tar file for
xe-update-guest-attrs ?? there's nothing under /usr/local/sbin Is
this log from the host or the vm? the vm isn't it?? check the path of
the files...



  
 
 Let me check this please but surely it would be something easy to solve or 
 something that is not complete on the installation
 
 
  
  And also, I also want to make them ports package.
  If you need tester, just let me know.
  
  
  Thank you very much!
  
  
 
 You're welcome,
 Regards!
 
  
  Best Regards,
  
  
  -- 
  moto kawasaki m...@kawasaki3.org 090-2464-8454
 ___
 freebsd-xen@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-xen
 To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-10 Thread Mark Felder
On Fri, 10 Aug 2012 03:31:12 -0500, Egoitz Aurrekoetxea  
ego...@ramattack.net wrote:


Aug 10 10:31:28 xenserver xe_daemon[10567]:  
/usr/local/sbin/xe-update-guest-attrs: cannot open eth0 | 192.168.227.33
Aug 10 10:31:28 xenserver xe_daemon[10567]: eth1 | 192.168.227.161: No  
such file or directory
Aug 10 10:32:15 xenserver xe_daemon[126]:  
/usr/local/sbin/xe-update-guest-attrs: cannot open eth0 | 192.168.227.33
Aug 10 10:32:15 xenserver xe_daemon[126]: eth1 | 192.168.227.161: No  
such file or directory
Aug 10 10:32:28 xenserver xe_daemon[10567]:  
/usr/local/sbin/xe-update-guest-attrs: cannot open eth0 | 192.168.227.33
Aug 10 10:32:28 xenserver xe_daemon[10567]: eth1 | 192.168.227.161: No  
such file or directory
Aug 10 10:33:15 xenserver xe_daemon[126]:  
/usr/local/sbin/xe-update-guest-attrs: cannot open eth0 | 192.168.227.33
Aug 10 10:33:15 xenserver xe_daemon[126]: eth1 | 192.168.227.161: No  
such file or directory


Let me check this please but surely it would be something easy to solve  
or something that is not complete on the installation


He's using my modified version of the xen tools scripts and I just caught  
this bug this morning. It appears to be fixed here:


https://github.com/felderado/freebsd-xen-tools-scripts/commit/9250a10ae8a1ab1045f15964bd1cfce1124423bd#src/usr/local/sbin/xe-update-guest-attrs
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-10 Thread Egoitz Aurrekoetxea
If you're using my xenservertools for freebsd version replace as said before... 
But where I entered a 2 set 0 and viceversa

Regards,



El 10/08/2012, a las 18:09, Mark Felder f...@feld.me escribió:

 On Fri, 10 Aug 2012 08:56:30 -0500, Egoitz Aurrekoetxea 
 ego...@ramattack.net wrote:
 
 was Xenserver 6.2.0 wasn't it??
 
 No, it was 6.0.2. I haven't had a chance to figure this out as I don't have a 
 6.0.2 XenServer available right now.
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-09 Thread Egoitz Aurrekoetxea
Another little thing... I'm now on holidays and when I opened this scripts I 
was a little busy but I plan to write a port on September/October with them.

Regards,


El 09/08/2012, a las 02:49, moto kawasaki m...@kawasaki3.org escribió:

 
 Hello Mr. Mark Felder,
 
 I'd say thank you again and again for your scripts.
 
 I am running several XenServer machines and dozens of amd64/HVMXEN
 VMs, hence longing to have XenTools for FreeBSD for months.
 
 Now I am going to have a test run of those scripts, and wish to do
 something I can do to make it a ports.
 
 
 Thank you very much.
 
 -- 
 moto kawasaki m...@kawasaki3.org
 ___
 freebsd-xen@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-xen
 To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-09 Thread Mark Felder
On Thu, 09 Aug 2012 13:42:03 -0500, moto kawasaki m...@kawasaki3.org  
wrote:



1) XenCenter shows warning as;
 XenServer Tools out of date (version 6.0 installed)
  Changing MicroVersion from 0 to 2 in xe-update-guest-attr file
   doesn't have effect on this issue.
xenstore_write_cached attr/PVAddons/MicroVersion 2
^^^
   0 to 2


On XenServer 6.0.0 the current settings work fine. I imagine we need to  
investigate what version the tools are on other platforms and emulate that  
version accordingly.



2) Shutdown button on XenCenter works but doesn't complete.
   I guess XenServer/XenCenter expect something like shutdown -p now
   on the FreeBSD VM, but actually it runs like shutdown -h now.
   Thus, FreeBSD VM has shut down, but doesn't cut its power, thus
   XenCenter remains on the way shutting down (VM icon stays in
   green, not goes to red.).


I haven't looked to see how this is handled at all, but I bet it's  
something we can fix.



3) Moving VM from one member host to another in the pool works.
   wow!!


Thanks for giving us another confirmation!
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-08 Thread Gót András

Hi,

Of course this should make into ports and some little news would also be 
good on the freebsd-stable list and the freebsd website also. This is a 
very big thing to have FreeBSD working fine under XenServer fine.


What would you need to host the tarballs?

I'm in a XenServer deployment project, kind of public cloud but small 
scale of course as we're not amazon, and we'd be also happy to evaluate 
and test it. It'd be very good to offer FreeBSD based VM-s also.


Regards,
Andras


On 08/08/2012 04:31 PM, Mark Felder wrote:

I've had a few positive responses off-list about this and the desire to
get this into the ports tree somehow. Someone also had the original
author's email address (he subscribes to this list), so I'm going to CC
him on this email as well.

We could probably get this into the ports tree relatively quickly. I've
been working closely with the ports@ team recently, so it wouldn't take
much effort in that respect. Some questions were brought up about what
it should be named or if it should be a separate port and I don't know
what the right answer here is, really. Perhaps emulators/xe-tools or
emulators/xenserver-tools would be sufficient.

I guess the first step would be to find some place to officially host
the tarball and/or tag a release on github. As it stands things are
fully functional, so getting this into the ports tree shouldn't be too
big of a problem. Long term I'd like to see this cleaned up a bit
more... it's quite the mess. Honestly, everything could (and should) be
rolled into one shell script because there's really no need to have
xe-daemon, xe-ip-if.sh, and xe-update-guest-attrs. For the record,
xe-update-guest-attrs is the file with the Citrix/GPL header. It has the
examples of how we should be calling the other xen-tools to report data
to XenServer. Whether we concentrate on this script or a rewrite happens
doesn't really matter to me; it's not a lot of code I'd just like to see
all of these really awful hacks removed :-)

Someone was asking about whether or not this was production-worthy. I
really don't see why not. I suppose if this fails you'll just end up
with a VM running without recognized tools again. I don't believe it's
possible for the OS to crash from things these scripts run, and the
ability to migrate/suspend Xen VMs is not reliant on these tools in a
fully open source Xen environment; this is just a requirement Citrix
imposes.


Feel free to speak up if you have any thoughts or suggestions :-)


Egoitz, can you confirm what license you originally released everything
under? I'd like to properly honor that license if you had one in mind.
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org

___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-08 Thread Mark Felder
On Wed, 08 Aug 2012 09:41:26 -0500, Gót András got.and...@deployis.eu  
wrote:



What would you need to host the tarballs?


If someone or some company has a vested interest in pushing this and  
developing it then by all means go ahead and take the current codebase and  
run with it. Otherwise I think what I'll end up doing is tagging releases  
in github and using that as the primary mirror and getting a copy of the  
tarballs onto the FreeBSD mirrors.

___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org


Re: Citrix Xenserver and FreeBSD migration/suspend scripts

2012-08-08 Thread moto kawasaki

Hello Mr. Mark Felder,

I'd say thank you again and again for your scripts.

I am running several XenServer machines and dozens of amd64/HVMXEN
VMs, hence longing to have XenTools for FreeBSD for months.

Now I am going to have a test run of those scripts, and wish to do
something I can do to make it a ports.


Thank you very much.

-- 
moto kawasaki m...@kawasaki3.org
___
freebsd-xen@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-xen
To unsubscribe, send any mail to freebsd-xen-unsubscr...@freebsd.org