Skip to contentSkip to conversation

KVM test: Make sure VM has an IP at post install stage

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Feb 4, 2010 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM test: Make sure VM has an IP at post install stage

Similarly as we're doing on windows, make sure the vm acquires an IP address before proceeding with the rest of post install.

---
 client/tests/kvm/unattended/Fedora-11.ks     |    1 +
 client/tests/kvm/unattended/Fedora-12.ks     |    1 +
 client/tests/kvm/unattended/RHEL-3-series.ks |    1 +
 client/tests/kvm/unattended/RHEL-4-series.ks |    1 +
 client/tests/kvm/unattended/RHEL-5-series.ks |    1 +
 5 files changed, 5 insertions(+), 0 deletions(-)
client/tests/kvm/unattended/Fedora-11.ks +1 -0
index ff09b22..65e42c3 100644
@@ -24,6 +24,7 @@ autopart
 
 %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')
client/tests/kvm/unattended/Fedora-12.ks +1 -0
index ff09b22..65e42c3 100644
@@ -24,6 +24,7 @@ autopart
 
 %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')
client/tests/kvm/unattended/RHEL-3-series.ks +1 -0
index 0adbd6f..2f2f252 100644
@@ -28,6 +28,7 @@ skipx
 
 %post --interpreter /usr/bin/python
 import socket, os
+os.system('dhclient')
 os.system('chkconfig sshd on')
 os.system('iptables -F')
 port = 12323
client/tests/kvm/unattended/RHEL-4-series.ks +1 -0
index 88dd2fd..9169b69 100644
@@ -28,6 +28,7 @@ reboot
 
 %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')
client/tests/kvm/unattended/RHEL-5-series.ks +1 -0
index 3c9371f..7409259 100644
@@ -27,6 +27,7 @@ reboot
 
 %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')
Signature · 1 line
1.6.6