Nicolas JAN created JENKINS-13948: ------------------------------------- Summary: VirtualBox Integration Problem Key: JENKINS-13948 URL: https://issues.jenkins-ci.org/browse/JENKINS-13948 Project: Jenkins Issue Type: Bug Components: core Affects Versions: current Environment: Ubuntu Desktop 12.04 64 bits with Jenkins 1.466 hosted on tomcat7 (ubuntu package) Reporter: Nicolas JAN Attachments: test Config [Jenkins].png
Hi, I have a job which permits me to restore and start a vm (VirtualBox). This job calls this shell command : vboxmanage startvm "UbuntuDev" --type headless This command functions correctly in a shell console. When I launch a build, this build is on Success and all output messages are good : [workspace] $ /bin/sh -xe /tmp/tomcat7-tomcat7-tmp/hudson286650196961541593.sh + vboxmanage startvm UbuntuDev --type headless Waiting for VM "UbuntuDev" to power on... VM "UbuntuDev" has been successfully started. But when I ping the VM, the VM doesn't respond. So, I add 2 shell commands (one before and another one after) to get VM state : vboxmanage showvminfo "UbuntuDev" When I launch the build, The last shell command indicate the VM is running : [workspace] $ /bin/sh -xe /tmp/tomcat7-tomcat7-tmp/hudson3800152253048004421.sh + vboxmanage showvminfo UbuntuDev Name: UbuntuDev Guest OS: Ubuntu UUID: ebb824d8-d6aa-42d3-8cf1-eafb9d50d46a Config file: /home/all/VirtualBox/VMs/UbuntuDev/UbuntuDev.vbox Snapshot folder: /home/all/VirtualBox/VMs/UbuntuDev/Snapshots Log folder: /home/all/VirtualBox/VMs/UbuntuDev/Logs Hardware UUID: ebb824d8-d6aa-42d3-8cf1-eafb9d50d46a Memory size: 512MB Page Fusion: off VRAM size: 12MB CPU exec cap: 100% HPET: off Chipset: piix3 Firmware: BIOS Number of CPUs: 1 Synthetic Cpu: off CPUID overrides: None Boot menu mode: message and menu Boot Device (1): Floppy Boot Device (2): DVD Boot Device (3): HardDisk Boot Device (4): Not Assigned ACPI: on IOAPIC: off PAE: on Time offset: 0 ms RTC: UTC Hardw. virt.ext: on Hardw. virt.ext exclusive: on Nested Paging: on Large Pages: off VT-x VPID: on State: aborted (since 2012-05-30T07:45:43.000000000) Monitor count: 1 3D Acceleration: off 2D Video Acceleration: off Teleporter Enabled: off Teleporter Port: 0 Teleporter Address: Teleporter Password: Storage Controller Name (0): Contrôleur IDE Storage Controller Type (0): PIIX4 Storage Controller Instance Number (0): 0 Storage Controller Max Port Count (0): 2 Storage Controller Port Count (0): 2 Storage Controller Bootable (0): on Storage Controller Name (1): Contrôleur SATA Storage Controller Type (1): IntelAhci Storage Controller Instance Number (1): 0 Storage Controller Max Port Count (1): 30 Storage Controller Port Count (1): 1 Storage Controller Bootable (1): on Contrôleur IDE (1, 0): Empty Contrôleur SATA (0, 0): /home/all/VirtualBox/VMs/UbuntuDev/UbuntuDev.vdi (UUID: 232df65c-d64e-45cd-b0ba-aa4f79bc3e85) NIC 1: MAC: 0800274EA33B, Attachment: Bridged Interface 'eth0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny NIC 2: disabled NIC 3: disabled NIC 4: disabled NIC 5: disabled NIC 6: disabled NIC 7: disabled NIC 8: disabled Pointing Device: USB Tablet Keyboard Device: PS/2 Keyboard UART 1: disabled UART 2: disabled Audio: enabled (Driver: Null, Controller: AC97) Clipboard Mode: Bidirectional VRDE: disabled USB: enabled USB Device Filters: <none> Available remote USB devices: <none> Currently Attached USB Devices: <none> Shared folders: <none> VRDE Connection: not active Clients so far: 0 Guest: Configured memory balloon size: 0 MB OS type: Ubuntu Additions run level: 0 Guest Facilities: No active facilities. [workspace] $ /bin/sh -xe /tmp/tomcat7-tomcat7-tmp/hudson286650196961541593.sh + vboxmanage startvm UbuntuDev --type headless Waiting for VM "UbuntuDev" to power on... VM "UbuntuDev" has been successfully started. [workspace] $ /bin/sh -xe /tmp/tomcat7-tomcat7-tmp/hudson2015171658235852148.sh + vboxmanage showvminfo UbuntuDev Name: UbuntuDev Guest OS: Ubuntu UUID: ebb824d8-d6aa-42d3-8cf1-eafb9d50d46a Config file: /home/all/VirtualBox/VMs/UbuntuDev/UbuntuDev.vbox Snapshot folder: /home/all/VirtualBox/VMs/UbuntuDev/Snapshots Log folder: /home/all/VirtualBox/VMs/UbuntuDev/Logs Hardware UUID: ebb824d8-d6aa-42d3-8cf1-eafb9d50d46a Memory size: 512MB Page Fusion: off VRAM size: 12MB CPU exec cap: 100% HPET: off Chipset: piix3 Firmware: BIOS Number of CPUs: 1 Synthetic Cpu: off CPUID overrides: None Boot menu mode: message and menu Boot Device (1): Floppy Boot Device (2): DVD Boot Device (3): HardDisk Boot Device (4): Not Assigned ACPI: on IOAPIC: off PAE: on Time offset: 0 ms RTC: UTC Hardw. virt.ext: on Hardw. virt.ext exclusive: on Nested Paging: on Large Pages: off VT-x VPID: on State: running (since 2012-05-30T12:30:04.559000000) Monitor count: 1 3D Acceleration: off 2D Video Acceleration: off Teleporter Enabled: off Teleporter Port: 0 Teleporter Address: Teleporter Password: Storage Controller Name (0): Contrôleur IDE Storage Controller Type (0): PIIX4 Storage Controller Instance Number (0): 0 Storage Controller Max Port Count (0): 2 Storage Controller Port Count (0): 2 Storage Controller Bootable (0): on Storage Controller Name (1): Contrôleur SATA Storage Controller Type (1): IntelAhci Storage Controller Instance Number (1): 0 Storage Controller Max Port Count (1): 30 Storage Controller Port Count (1): 1 Storage Controller Bootable (1): on Contrôleur IDE (1, 0): Empty Contrôleur SATA (0, 0): /home/all/VirtualBox/VMs/UbuntuDev/UbuntuDev.vdi (UUID: 232df65c-d64e-45cd-b0ba-aa4f79bc3e85) NIC 1: MAC: 0800274EA33B, Attachment: Bridged Interface 'eth0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny NIC 2: disabled NIC 3: disabled NIC 4: disabled NIC 5: disabled NIC 6: disabled NIC 7: disabled NIC 8: disabled Pointing Device: USB Tablet Keyboard Device: PS/2 Keyboard UART 1: disabled UART 2: disabled Audio: enabled (Driver: Null, Controller: AC97) Clipboard Mode: Bidirectional Video mode: 640x480x32 VRDE: disabled USB: enabled USB Device Filters: <none> Available remote USB devices: <none> Currently Attached USB Devices: <none> Shared folders: <none> VRDE Connection: not active Clients so far: 0 Guest: Configured memory balloon size: 0 MB OS type: Ubuntu Additions run level: 0 Guest Facilities: No active facilities. Finished: SUCCESS When I add in the last position, a shell command to sleep (sleep 200) and I launch a build. After few secondes, the VM responds to the ping. When the sleep is finished, the VM does not respond to the ping. I have tested on Windows and I don't have the problem. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira