On Fri, Apr 16, 2010 at 08:03:06AM -0600, David S. Ahern wrote:
> 
> 
> On 04/14/2010 08:01 AM, Lucas Meneghel Rodrigues wrote:
> > On Wed, Apr 14, 2010 at 10:26 AM, Amos Kong <[email protected]> wrote:
> >> Hi Lucas,
> >>
> >> When I execute unattended_install testcases on RHEL-5.5, it always fail 
> >> when using rhel3.9-32 guest.
> >> I found it blocked after packages installation. Is it related that 
> >> rhel39-32 guest don't support acpi ?
> > 
> > I've hit this problem before, it is what I believe to be an anaconda
> > bug on that particular RHEL version. I tried a *lot* to work around
> > the problem, spent a lot of time with it, but in the end I just gave
> > up.
> > 
> > The problem happens because it's simply not possible to bring the
> > network up at post install stage so the install can communicate with
> > the host to respond that its installation finished. If anyone can help
> > to work around the problem that'd be great...
> 
> What commands are you running to configure the network and what command
> is stalling? I've done unattended installs with RHEL3.8, 32-bit guests
> with networking enabled.


Qemu Command Line:
# /root/autotest/client/tests/kvm/qemu -name 'vm1' -monitor
tcp:0:6001,server,nowait -drive
file=/root/autotest/client/tests/kvm/images/RHEL-3.9-32.raw,if=ide,cache=writethrough,boot=on
-net nic,vlan=0,model=e1000,macaddr=00:11:22:33:50:01 -net user,vlan=0 -m 33792
-smp 12 -drive
file=/root/autotest/client/tests/kvm/isos/linux/RHEL3.9-i386-DVD.iso,index=2,media=cdrom
-soundhw ac97 -fda /root/autotest/client/tests/kvm/images/floppy.img -tftp
/root/autotest/client/tests/kvm/images/tftpboot -usbdevice tablet -rtc-td-hack
-no-hpet -cpu qemu64,+sse2 -no-kvm-pit-reinjection -bootp /pxelinux.0 -boot n
-redir tcp:5000::22 -redir tcp:5001::12323 -vnc :0    

----------------------

# cat RHEL-3-series.ks 
install
cdrom
text
reboot
lang en_US.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-9
keyboard us
network --bootproto dhcp
r-ootpw 123456
firewall --enabled --ssh
timezone America/New_York
firstboot --disable
bootloader --location=mbr
clearpart --all --initlabel
autopart
reboot
mouse generic3ps/2
skipx

%packages --resolvedeps
@ base
@ development-libs
@ development-tools

%post --interpreter /usr/bin/python
import socket, os
os.system('dhclient')
os.system('chkconfig sshd on')
os.system('iptables -F')
os.system('echo 0 > /selinux/enforce')
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind(('', 12323))
server.listen(1)
(client, addr) = server.accept()
client.send("done")
client.close()


> 
> David
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to