Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
AlexanderKgr opened this issue Dec 2, 2022 · 10 comments · Fixed by #7095
Closed

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

AlexanderKgr opened this issue Dec 2, 2022 · 10 comments · Fixed by #7095

Comments

@AlexanderKgr
Copy link

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
@AlexanderKgr
Copy link
Author

snapshot with memory works as it should

@DaanHoogland
Copy link
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?

@AlexanderKgr
Copy link
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.

@AlexanderKgr
Copy link
Author

Anyone?

@DaanHoogland
Copy link
Contributor

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

@weizhouapache
Copy link
Member

weizhouapache commented Jan 13, 2023

@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

@weizhouapache weizhouapache linked a pull request Jan 13, 2023 that will close this issue
12 tasks
@weizhouapache weizhouapache moved this to 👀 Review in ACS Backlog Jan 13, 2023
@weizhouapache
Copy link
Member

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

@DaanHoogland DaanHoogland added this to the 4.18.0.0 milestone Jan 16, 2023
@weizhouapache weizhouapache moved this from 👀 Review to Daan's List in ACS Backlog Jan 24, 2023
@MartinEmrich
Copy link

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?

@weizhouapache
Copy link
Member

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

@MartinEmrich
Copy link

@weizhouapache done: #8123

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants