source: branches/stable/tools/qemu-vm.txt @ 1529

Last change on this file since 1529 was 1529, checked in by Bruno Cornec, 13 years ago
  • ChangeLogs? updated for upcoming 2.2.4
  • Attempt to fix #177 by removing first headers and repodata directory before regenerating them.
  • Fix a problem in directory link handling in mindi (seen on gentoo 64) with the precious help of Francesco Talamona ti.liame_at_email.it
  • Gentoo ebuild are now unmasked on my side
  • usb-storage instead of usb_storage as a module name for Virtual CD support seems better
  • Document support for Proliant Virtual Media with mindi
  • Mandriva packages go first to contrib/testing not backport
  • Size of DVD is 4482 (or more surely 4480 to avoid problems). Fixed everywhere.
  • Fix a bug in Mandriva official package creation

(merge -r1519:1528 $SVN_M/branches/2.2.4)

File size: 4.1 KB
Line 
1#Booting CD
2qemu-img create -f qcow image.qemu 3G
3qemu -cdrom /dev/hdc -m 256 -boot d image.qemu
4
5# Recent SUSE acpi=off
6
7# RPM based : urpmi, yum install, yast2
8# Mandriva
9urpmi neon newt-devel slang-devel glibc-static-devel autoconf automake libtool gcc rpm-build wget gcc-c++ docbook-utils-pdf ImageMagick man patch mindi mondo mkisofs cdrecord
10
11#Fedora
12yum install neon newt-devel slang-devel autoconf automake libtool gcc rpm-build wget vim gcc-c++ docbook-utils-pdf ImageMagick man patch cdrecord mkisofs
13
14
15# gentoo
16#Cf: http://wiki.xensource.com/xenwiki/QEMUGentoo
17emerge neon newt slang autoconf automake subversion libtool gcc wget vim man groff lynx grub afio buffer mindi mondo-rescue sudo # cdrecord mkisofs
18
19# Slackware
20# Cf: http://www.linuxpackages.net/howto.php?page=package&title=Package+Howto
21#
22# Ubuntu
23apt-get install autoconf automake libtool g++ wget patch mondo groff imagemagick docbook-utils docbook2x docbook-to-man openssh-server dpkg-dev debian-builder dh-make fakeroot libnewt-dev libncurses5-dev
24
25#Changing CD during install:
26Ctrl-Alt-2
27eject cdrom
28(swap disk)
29change cdrom /dev/cdrom
30
31# Slack: put loadkeys fr in /etc/rc.d/rc.keymap
32# Gentoo: edit /etc/conf.d/keymaps
33
34#Clé SSH:
35#   Ajout clé ssh pour root:
36mkdir /root/.ssh
37chmod 700 /root/.ssh
38scp bruno@10.0.2.2:.ssh/id_dsa.pub /root/.ssh/authorized_keys
39chmod 600 /root/.ssh/authorized_keys
40
41#Créer compte bruno avec répertoires nécéssaires + env necessaire
42mkdir /users
43useradd bruno -d /users/bruno
44passwd bruno
45
46su - bruno
47mkdir -p mondo/tmp build
48cat > ~bruno/.rpmmacros << EOF
49%_topdir    /users/bruno/build
50%_tmppath   %{_topdir}/tmp
51%packager   Bruno Cornec <bruno@mondorescue.org>
52EOF
53cat > ~bruno/.rpmrc << EOF
54buildarchtranslate: i386: i386
55buildarchtranslate: i486: i386
56buildarchtranslate: i586: i386
57buildarchtranslate: i686: i386
58EOF
59mkdir ~/.ssh
60chmod 700 ~/.ssh
61scp -p victoria2.home.musique-ancienne.org:.ssh/id'*' ~/.ssh
62# Passwd asked above
63cp ~/.ssh/id_dsa.pub ~/.ssh/authorized_keys
64chmod 600 ~/.ssh/authorized_keys
65
66cat >> ~/.ssh/known_hosts << EOF
67shell.berlios.de,195.37.77.140 ssh-dss AAAAB3NzaC1kc3MAAACBAKawwrOuxejvOTWc6zFKEs2KKzVDXchPICt0p5A6LuIeIX+Uw9QMM5hji7txwuNt+ErPX/Z9xd1OBKAsormCMe6BZaxi0KMyFHPTnFTJpy168ztBD+782fQwlvop9nNRWkKoY1BGqQvKX50Zj+mQ39VP+RgJsyDMl+sKA3OqtGcVAAAAFQCBx79R1fUfJgOAVKxrCnvCu2vQRQAAAIBq5Li0/Fdf0yL/fSv6q8OZLCUgjMk6agnNbMxSK35Vctx0E4KXQbIJTmpwZIgYdZm+S2LYe0EgEYcWyBgcll1kK5Rti2e71sVuSoRNCo+rD8bsBcIETENtHZYuAeAWBlwrvT5LReGRpJ1YMNQpXXq4mQFbmhuhgJw9nKyt5xv6bgAAAIAro+dquEuGy32MOLcSqHtJm/FA+3FRG0RbLS8VDtxVC3ISe3SlSM0BecIHZ6aP5dL5W2b39/U2clls05X23SRK68DSqxoR/o9YshKdshDkPGEDfqyucOCn5FwUsZkd/WkZIuBZdLHLUtXUK6h85+08t5gmaL8eoXoOvHpsuCnNdA==
68svn.berlios.de,195.37.77.137 ssh-dss AAAAB3NzaC1kc3MAAACBAKouB77l1f4FgdP6DjLOgq5RKuGYm3zMJlM4WHcKzWnPuErZW4Omxk1CO0JojDNj/bjxz/95blWbdonEcAo0v71GcZbECFDsJdgVbZM+yxLHKOF4S5uHkiJ+LMawFcRoCGAochowoP9jUfLVAzyT1q3dbvmL43YO3FDvD+mCKTbZAAAAFQCWs/2nOqvitE/CyOCa81sadnzsPQAAAIBrgWRs2VN6jAtX1eUxPwtkJWX886DkiBwdEgtUwDW8RJJCFU6+zjNwFZ8VcjeA7OCFKmZqoD8ABojMMtB53VoXXRzp5PtWgJEMpCLOhHbAA6nLR+Zu9zV8rFHsrjvR17ZgmA8q1dZRqqvZSyzsoP4KdW7f9nD2SjFEVhjHfIsQmwAAAIEAoDlEoGO/lc8XkvNW7G8/rybzETG0cepONVKThYufP5Z2FdGj9a1TYc2Gaw2DygM20Ohwj1RW8aeRE/jYbEm4unM6IFYeLvCbDeeCCHCiCJmw/Pj2ityB5uPTat4Yn28FCd4eP5LyQq2EHz6bPA0LzpNJKwto4naIMsDpET1GNH0=
69EOF
70
71#rebuild paquets necessaires mondo:
72wget ftp://ftp.mondorescue.org/src/afio-2.4.7-1.src.rpm
73wget ftp://ftp.mondorescue.org/src/buffer-1.19-1.src.rpm
74rpm -ivh afio-2.4.7-1.src.rpm buffer-1.19-1.src.rpm
75mkdir -p build/BUILD build/RPMS/i386 build/SRPMS
76rpmbuild -ba build/SPECS/afio.spec
77rpmbuild -ba build/SPECS/buffer.spec
78chmod 644 build/RPMS/i386/*
79scp -p build/RPMS/i?86/afio-[0-9]* build/RPMS/i?86/buffer-[0-9]* www.mondorescue.org:/mondo/ftp/rhel/3/
80
81# Exchange host keys with www.mondorescue.org
82ssh www.mondorescue.org ls
83
84
85root:
86rpm -ivh ~bruno/build/RPMS/i?86/afio-[0-9]* ~bruno/build/RPMS/i?86/buffer-[0-9]*
87
88# Adapt sudoers
89
90# For RHAS 2.1 add grep-2.5.1
91
92#for gentoo
93chown bruno /etc/make.conf
94bruno in portage group
95
96# for FreeBSD
97ln -sf /usr/local/bin/bash /bin/bash
98
99# For Slackware
100take on ftp pkg src + build
101configure sudo :
102bruno = NOPASSWD: /sbin/makepkg
Note: See TracBrowser for help on using the repository browser.