KVM test: Parallel install of guest OS v2
PATCH 1/2 KVM test: Parallel install of guest OS v2
From: yogi <[email protected]>
The patch enables doing mulitple install of guest OS in parallel. Have added four more options to test_base.cfg, port redirection entry "guest_port_unattend_shell" for host to communicate with guest during installation, "pxe_dir", 'pxe_image' and 'pxe_initrd" to specify locations for kernel and initrd. For parallel installation to work in unattended mode, the floppy image and pxe boot path also has to be unique for each quest.
All the relevant unattended post install steps for guests were changed, now they are server based codes.
Changes from v1:
* Fixed the logic for the new unattended install test (original
implementation would hang indefinitely if guest dies in the middle of the install).
* Fixed the config changes to make sure the unattended install
port actually gets redirected so the test can work, also made the config specific to unattended install
* Merged the finish.exe patch, including a binary patch that
changes the binary shipped to the new version
* Changed all unattended install files to use the parallel
mechanism
Tested with Windows 7 and Fedora 11 guests. I (lmr) am going to keep this in the queue for a bit so I can test it more in the internal test farm and everybody can take a look at the patch.
--- client/tests/kvm/deps/finish.cpp | 111 ++-- client/tests/kvm/deps/finish.exe | Bin 26913 -> 26926 bytes client/tests/kvm/kvm_utils.py | 4 +- client/tests/kvm/scripts/unattended.py | 56 +- client/tests/kvm/tests/unattended_install.py | 44 +- client/tests/kvm/tests_base.cfg.sample | 66 ++- client/tests/kvm/unattended/Fedora-10.ks | 12 +- client/tests/kvm/unattended/Fedora-11.ks | 11 +- client/tests/kvm/unattended/Fedora-12.ks | 11 +- client/tests/kvm/unattended/Fedora-8.ks | 11 +- client/tests/kvm/unattended/Fedora-9.ks | 11 +- client/tests/kvm/unattended/RHEL-3-series.ks | 12 +- client/tests/kvm/unattended/RHEL-4-series.ks | 11 +- client/tests/kvm/unattended/RHEL-5-series.ks | 11 +- client/tests/kvm/unattended/Sles11-64-autoinst.xml | 898 ++++++++++++++++++++ client/tests/kvm/unattended/win2003-32.sif | 2 +- client/tests/kvm/unattended/win2003-64.sif | 2 +- .../kvm/unattended/win2008-32-autounattend.xml | 2 +- .../kvm/unattended/win2008-64-autounattend.xml | 2 +- .../kvm/unattended/win2008-r2-autounattend.xml | 2 +- .../tests/kvm/unattended/win7-32-autounattend.xml | 2 +- .../tests/kvm/unattended/win7-64-autounattend.xml | 2 +- .../kvm/unattended/winvista-32-autounattend.xml | 2 +- .../kvm/unattended/winvista-64-autounattend.xml | 2 +- client/tests/kvm/unattended/winxp32.sif | 2 +- client/tests/kvm/unattended/winxp64.sif | 2 +- 26 files changed, 1121 insertions(+), 170 deletions(-) create mode 100644 client/tests/kvm/unattended/Sles11-64-autoinst.xml
client/tests/kvm/deps/finish.cpp +59 -52
@@ -1,12 +1,13 @@ -// Simple app that only sends an ack string to the KVM unattended install -// watch code. +// Simple application that creates a server socket, listening for connections +// of the unattended install test. Once it gets a client connected, the +// app will send back an ACK string, indicating the install process is done. // // You must link this code with Ws2_32.lib, Mswsock.lib, and Advapi32.lib // // Author: Lucas Meneghel Rodrigues <[email protected]> // Code was adapted from an MSDN sample. -// Usage: finish.exe [Host OS IP] +// Usage: finish.exe // MinGW's ws2tcpip.h only defines getaddrinfo and other functions only for // the case _WIN32_WINNT >= 0x0501.
@@ -21,24 +22,18 @@ #include <stdlib.h> #include <stdio.h> -#define DEFAULT_BUFLEN 512 #define DEFAULT_PORT "12323" - int main(int argc, char **argv) { WSADATA wsaData; - SOCKET ConnectSocket = INVALID_SOCKET; - struct addrinfo *result = NULL, - *ptr = NULL, - hints; + SOCKET ListenSocket = INVALID_SOCKET, ClientSocket = INVALID_SOCKET; + struct addrinfo *result = NULL, hints; char *sendbuf = "done"; - char recvbuf[DEFAULT_BUFLEN]; - int iResult; - int recvbuflen = DEFAULT_BUFLEN; + int iResult, iSendResult; // Validate the parameters - if (argc != 2) { - printf("usage: %s server-name\n", argv[0]); + if (argc != 1) { + printf("usage: %s", argv[0]); return 1; }
@@ -49,72 +44,84 @@ int main(int argc, char **argv) return 1; } - ZeroMemory( &hints, sizeof(hints) ); - hints.ai_family = AF_UNSPEC; + ZeroMemory(&hints, sizeof(hints)); + hints.ai_family = AF_INET; hints.ai_socktype = SOCK_STREAM; hints.ai_protocol = IPPROTO_TCP; + hints.ai_flags = AI_PASSIVE; // Resolve the server address and port - iResult = getaddrinfo(argv[1], DEFAULT_PORT, &hints, &result); - if ( iResult != 0 ) { + iResult = getaddrinfo(NULL, DEFAULT_PORT, &hints, &result); + if (iResult != 0) { printf("getaddrinfo failed: %d\n", iResult); WSACleanup(); return 1; } - // Attempt to connect to an address until one succeeds - for(ptr=result; ptr != NULL ;ptr=ptr->ai_next) { - - // Create a SOCKET for connecting to server - ConnectSocket = socket(ptr->ai_family, ptr->ai_socktype, - ptr->ai_protocol); - if (ConnectSocket == INVALID_SOCKET) { - printf("Error at socket(): %ld\n", WSAGetLastError()); - freeaddrinfo(result); - WSACleanup(); - return 1; - } - - // Connect to server. - iResult = connect( ConnectSocket, ptr->ai_addr, (int)ptr->ai_addrlen); - if (iResult == SOCKET_ERROR) { - closesocket(ConnectSocket); - ConnectSocket = INVALID_SOCKET; - continue; - } - break; + // Create a SOCKET for connecting to server + ListenSocket = socket(result->ai_family, result->ai_socktype, + result->ai_protocol); + if (ListenSocket == INVALID_SOCKET) { + printf("socket failed: %ld\n", WSAGetLastError()); + freeaddrinfo(result); + WSACleanup(); + return 1; + } + + // Setup the TCP listening socket + iResult = bind(ListenSocket, result->ai_addr, (int)result->ai_addrlen); + if (iResult == SOCKET_ERROR) { + printf("bind failed: %d\n", WSAGetLastError()); + freeaddrinfo(result); + closesocket(ListenSocket); + WSACleanup(); + return 1; } freeaddrinfo(result); - if (ConnectSocket == INVALID_SOCKET) { - printf("Unable to connect to server!\n"); + iResult = listen(ListenSocket, SOMAXCONN); + if (iResult == SOCKET_ERROR) { + printf("listen failed: %d\n", WSAGetLastError()); + closesocket(ListenSocket); WSACleanup(); return 1; } - // Send the ACK buffer - iResult = send( ConnectSocket, sendbuf, (int)strlen(sendbuf), 0 ); - if (iResult == SOCKET_ERROR) { - printf("send failed: %d\n", WSAGetLastError()); - closesocket(ConnectSocket); + // Accept a client socket + ClientSocket = accept(ListenSocket, NULL, NULL); + if (ClientSocket == INVALID_SOCKET) { + printf("accept failed: %d\n", WSAGetLastError()); + closesocket(ListenSocket); WSACleanup(); return 1; } - printf("Bytes Sent: %ld\n", iResult); + // No longer need the server socket + closesocket(ListenSocket); + + // Send the ack string to the client + iSendResult = send(ClientSocket, sendbuf, sizeof(sendbuf), 0); + if (iSendResult == SOCKET_ERROR) { + printf("send failed: %d\n", WSAGetLastError()); + closesocket(ClientSocket); + WSACleanup(); + return 1; + } + // Report the number of bytes sent + printf("Bytes sent: %d\n", iSendResult); - // shutdown the connection since no more data will be sent - iResult = shutdown(ConnectSocket, SD_SEND); + // Shutdown the connection since we're done + iResult = shutdown(ClientSocket, SD_SEND); if (iResult == SOCKET_ERROR) { printf("shutdown failed: %d\n", WSAGetLastError()); - closesocket(ConnectSocket); + closesocket(ClientSocket); WSACleanup(); return 1; } - // cleanup - closesocket(ConnectSocket); + // Cleanup + closesocket(ClientSocket); WSACleanup(); return 0;
client/tests/kvm/deps/finish.exe binary +0 -0
client/tests/kvm/kvm_utils.py +2 -2
@@ -635,7 +635,7 @@ def is_port_free(port): def find_free_port(start_port, end_port): """ - Return a free port in the range [start_port, end_port). + Return a host free port in the range [start_port, end_port]. @param start_port: First port that will be checked. @param end_port: Port immediately after the last one that will be checked.
@@ -648,7 +648,7 @@ def find_free_port(start_port, end_port): def find_free_ports(start_port, end_port, count): """ - Return count free ports in the range [start_port, end_port). + Return count of host free ports in the range [start_port, end_port]. @count: Initial number of ports known to be free in the range. @param start_port: First port that will be checked.
client/tests/kvm/scripts/unattended.py +30 -26
101 lines not on this page · raw message
client/tests/kvm/tests/unattended_install.py +22 -22
56 lines not on this page · raw message
client/tests/kvm/tests_base.cfg.sample +57 -9
218 lines not on this page · raw message
client/tests/kvm/unattended/Fedora-10.ks +6 -6
@@ -28,10 +28,10 @@ os.system('dhclient') os.system('chkconfig sshd on') os.system('iptables -F') os.system('echo 0 > /selinux/enforce') -port = 12323 -buf = 1024 -addr = ('10.0.2.2', port) -client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -client.connect(addr) -client.sendto('done', addr) +server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +server.bind(('', 12323)) +server.listen(1) +(client, addr) = server.accept() +client.send("done") client.close() +
client/tests/kvm/unattended/Fedora-11.ks +5 -6
@@ -28,11 +28,10 @@ os.system('dhclient') os.system('chkconfig sshd on') os.system('iptables -F') os.system('echo 0 > /selinux/enforce') -port = 12323 -buf = 1024 -addr = ('10.0.2.2', port) -client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -client.connect(addr) -client.sendto('done', addr) +server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +server.bind(('', 12323)) +server.listen(1) +(client, addr) = server.accept() +client.send("done") client.close() %end
client/tests/kvm/unattended/Fedora-12.ks +5 -6
@@ -28,11 +28,10 @@ os.system('dhclient') os.system('chkconfig sshd on') os.system('iptables -F') os.system('echo 0 > /selinux/enforce') -port = 12323 -buf = 1024 -addr = ('10.0.2.2', port) -client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -client.connect(addr) -client.sendto('done', addr) +server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +server.bind(('', 12323)) +server.listen(1) +(client, addr) = server.accept() +client.send("done") client.close() %end
client/tests/kvm/unattended/Fedora-8.ks +5 -6
@@ -28,10 +28,9 @@ os.system('dhclient') os.system('chkconfig sshd on') os.system('iptables -F') os.system('echo 0 > /selinux/enforce') -port = 12323 -buf = 1024 -addr = ('10.0.2.2', port) -client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -client.connect(addr) -client.sendto('done', addr) +server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +server.bind(('', 12323)) +server.listen(1) +(client, addr) = server.accept() +client.send("done") client.close()
client/tests/kvm/unattended/Fedora-9.ks +5 -6
@@ -28,10 +28,9 @@ os.system('dhclient') os.system('chkconfig sshd on') os.system('iptables -F') os.system('echo 0 > /selinux/enforce') -port = 12323 -buf = 1024 -addr = ('10.0.2.2', port) -client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -client.connect(addr) -client.sendto('done', addr) +server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +server.bind(('', 12323)) +server.listen(1) +(client, addr) = server.accept() +client.send("done") client.close()
client/tests/kvm/unattended/RHEL-3-series.ks +6 -6
@@ -27,10 +27,10 @@ import socket, os os.system('dhclient') os.system('chkconfig sshd on') os.system('iptables -F') -port = 12323 -buf = 1024 -addr = ('10.0.2.2', port) -client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -client.connect(addr) -client.sendto('done', addr) +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()
client/tests/kvm/unattended/RHEL-4-series.ks +5 -6
@@ -28,10 +28,9 @@ os.system('dhclient') os.system('chkconfig sshd on') os.system('iptables -F') os.system('echo 0 > /selinux/enforce') -port = 12323 -buf = 1024 -addr = ('10.0.2.2', port) -client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -client.connect(addr) -client.sendto('done', addr) +server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +server.bind(('', 12323)) +server.listen(1) +(client, addr) = server.accept() +client.send("done") client.close()
client/tests/kvm/unattended/RHEL-5-series.ks +5 -6
@@ -28,10 +28,9 @@ os.system('dhclient') os.system('chkconfig sshd on') os.system('iptables -F') os.system('echo 0 > /selinux/enforce') -port = 12323 -buf = 1024 -addr = ('10.0.2.2', port) -client = socket.socket(socket.AF_INET, socket.SOCK_STREAM) -client.connect(addr) -client.sendto('done', addr) +server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) +server.bind(('', 12323)) +server.listen(1) +(client, addr) = server.accept() +client.send("done") client.close()
client/tests/kvm/unattended/Sles11-64-autoinst.xml new file +898 -0
898 lines not on this page · raw message
client/tests/kvm/unattended/win2003-32.sif +1 -1
@@ -61,4 +61,4 @@ Command2="cmd /c net start telnet" Command3="cmd /c E:\setuprss.bat" Command4="cmd /c netsh interface ip set address local dhcp" - Command5="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe 10.0.2.2" + Command5="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe"
client/tests/kvm/unattended/win2003-64.sif +1 -1
@@ -61,4 +61,4 @@ Command2="cmd /c net start telnet" Command3="cmd /c E:\setuprss.bat" Command4="cmd /c netsh interface ip set address local dhcp" - Command5="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe 10.0.2.2" + Command5="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe"
client/tests/kvm/unattended/win2008-32-autounattend.xml +1 -1
@@ -140,7 +140,7 @@ </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>7</Order> - <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe 10.0.2.2</CommandLine> + <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe</CommandLine> </SynchronousCommand> </FirstLogonCommands> <OOBE>
client/tests/kvm/unattended/win2008-64-autounattend.xml +1 -1
@@ -149,7 +149,7 @@ </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>7</Order> - <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe 10.0.2.2</CommandLine> + <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe</CommandLine> </SynchronousCommand> </FirstLogonCommands> <OOBE>
client/tests/kvm/unattended/win2008-r2-autounattend.xml +1 -1
@@ -149,7 +149,7 @@ </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>7</Order> - <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe 10.0.2.2</CommandLine> + <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe</CommandLine> </SynchronousCommand> </FirstLogonCommands> <OOBE>
client/tests/kvm/unattended/win7-32-autounattend.xml +1 -1
@@ -146,7 +146,7 @@ <Order>6</Order> </SynchronousCommand> <SynchronousCommand wcm:action="add"> - <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe 10.0.2.2</CommandLine> + <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe</CommandLine> <Order>7</Order> </SynchronousCommand> </FirstLogonCommands>
client/tests/kvm/unattended/win7-64-autounattend.xml +1 -1
@@ -146,7 +146,7 @@ <Order>6</Order> </SynchronousCommand> <SynchronousCommand wcm:action="add"> - <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe 10.0.2.2</CommandLine> + <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe</CommandLine> <Order>7</Order> </SynchronousCommand> </FirstLogonCommands>
client/tests/kvm/unattended/winvista-32-autounattend.xml +1 -1
@@ -147,7 +147,7 @@ </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>7</Order> - <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe 10.0.2.2</CommandLine> + <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe</CommandLine> </SynchronousCommand> </FirstLogonCommands> </component>
client/tests/kvm/unattended/winvista-64-autounattend.xml +1 -1
@@ -148,7 +148,7 @@ </SynchronousCommand> <SynchronousCommand wcm:action="add"> <Order>7</Order> - <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe 10.0.2.2</CommandLine> + <CommandLine>%WINDIR%\System32\cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe</CommandLine> </SynchronousCommand> </FirstLogonCommands> </component>
client/tests/kvm/unattended/winxp32.sif +1 -1
@@ -70,4 +70,4 @@ [GuiRunOnce] Command0="cmd /c E:\setuprss.bat" Command1="cmd /c netsh interface ip set address local dhcp" - Command2="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe 10.0.2.2" + Command2="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe"
client/tests/kvm/unattended/winxp64.sif +1 -1
@@ -70,4 +70,4 @@ [GuiRunOnce] Command0="cmd /c E:\setuprss.bat" Command1="cmd /c netsh interface ip set address local dhcp" - Command2="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe 10.0.2.2" + Command2="cmd /c ping 10.0.2.2 -n 20 && A:\finish.exe"
Signature · 1 line
1.6.6.1
PATCH 2/2 KVM test: Support to SLES install
From: yogi <[email protected]>
Adds new entry "SUSE" in test_base file for sles and contains autoinst file for doing unatteneded Sles11 64-bit install.
--- client/tests/kvm/tests_base.cfg.sample | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-)
client/tests/kvm/tests_base.cfg.sample +22 -0
@@ -503,6 +503,28 @@ variants: md5sum = 2afee1b8a87175e6dee2b8dbbd1ad8e8 md5sum_1m = 768ca32503ef92c28f2d144f2a87e4d0 + - SLES: + no setup + shell_prompt = "^root@.*[\#\$]\s*$|#" + unattended_install: + pxe_image = "linux" + pxe_initrd = "initrd" + extra_params += " -bootp /pxelinux.0 -boot n" + kernel_args = "autoyast=floppy" + + variants: + - 11.64: + no setup + image_name = sles11-64 + cdrom=linux/SLES-11-DVD-x86_64-GM-DVD1.iso + md5sum = 50a2bd45cd12c3808c3ee48208e2586b + md5sum_1m = 00000951cab7c32e332362fc424c1054 + unattended_install: + unattended_file = unattended/Sles11-64-autoinst.xml + tftp = "images/sles11-64/tftpboot" + floppy = "images/sles11-64floppy.img" + pxe_dir = "boot/x86_64/loader" + - @Ubuntu: shell_prompt = "^root@.*[\#\$]\s*$"
Signature · 1 line
1.6.6.1
Re: [PATCH 2/2] KVM test: Support to SLES install
Quoted 5 lines · Lucas Meneghel Rodrigues
From: yogi <[email protected]>
Adds new entry "SUSE" in
test_basefile for sles and contains autoinst file for doing unatteneded Sles11 64-bit install.
Oh Yogi, by the way, could you please reorganize the opensuse session and add at least an autoyast file for opensuse 11.2 so I can actually test if we can get a successful installation? I tried to play with the XML file of SLES to see if I could get opensuse 11.2 installed, but it turns out that those config files are an endless XML nightmare and all I tried makes yast to die.
The mechanics of the whole thing are correct, I can get yast to start with no problems, but parsing the autoyast file makes the VM to hang. So I am fine with adding the patch, but it'd be nice to have an OS with irrestrict access that everybody could play with (opensuse). I don't have enough time to make it work on my own, so if you have some spare time, please work on this.
Quoted 46 lines
Signed-off-by Yogananth Subramanian <[email protected]>---
client/tests/kvm/tests_base.cfg.sample | 22 ++++++++++++++++++++++1 files changed, 22 insertions(+), 0 deletions(-)client/tests/kvm/tests_base.cfg.sample +0
-0@@ -503,6 +503,28 @@ variants:md5sum =
2afee1b8a87175e6dee2b8dbbd1ad8e8md5sum_1m=768ca32503ef92c28f2d144f2a87e4d0+ - SLES:
+ no setup
+ shell_prompt = "^root@.*[\#\$]\s*$|#"
+ unattended_install:
+ pxe_image = "linux"
+ pxe_initrd = "initrd"
+ extra_params += " -bootp /pxelinux.0 -boot n"
+ kernel_args = "autoyast=floppy"client/tests/kvm/tests_base.cfg.sample +14
-0+ + variants: + - 11.64: + no setup + image_name = sles11-64 + cdrom=linux/SLES-11-DVD-x86_64-GM-DVD1.iso + md5sum = 50a2bd45cd12c3808c3ee48208e2586b + md5sum_1m = 00000951cab7c32e332362fc424c1054 + unattended_install: + unattended_file = unattended/Sles11-64-autoinst.xml + tftp = "images/sles11-64/tftpboot" + floppy = "images/sles11-64floppy.img" + pxe_dir = "boot/x86_64/loader" +- @Ubuntu:
shell_prompt= "^root@.*[\#\$]\s*$"--
1.6.6.1--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Lucas
Re: [PATCH 2/2] KVM test: Support to SLES install
Quoted 15 lines · Lucas Meneghel Rodrigues
Quoted 5 lines · Lucas Meneghel Rodrigues
From: yogi <[email protected]>
Adds new entry "SUSE" in
test_basefile for sles and contains autoinst file for doing unatteneded Sles11 64-bit install.Oh Yogi, by the way, could you please reorganize the opensuse session and add at least an autoyast file for opensuse 11.2 so I can actually test if we can get a successful installation? I tried to play with the XML file of SLES to see if I could get opensuse 11.2 installed, but it turns out that those config files are an endless XML nightmare and all I tried makes yast to die.
Quoted 7 lines
The mechanics of the whole thing are correct, I can get yast to start with no problems, but parsing the autoyast file makes the VM to hang. So I am fine with adding the patch, but it'd be nice to have an OS with irrestrict access that everybody could play with (opensuse). I don't have enough time to make it work on my own, so if you have some spare time, please work on this.
sure Lucas, i will be happy to create autoyast file for opensuse too. Will work on tht patch and send it as soon as possible.
Quoted 49 lines
Quoted 46 lines
Signed-off-by Yogananth Subramanian <[email protected]>--- client/tests/kvm/tests_base.cfg.sample | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-)client/tests/kvm/tests_base.cfg.sample +22
-1@@ -503,6 +503,28 @@ variants: md5sum = 2afee1b8a87175e6dee2b8dbbd1ad8e8 md5sum_1m = 768ca32503ef92c28f2d144f2a87e4d0 + - SLES: + no setup + shell_prompt = "^root@.*[\#\$]\s*$|#" + unattended_install: + pxe_image = "linux" + pxe_initrd = "initrd" + extra_params += " -bootp /pxelinux.0 -boot n" + kernel_args = "autoyast=floppy" + + variants: + - 11.64: + no setup + image_name = sles11-64 + cdrom=linux/SLES-11-DVD-x86_64-GM-DVD1.iso + md5sum = 50a2bd45cd12c3808c3ee48208e2586b + md5sum_1m = 00000951cab7c32e332362fc424c1054 + unattended_install: + unattended_file = unattended/Sles11-64-autoinst.xml + tftp = "images/sles11-64/tftpboot" + floppy = "images/sles11-64floppy.img" + pxe_dir = "boot/x86_64/loader" + - @Ubuntu: shell_prompt = "^root@.*[\#\$]\s*$" --1.6.6.1
--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 2/2] KVM test: Support to SLES install
In reply to Lucas Meneghel RodriguesOn Wed, 10 Mar 2010 08:45:59 -0300
Lucas Meneghel Rodrigues <[email protected]> wrote:
Hi Yogi/Lucas
Thanks for including SLES guests support in KVM autotest.
I tried SLES guest install. After succsfull install of SLES guest first stage, again install started. Autotest keep installing first stage in a loop. I guess some thing needs to be changed here,
extra_params += " -bootp /pxelinux.0 -boot n"
Can you send a patch to fix this. Thanks in advance.
--SP
Quoted 40 lines
Signed-off-by Yogananth Subramanian <[email protected]>--- client/tests/kvm/tests_base.cfg.sample | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-)(quoted diff) +0
-0b/client/tests/kvm/tests_base.cfg.sample index c76470d..acb2076 100644
client/tests/kvm/tests_base.cfg.sample +18
-0@@ -503,6 +503,28 @@ variants: md5sum = 2afee1b8a87175e6dee2b8dbbd1ad8e8 md5sum_1m = 768ca32503ef92c28f2d144f2a87e4d0 + - SLES: + no setup + shell_prompt = "^root@.*[\#\$]\s*$|#" + unattended_install: + pxe_image = "linux" + pxe_initrd = "initrd" + extra_params += " -bootp /pxelinux.0 -boot n" + kernel_args = "autoyast=floppy" + + variants: + - 11.64: + no setup + image_name = sles11-64 + cdrom=linux/SLES-11-DVD-x86_64-GM-DVD1.iso + md5sum = 50a2bd45cd12c3808c3ee48208e2586b + md5sum_1m = 00000951cab7c32e332362fc424c1054 + unattended_install: + unattended_file =
unattended/Sles11-64-autoinst.xmlclient/tests/kvm/tests_base.cfg.sample +4
-0+ tftp = "images/sles11-64/tftpboot" + floppy = "images/sles11-64floppy.img" + pxe_dir = "boot/x86_64/loader" + - @Ubuntu: shell_prompt = "^root@.*[\#\$]\s*$"
Re: [Autotest] [PATCH 2/2] KVM test: Support to SLES install
Quoted 9 lines · pradeepkumar
On Wed, 10 Mar 2010 08:45:59 -0300
Lucas Meneghel Rodrigues <[email protected]> wrote:Hi Yogi/Lucas
Thanks for including SLES guests support in KVM autotest.
I tried SLES guest install. After succsfull install of SLES guest first stage, again install started. Autotest keep installing first stage in a loop. I guess some thing needs to be changed here,
I believe it is the delay between the installing reporting end of install and the reboot. I guess we need to omit this sleep time or make it smaller.
As a matter of fact, I added this parameter based on the fact your first version had a 10s sleep after the end of install was confirmed by the guest. As I don't have access to SLES, please try omitting the sleep time or make it smaller.
Quoted 52 lines
extra_params += " -bootp /pxelinux.0 -boot n"
Can you send a patch to fix this. Thanks in advance.
--SP
Quoted 31 lines
Signed-off-by Yogananth Subramanian <[email protected]>---
client/tests/kvm/tests_base.cfg.sample | 22 ++++++++++++++++++++++1 files changed, 22 insertions(+), 0 deletions(-)(quoted diff) +0
-0b/client/tests/kvm/tests_base.cfg.sample index c76470d..acb2076 100644
client/tests/kvm/tests_base.cfg.sample +0
-0@@ -503,6 +503,28 @@ variants:md5sum =
2afee1b8a87175e6dee2b8dbbd1ad8e8md5sum_1m=768ca32503ef92c28f2d144f2a87e4d0+ - SLES:
+ no setup
+ shell_prompt = "^root@.*[\#\$]\s*$|#"
+ unattended_install:
+ pxe_image = "linux"
+ pxe_initrd = "initrd"
+ extra_params += " -bootp /pxelinux.0 -boot n"
+ kernel_args = "autoyast=floppy"
+
+ variants:
+ - 11.64:
+ no setup
+ image_name = sles11-64
+ cdrom=linux/SLES-11-DVD-x86_64-GM-DVD1.iso
+ md5sum =50a2bd45cd12c3808c3ee48208e2586b
+ md5sum_1m =00000951cab7c32e332362fc424c1054
+ unattended_install:Quoted 9 lines
+ unattended_file =
unattended/Sles11-64-autoinst.xml
+ tftp = "images/sles11-64/tftpboot"
+ floppy = "images/sles11-64floppy.img"
+ pxe_dir = "boot/x86_64/loader" +
- @Ubuntu:
shell_prompt = "^root@.*[\#\$]\s*$"_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
Signature · 1 line
Lucas