Skip to content

Comments

WiP: rework migrate to XCP-ng documentation#346

Open
AtaxyaNetwork wants to merge 16 commits intoxcp-ng:masterfrom
AtaxyaNetwork:master
Open

WiP: rework migrate to XCP-ng documentation#346
AtaxyaNetwork wants to merge 16 commits intoxcp-ng:masterfrom
AtaxyaNetwork:master

Conversation

@AtaxyaNetwork
Copy link
Contributor

Work in progress.

I added Prerequisites and Troubleshooting section, and rearrange/rewrite the other

Before submitting the pull request, you must agree with the following statements by checking both boxes with a 'x'.

  • "I accept that my contribution is placed under the CC BY-SA 2.0 license [1]."
  • "My contribution complies with the Developer Certificate of Origin [2]."

[1] https://creativecommons.org/licenses/by-sa/2.0/
[2] https://docs.xcp-ng.org/project/contributing/#developer-certificate-of-origin-dco

AtaxyaNetwork and others added 5 commits June 16, 2025 15:06
Signed-off-by: Cécile - AtaxyaNetwork <contact@ataxya.net>
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange  <contact@ataxya.net>
Signed-off-by: Cécile - AtaxyaNetwork <contact@ataxya.net>
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange  <contact@ataxya.net>
Signed-off-by: Cécile - AtaxyaNetwork <contact@ataxya.net>
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange  <contact@ataxya.net>
Signed-off-by: Cécile - AtaxyaNetwork <contact@ataxya.net>
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange  <contact@ataxya.net>
Signed-off-by: Cécile - AtaxyaNetwork <contact@ataxya.net>
AtaxyaNetwork and others added 7 commits June 16, 2025 15:08
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange <contact@ataxya.net>
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange <contact@ataxya.net>
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange <contact@ataxya.net>
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange <contact@ataxya.net>
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange <contact@ataxya.net>
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange <contact@ataxya.net>
Signed-off-by: Cécile - AtaxyaNetwork <contact@ataxya.net>
Signed-off-by: Cécile Morange <contact@ataxya.net>
Signed-off-by: Cécile - AtaxyaNetwork <contact@ataxya.net>
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange <contact@ataxya.net>
@AtaxyaNetwork
Copy link
Contributor Author

All suggestion are reviewed !

@stormi
Copy link
Member

stormi commented Jun 16, 2025

All suggestion are reviewed !

But it's still marked WIP. Main reason for which I haven't reviewed yet.

AtaxyaNetwork and others added 2 commits June 17, 2025 11:39
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange <contact@ataxya.net>
Co-authored-by: Thomas Moraine <thomas.moraine@vates.tech>
Signed-off-by: Cécile Morange <contact@ataxya.net>
@AtaxyaNetwork
Copy link
Contributor Author

@stormi it marked it as WiP because I didn't want someone merging it without having some proofreading and opinion from other people.

@stormi
Copy link
Member

stormi commented Jun 17, 2025

@stormi it marked it as WiP because I didn't want someone merging it without having some proofreading and opinion from other people.

Just ask people for review, we'll not merge until it's reviewed.

In our processes, WIP usually means "I still have work to do on this". So I usually wait before I review.

@rzr
Copy link
Contributor

rzr commented Dec 24, 2025

I noticed this PR has been stalling for months and has the WIP keyword, and base is outdated
please mark it as draft if it not supposed to be merged yet, it will help reviewers to focus on the mergeables ones.


### Uninstall Existing Guest Tools

To avoid conflicts with XCP-ng guest tools, uninstall any existing VM tools (such as VMware Tools or QEMU Guest Agent) from the VM.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example command lines will not hurt (at least for common OSes)

Before shutting down the VM, run this command to install the drivers:

```
dracut --add-drivers "xen-blkfront xen-netfront" --force
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is force really needed ? we could try without first eg:

dracut --add-drivers "xen-blkfront xen-netfront" \
|| dracut --add-drivers "xen-blkfront xen-netfront" --force

Next, run this command to convert the QCOW2 disk to a VHD format:

```
qemu-img convert -O vpc disk.qcow2 `uuidgen`.vhd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
qemu-img convert -O vpc disk.qcow2 `uuidgen`.vhd
qemu-img convert -p -O vpc disk.qcow2 `uuidgen`.vhd

This will show progress to user


`vhd-util check -n myvm.vhd` should return `myvm.vhd is valid`
```
scp thegenerateduuid.vhd ip.xcp-ng.server:/run/sr-mount/uuid-of-your-SR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
scp thegenerateduuid.vhd ip.xcp-ng.server:/run/sr-mount/uuid-of-your-SR
scp -v thegenerateduuid.vhd ip.xcp-ng.server:/run/sr-mount/uuid-of-your-SR/

- Check [here](../../installation/migrate-to-xcp-ng/#error-dracut-initqueue227-warning-devmapperol-root-does-not-exist-or-no-bootable-device)

* Boot the VM and find a way to enter in the virtual UEFI of the VM. Here, I type the Escape and F9,F10,F11,F12 keys like crazy. Select Boot Manager, you should see this window :
### Error "dracut-initqueue[227]: Warning: /dev/mapper/ol-root does not exist" (or no bootable device)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
### Error "dracut-initqueue[227]: Warning: /dev/mapper/ol-root does not exist" (or no bootable device)
### Error "dracut-initqueue: Warning: /dev/mapper/ol-root does not exist" (or no bootable device)

I believe 227 is a process ID, if yes it is misleading here

* Install Guest Tools and reboot. The reboot shouldn't take long, you don't have to redo step 13, the OS seems to have repair the boot sequence by itself.
for x in sys proc run dev tmp; do mount --bind /$x /mnt/$x; done
```
Check your fstab to see the exact layout of your partition!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Check your fstab to see the exact layout of your partition!
Check your /etc/fstab to see the exact layout of your partition!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants