661 | | }}} |
662 | | I especially disable firewall and SElinux on the VM. At the end of this initial setup phase log as root on your new VM installation. Check that your update mechanism for yum is correct. Allow your local account (the one running the pb commands) to have access through ssh to the VM, and activate ssh if it's not already done: |
663 | | {{{ |
664 | | # mkdir .ssh |
665 | | # scp bruno@victoria2:.ssh/id_dsa.pub .ssh//authorized_keys |
666 | | The authenticity of host 'victoria2 (192.168.8.28)' can't be established. |
667 | | RSA key fingerprint is 8c:48:e7:a0:23:fe:81:c6:27:a2:d7:e1:7f:00:02:09. |
668 | | Are you sure you want to continue connecting (yes/no)? yes |
669 | | Warning: Permanently added 'victoria2.home.musique-ancienne.org,192.168.8.28' (RSA) to the list of known hosts. |
670 | | bruno@victoria2.home.musique-ancienne.org's password: |
671 | | id_dsa.pub 100% 604 0.6KB/s 00:00 |
672 | | # chmod 700 .ssh |
673 | | # chmod 600 .ssh//authorized_keys |
674 | | }}} |
675 | | And check that it's working by connecting to your VM (fr that use the port you put in your netperf.pb configuration file as vmport): |
676 | | {{{ |
677 | | ssh root@localhost -p 2225 |
678 | | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
679 | | @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ |
680 | | @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
681 | | IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! |
682 | | Someone could be eavesdropping on you right now (man-in-the-middle attack)! |
683 | | It is also possible that the RSA host key has just been changed. |
684 | | The fingerprint for the RSA key sent by the remote host is |
685 | | 83:6f:24:f3:33:db:bf:95:93:79:cf:f4:1f:2a:23:23. |
686 | | Please contact your system administrator. |
687 | | Add correct host key in /users/bruno/.ssh/known_hosts to get rid of this message. |
688 | | Offending key in /users/bruno/.ssh/known_hosts:90 |
689 | | Password authentication is disabled to avoid man-in-the-middle attacks. |
690 | | Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks. |
691 | | Agent forwarding is disabled to avoid man-in-the-middle attacks. |
692 | | X11 forwarding is disabled to avoid man-in-the-middle attacks. |
693 | | # |
694 | | }}} |
695 | | So now you can finish to set up the VM by installing and configuring all what is necessary for pb to work flawlessly. There is a contributed script in Project-Builder that may help you greatly realizing that (Cf: http://trac.project-builder.org/browser/devel/pb/contrib/pbsetupqemu and its launcher http://trac.project-builder.org/browser/devel/pb/contrib/updateqemu). Try launching: |
696 | | {{{ |
697 | | $ wget 'http://trac.project-builder.org/browser/devel/pb/contrib/pbsetupqemu?format=raw' |
698 | | --01:08:11-- http://trac.project-builder.org/browser/devel/pb/contrib/pbsetupqemu?format=raw |
699 | | => `pbsetupqemu?format=raw' |
700 | | Résolution de trac.project-builder.org... 213.30.161.23 |
701 | | Connexion vers trac.project-builder.org|213.30.161.23|:80...connecté. |
702 | | requête HTTP transmise, en attente de la réponse...200 OK |
703 | | Longueur: 7,880 (7.7K) [text/plain] |
704 | | |
705 | | 100%[=================================================================>] 7,880 --.--K/s |
706 | | |
| 661 | |
| 662 | At the end of this initial setup phase log as root on your new VM installation. Check that your update mechanism for yum is correct. |
| 663 | So now you can finish to set up the VM by installing and configuring all what is necessary for pb to work flawlessly. There is a contributed script in Project-Builder that may help you greatly realizing that (Cf: http://trac.project-builder.org/browser/devel/pb/contrib/pbsetupqemu and its launcher http://trac.project-builder.org/browser/devel/pb/contrib/updateqemu). |
709 | | $ chmod 755 /tmp/pbscript |
710 | | $ pb -p netperf -r `pwd` -a root -m fedora_8 -s /tmp/pbscript script2vm |
711 | | Project: pb |
712 | | Action: script2vm |
713 | | VMs: fedora_8 |
714 | | Found an existing VM /users/qemu/fedora_8.qemu (pid 32149) |
715 | | Packages: project-builder |
716 | | Sources handled (Script): /users/bruno/pb/svn/delivery/pbscript |
717 | | Preparing pb/svn/pbrc/src on root@localhost... OK |
718 | | pbscript 100% 15KB 14.6KB/s 00:00 |
719 | | OK |
720 | | Executing pbscript on root@localhost if needed... distro tuple: fedora,8,rh,rpm,.fc8 |
721 | | Cleaning up Everything |
722 | | Setting up Update Process |
723 | | Resolving Dependencies |
724 | | --> Running transaction check |
725 | | ---> Package gnome-screensaver.i386 0:2.20.0-10.fc8 set to be updated |
726 | | ---> Package slrn.i386 0:0.9.8.1pl1-5.20070716cvs.fc8 set to be updated |
727 | | ---> Package perl-Test-Harness.i386 0:2.56-31.fc8 set to be updated |
728 | | [...] |
729 | | ---> Package libsexy.i386 0:0.1.11-3.fc8 set to be updated |
730 | | --> Finished Dependency Resolution |
731 | | |
732 | | Dependencies Resolved |
733 | | |
734 | | ============================================================================= |
735 | | Package Arch Version Repository Size |
736 | | ============================================================================= |
737 | | Installing: |
738 | | kernel i686 2.6.23.1-49.fc8 updates 16 M |
739 | | kernel-devel i686 2.6.23.1-49.fc8 updates 4.8 M |
740 | | Updating: |
741 | | acl i386 2.2.39-12.fc8 updates 69 k |
742 | | attr i386 2.4.38-2.fc8 updates 61 k |
743 | | codeina noarch 0.10.1-6.fc8 updates 117 k |
744 | | [...] |
745 | | |
746 | | Transaction Summary |
747 | | ============================================================================= |
748 | | Install 4 Package(s) |
749 | | Update 67 Package(s) |
750 | | Remove 0 Package(s) |
751 | | |
752 | | Total download size: 143 M |
753 | | Downloading Packages: |
754 | | [...] |
755 | | Updating : gnome-desktop-devel ##################### [ 68/138] |
756 | | Updating : perl-devel ##################### [ 69/138] |
757 | | Updating : perl-ExtUtils-MakeMaker ##################### [ 70/138] |
758 | | Updating : perl-ExtUtils-Embed ##################### [ 71/138] |
759 | | Cleanup : gnome-screensaver ##################### [ 72/138] |
760 | | Cleanup : slrn ##################### [ 73/138] |
761 | | Cleanup : perl-Test-Harness ##################### [ 74/138] |
762 | | Cleanup : codeina ##################### [ 75/138] |
763 | | Cleanup : libattr-devel ##################### [ 76/138] |
764 | | [...] |
765 | | ============================================================================= |
766 | | Installing: |
767 | | perl-AppConfig noarch 1.65-1.fc8 fedora 96 k |
768 | | perl-DateManip noarch 5.44-4.fc8 fedora 162 k |
769 | | |
770 | | Transaction Summary |
771 | | ============================================================================= |
772 | | Install 2 Package(s) |
773 | | Update 0 Package(s) |
774 | | Remove 0 Package(s) |
775 | | |
776 | | Total download size: 258 k |
777 | | Downloading Packages: |
778 | | Running rpm_check_debug |
779 | | Running Transaction Test |
780 | | Finished Transaction Test |
781 | | Transaction Test Succeeded |
782 | | Running Transaction |
783 | | Installing: perl-DateManip ######################### [1/2] |
784 | | Installing: perl-AppConfig ######################### [2/2] |
785 | | |
786 | | Installed: perl-AppConfig.noarch 0:1.65-1.fc8 perl-DateManip.noarch 0:5.44-4.fc8 |
787 | | Complete! |
788 | | 20 Nov 01:45:43 ntpdate[5305]: step time server 192.168.8.55 offset 86478.362381 sec |
789 | | --01:45:44-- ftp://ftp.mondorescue.org/src/project-builder-latest.tar.gz |
790 | | => `project-builder-latest.tar.gz' |
791 | | Resolving ftp.mondorescue.org... 213.30.161.23 |
792 | | Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected. |
793 | | Logging in as anonymous ... Logged in! |
794 | | ==> SYST ... done. ==> PWD ... done. |
795 | | ==> TYPE I ... done. ==> CWD /src ... done. |
796 | | ==> PASV ... done. ==> RETR project-builder-latest.tar.gz ... done. |
797 | | Length: 52,296 (51K) (unauthoritative) |
798 | | |
799 | | 0K .......... .......... .......... .......... .......... 97% 165.62 KB/s |
800 | | 50K . 100% 2.09 MB/s |
801 | | |
802 | | 01:45:45 (169.17 KB/s) - `project-builder-latest.tar.gz' saved [52296] |
803 | | |
804 | | project-builder-0.8.11/ |
805 | | project-builder-0.8.11/pbconf/ |
806 | | project-builder-0.8.11/pbconf/suse-10.0/ |
807 | | project-builder-0.8.11/pbconf/suse-10.0/project-builder.spec |
808 | | project-builder-0.8.11/pbconf/rhel-5/ |
809 | | [...] |
810 | | Writing Makefile for pb |
811 | | cp lib/ProjectBuilder/Changelog.pm blib/lib/ProjectBuilder/Changelog.pm |
812 | | cp lib/ProjectBuilder/Base.pm blib/lib/ProjectBuilder/Base.pm |
813 | | cp lib/ProjectBuilder/Distribution.pm blib/lib/ProjectBuilder/Distribution.pm |
814 | | cp lib/ProjectBuilder/Version.pm blib/lib/ProjectBuilder/Version.pm |
815 | | cp bin/pbvi blib/bin/pbvi |
816 | | /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/bin/pbvi |
817 | | cp bin/pb blib/bin/pb |
818 | | /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/bin/pb |
819 | | cp bin/pbdistrocheck blib/bin/pbdistrocheck |
820 | | /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/bin/pbdistrocheck |
821 | | cp bin/pbg blib/bin/pbg |
822 | | /usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/bin/pbg |
823 | | Installing /usr/bin/pbdistrocheck |
824 | | Installing /usr/bin/pb |
825 | | Installing /usr/bin/pbvi |
826 | | Installing /usr/bin/pbg |
827 | | Installing /usr/lib/perl5/vendor_perl/5.8.8/ProjectBuilder/Distribution.pm |
828 | | Installing /usr/lib/perl5/vendor_perl/5.8.8/ProjectBuilder/Base.pm |
829 | | Installing /usr/lib/perl5/vendor_perl/5.8.8/ProjectBuilder/Changelog.pm |
830 | | Installing /usr/lib/perl5/vendor_perl/5.8.8/ProjectBuilder/Version.pm |
831 | | Writing /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/pb/.packlist |
832 | | Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod |
833 | | OK |
834 | | }}} |
| 666 | }}} |
| 667 | |