I've been getting a Xen hypervisor configured on a 4 year old dell precision tower. I started with Debian Buster, following the installation guide, then configuring the network and installing xen-tools. I am now installing the domU debian guest (Buster again) on a logical volume which I will use as my Plex server (which currently resides on my Celeron based NAS build). I am using the config file that I found here: http://ftp.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/xen/. The domain is created successfully, and when I attach to the console I find the debian installer running. The process goes smoothly until I try to write partitions on my logical volume (40GB within a 4TB physical volume). The partition scheme sets up a 39GB root drive on partition 1 and a 1GB swap partition on 5. I consistently get an error when it tries to write the partitions that:
The creation of swap space in partition #5 of Virtual disk 1 (xvda) failed.
I have seen references that say to use a swap partition on a separate disk, but I don't know how to do that and the references that give that note don't give any corresponding hints on how to do that (manual partitioning? Guided?). Should I manually create partitions rather than letting the installer create them automatically, and if so how do I get the installer to use the partitions I created? If I add another disk for the swap partition in the domain.cfg file is there some way to manually instruct the installer to use it rather than divide the logical volume into the two partitions?
Thanks for any insight . . I've been searching and reading for two days and if I found the answer along the way I either did not understand it well enough to make it work, or perhaps even realize that I saw an answer.
Here is the line config file entry for the drive:
disk = ['phy:/dev/vg0/PlexGuest_Data,xvda,w']
And fdisk -l shows it as existing with logical sector size of 512 bytes and physical sectors at 4096 bytes. One other thing that might be related is that after I exit the installer and am back in the host system terminal window (ssh from my Windows laptop using WSL2) fdisk -l does not return anything, like some process on the host side has been corrupted.
What could I do differently? This is my 4th try using a variety of setups, sometimes with an lv on the same physical disk that the host system is on, tried with a separate disk configured as a logical volume, and this time as the logical volume on a raid pool, but each time I get this same error.