Changeset 1649 for honeyclient/trunk/t
- Timestamp:
- 07/01/08 23:42:30 (5 months ago)
- Files:
-
- honeyclient/trunk/t/honeyclient_manager_vm.t (modified) (3 diffs)
- honeyclient/trunk/t/test_vm-livecd (copied) (copied from honeyclient/trunk/t/test_vm)
- honeyclient/trunk/t/test_vm-livecd/install-x86-minimal-2007.0-r1.iso (added)
- honeyclient/trunk/t/test_vm-livecd/nvram (modified) (previous)
- honeyclient/trunk/t/test_vm-livecd/winXPPro.vmx (modified) (3 diffs)
- honeyclient/trunk/t/test_vm/winXPPro.vmx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
honeyclient/trunk/t/honeyclient_manager_vm.t
r1590 r1649 117 117 use DateTime::HiRes; 118 118 119 # Make sure Fcntl loads. 120 BEGIN { use_ok('Fcntl', qw(O_RDONLY)) or diag("Can't load Fcntl package. Check to make sure the package library is correctly listed within the path."); } 121 require_ok('Fcntl'); 122 use Fcntl qw(O_RDONLY); 119 # Make sure Text::DHCPLeases loads. 120 BEGIN { use_ok('Text::DHCPLeases') or diag("Can't load Text::DHCPLeases package. Check to make sure the package library is correctly listed within the path."); } 121 require_ok('Text::DHCPLeases'); 122 use Text::DHCPLeases; 123 124 # Make sure DateTime::Format::Natural loads. 125 BEGIN { use_ok('DateTime::Format::Natural') or diag("Can't load DateTime::Format::Natural package. Check to make sure the package library is correctly listed within the path."); } 126 require_ok('DateTime::Format::Natural'); 127 use DateTime::Format::Natural; 123 128 124 129 # Make sure Config::General loads. … … 761 766 namespace => "HoneyClient::Manager::VM"); 762 767 my ($stub, $som, $URL); 763 my $testVM = $ENV{PWD} . "/" . getVar(name => "test_vm_config ",768 my $testVM = $ENV{PWD} . "/" . getVar(name => "test_vm_config_livecd", 764 769 namespace => "HoneyClient::Manager::VM::Test"); 765 770 … … 777 782 $som = $stub->startVM(config => $testVM); 778 783 779 # Wait 10 seconds, for the DHCP server to give the testVM784 # Wait 240 seconds, for the DHCP server to give the testVM 780 785 # a DHCP lease. 781 sleep ( 10);786 sleep (240); 782 787 783 788 # Get the IP address of the test VM. honeyclient/trunk/t/test_vm-livecd/winXPPro.vmx
r1008 r1649 8 8 ide0:0.mode = "persistent" 9 9 ide1:0.present = "TRUE" 10 ide1:0.fileName = " auto detect"11 ide1:0.deviceType = " atapi-cdrom"10 ide1:0.fileName = "install-x86-minimal-2007.0-r1.iso" 11 ide1:0.deviceType = "cdrom-image" 12 12 floppy0.fileName = "/dev/fd0" 13 13 usb.present = "FALSE" … … 21 21 powerType.reset = "soft" 22 22 23 ide1:0.startConnected = " FALSE"23 ide1:0.startConnected = "TRUE" 24 24 floppy0.startConnected = "FALSE" 25 25 redoLogDir = "." 26 26 27 uuid.location = "56 4d a4 e9 36 ce 79 71-8e bc 38 d2 b8 3e ed ea"28 uuid.bios = "56 4d a4 e9 36 ce 79 71-8e bc 38 d2 b8 3e ed ea"27 uuid.location = "56 4d 67 c7 da f3 e5 cd-5a dc c8 79 9d 00 35 81" 28 uuid.bios = "56 4d 67 c7 da f3 e5 cd-5a dc c8 79 9d 00 35 81" 29 29 30 30 Ethernet0.present = "TRUE" 31 31 32 32 Ethernet0.addressType = "generated" 33 ethernet0.generatedAddress = "00:0c:29: 3e:ed:ea"33 ethernet0.generatedAddress = "00:0c:29:00:35:81" 34 34 ethernet0.generatedAddressOffset = "0" 35 35 … … 40 40 41 41 Ethernet0.connectionType = "hostonly" 42 43 uuid.action = "create" honeyclient/trunk/t/test_vm/winXPPro.vmx
r1008 r1649 1 1 #!/usr/bin/vmware 2 3 Ethernet0.addressType = "generated" 4 Ethernet0.connectionType = "hostonly" 5 Ethernet0.present = "TRUE" 6 Ethernet0.startConnected = "TRUE" 2 7 config.version = "7" 3 virtualHW.version = "3" 4 scsi0.present = "TRUE" 5 memsize = "256" 6 ide0:0.present = "TRUE" 8 displayName = "testVM" 9 ethernet0.generatedAddress = "00:0c:29:e2:08:e8" 10 ethernet0.generatedAddressOffset = "0" 11 floppy0.fileName = "/dev/fd0" 12 floppy0.startConnected = "FALSE" 13 guestOS = "winxppro" 14 ide0:0.deviceType = "ata-hardDisk" 7 15 ide0:0.fileName = "winXPPro.vmdk" 8 16 ide0:0.mode = "persistent" 17 ide0:0.present = "TRUE" 18 ide0:0.redo = "" 19 ide1:0.deviceType = "atapi-cdrom" 20 ide1:0.fileName = "auto detect" 9 21 ide1:0.present = "TRUE" 10 ide1:0. fileName = "auto detect"11 ide1:0.deviceType = "atapi-cdrom"12 floppy0.fileName = "/dev/fd0"13 usb.present = "FALSE"14 displayName = "testVM"15 guestOS = "winxppro"22 ide1:0.startConnected = "FALSE" 23 memsize = "256" 24 powerType.powerOff = "soft" 25 powerType.powerOn = "soft" 26 powerType.reset = "soft" 27 powerType.suspend = "soft" 16 28 priority.grabbed = "normal" 17 29 priority.ungrabbed = "normal" 18 powerType.powerOff = "soft"19 powerType.powerOn = "soft"20 powerType.suspend = "soft"21 powerType.reset = "soft"22 23 ide1:0.startConnected = "FALSE"24 floppy0.startConnected = "FALSE"25 30 redoLogDir = "." 26 27 uuid.location = "56 4d a4 e9 36 ce 79 71-8e bc 38 d2 b8 3e ed ea" 28 uuid.bios = "56 4d a4 e9 36 ce 79 71-8e bc 38 d2 b8 3e ed ea" 29 30 Ethernet0.present = "TRUE" 31 32 Ethernet0.addressType = "generated" 33 ethernet0.generatedAddress = "00:0c:29:3e:ed:ea" 34 ethernet0.generatedAddressOffset = "0" 35 36 Ethernet0.startConnected = "TRUE" 37 38 ide0:0.redo = "" 39 ide0:0.deviceType = "ata-hardDisk" 40 41 Ethernet0.connectionType = "hostonly" 31 scsi0.present = "TRUE" 32 usb.present = "FALSE" 33 uuid.bios = "56 4d 32 85 a0 59 c7 f7-64 37 b9 78 9f e2 08 e8" 34 uuid.location = "56 4d 32 85 a0 59 c7 f7-64 37 b9 78 9f e2 08 e8" 35 virtualHW.version = "3"
