Bug 1853408
| Summary: | [machines] The VM failed to reboot after click the reboot button on the installation dialog for PXE | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Xianghua Chen <xchen> |
| Component: | cockpit-appstream | Assignee: | Katerina Koukiou <kkoukiou> |
| Status: | CLOSED ERRATA | QA Contact: | Xianghua Chen <xchen> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.3 | CC: | mpitt, wshi, ymao, yunyang |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-04 03:09:56 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Xianghua regarding the issue with the VM running a PXE installation which shuts down when reboot is issued I sent a PR upstream: https://github.com/cockpit-project/cockpit/pull/14382 Regarding the non-detached cdrom the following is the expected behavior: * After virt-install process exists, which happens on shutdown/restart it changes the boot order so that the next boot will be from the created disk and not from the chrom or network in the PXE case. * The CDROM device will still appear in the disks list, but without the ISO source specified. So the installation XML contains the cdrom like this: ``` <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/var/lib/libvirt/novell.iso' index='1'/> <backingStore/> <target dev='sda' bus='sata'/> <readonly/> <alias name='sata0-0-0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> ``` Whilst the after-installation XML contains the cdrom like this: ``` <disk type='file' device='cdrom'> <driver name='qemu'/> <target dev='sda' bus='sata'/> <readonly/> <alias name='sata0-0-0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> ``` You can confirm that this is the original virt-install behavior and Cockpit Machines does not diverge if you run this by CLI and monitor accordingly: virt-install --connect qemu:///system \ --name subVmTestCreate1 --os-variant fedora28 --memory 256 \ --quiet --disk size=0.25,format=qcow2 --noautoconsole --wait -1 \ --cdrom /var/lib/libvirt/novell.iso \ --graphics spice,listen=127.0.0.1 --graphics vnc,listen=127.0.0.1 Verified with package:
cockpit-machines-224-1.el8.noarch
Step:
1. Login cockpit with root and open VM creation dialog
2. Input the name of VM.
Then, choose 'Network Boot(PXE)' for the installation source type, and choose the network card which can connect to the network for the installation source.(eg: eno1)
Choose Operating System and click 'Create' button to create the VM.
3. Install the vm accordingly and click reboot on the installation dialog at last
4. Try to use "Local Install Media" instead of PXE, and click reboot on the installation dialog at last
After step 3, the vm is reboot, and the Boot Order" on Overview tab is changed to disk automatically.
After step 4, the vm can be reboot, and CDROM device will still appear in the disks list, but without the ISO source specified.
So verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (cockpit-appstream bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:4705 |
Description of problem: The VM failed to reboot after click the reboot button on the installation dialog for PXE Version-Release number of selected component (if applicable): cockpit-machines-222.1-1.el8.noarch libvirt-dbus-1.3.0-2.module+el8.3.0+6423+e4cb6418.x86_64 How reproducible: 100% Steps to Reproduce: 1. Login cockpit with root and open VM creation dialog 2. Input the name of VM. Then, choose 'Network Boot(PXE)' for the installation source type, and choose the network card which can connect to the network for the installation source.(eg: eno1) Choose Operating System and click 'Create' button to create the VM. 3. Install the vm accordingly and click reboot on the installation dialog at last 4. Try to use "Local Install Media" instead of PXE, and click reboot on the installation dialog at last Actual results: After step 3, the vm is shut down instead of reboot, and the Boot Order" on Overview tab is not changed to disk automatically After step 4, the vm can be reboot, but the cdrom can't be detached automatically Expected results: After step 3, the vm should reboot and the "Boot Order" on Overview tab should be changed to disk automatically. After step 4, the cdrom should be detached automatically. Additional info: According to bug1750637, the cdrom can be detached after reboot when using local install media, so the detach problem is introduced again for version 222, but it is ok to reboot.