Skip to content

Xcp-ng 8.2.1 - issues reverting to vm snapshot #6941

Closed

Description

@AlexanderKgr
ISSUE TYPE
  • Bug Report
COMPONENT NAME
Vm restore
CLOUDSTACK VERSION
4.17.1.0
CONFIGURATION

Advanced Networking

OS / ENVIRONMENT

Ubuntu server 20.04

SUMMARY

When trying to restore a "disk" vm snapshot and vm is poweroff i have the following message

0-02-05-e01893be44079cb86b45ad152a3b507ff7dd27d7b995f9416b0a92e0ac7e4cc4_e6fab0de0573277d

and from the cs logs

0-02-05-2156f986e60bfd407fb9a5fa9d2a803e9804c45d28d1722b88f23f0e39f7362d_d8f125d0384ac741

When trying to restore a "disk" vm and the vm is powered off from console i have the following message

0-02-05-783b345223258c4eee84888d8861429b1f552fa233536ac90152e9141ab0359d_45cd3ca2ad89b7cb

Which is normal is some consideration

STEPS TO REPRODUCE
Create a vm, take a disk snapshot and try to restore.
You will have the error i describe
EXPECTED RESULTS
Restore vm to snapshot
ACTUAL RESULTS
Error messages

Activity

  1. AlexanderKgr commented on Dec 2, 2022

    @AlexanderKgr
    Author

    snapshot with memory works as it should

  2. DaanHoogland commented on Dec 2, 2022

    @DaanHoogland
    Contributor

    @AlexanderKgr you can revert a disk to a disk snapshot and a vm to a vm snapshot. It seems you are trying to revert a vm to a disk snapshot. Is that correct?
    Also you are describing in both examples restoring a powered off vm to a disk snapshot .
    Am I misunderstanding your scenarios?

  3. AlexanderKgr commented on Dec 2, 2022

    @AlexanderKgr
    Author

    Let me clear this.
    1st scenario tried to restore a disk snapshot while the instance is off (from cloudstack and from xen orchestra)
    Received the error that hypervisor doesn't support guest os - while the instance was working normaly if booted.
    It was for a colleague that he wanted to revert his instance to a previous state.
    So tried the 2nd scenario.
    Shuted down the instance only from console and tried to restored it from xen orchestra, where there wasn't any snapshot.
    Tried from cloudstack to restore and i had the error that i couldn't restore disk in a running instance which is normal.

    Tried scenarios with disk and memory and everything is working.

    Summing up "disk" snapshots with xcp-ng does not work!
    Please try it.

  4. AlexanderKgr commented on Dec 19, 2022

    @AlexanderKgr
    Author

    Anyone?

  5. DaanHoogland commented on Dec 20, 2022

    @DaanHoogland
    Contributor

    @AlexanderKgr it might help to ask on the users mailing list

  6. weizhouapache commented on Jan 13, 2023

    @weizhouapache
    Member

    @AlexanderKgr
    guest os mappings for 'Ubuntu 20.04 LTS" are missing for xenserver and vmware.
    please update the template guest os type to "Ubuntu 18.04 LTS" and retry.
    We will create a fix

  7. moved this to 👀 Review in ACS Backlogon Jan 13, 2023
  8. weizhouapache commented on Jan 13, 2023

    @weizhouapache
    Member

    the os mappings were added in #4672, but it was broken by #5911
    fix: #7095

  9. added this to the 4.18.0.0 milestone on Jan 16, 2023
  10. moved this from 👀 Review to Daan's List in ACS Backlogon Jan 24, 2023
  11. MartinEmrich commented on Oct 20, 2023

    @MartinEmrich

    I experienced this with ACS 4.18.1 and XCP-ng as a hypervisor.

    (i-39-6822-VM_VS_20231020072617) Revert VM: i-39-6822-VM to snapshot: i-39-6822-VM_VS_20231020072617 failed due to Hypervisor com.cloud.hypervisor.xenserver.resource.XenServer650Resource doesn't support guest OS type Debian GNU/Linux 12 (64-bit). you can choose 'Other install media' to run it as HVM
    

    The message is IMHO wrong, the VM with Debian 12 worked fine before.

    Could you reopen the issue? Or shall I create a new one?

  12. weizhouapache commented on Oct 20, 2023

    @weizhouapache
    Member

    @MartinEmrich
    please create a new issue and link to this. thanks

  13. MartinEmrich commented on Oct 20, 2023

    @MartinEmrich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions