Hello. I’m setting up a new server using Incus as my hypervisor.
I’ve found that my root partition was full after try to import a 500GB VM raw image (Windows 2012 one). I’ve found that /var/lib/incus/disks was full, so I stopped Incus, restarted it, but same thing happened. Then reboot the computer and now root seems ok in space. But now I have my containers stopped and when I try to start them I’m receiving
Error: Storage pool “default” unavailable on this server
so I did incus storage list
+---------+--------+-------------+---------+-------------+
| NAME | DRIVER | DESCRIPTION | USED BY | STATE |
+---------+--------+-------------+---------+-------------+
| default | lvm | | 6 | UNAVAILABLE |
+---------+--------+-------------+---------+-------------+
and then incus storage show default
config:
lvm.thinpool_name: IncusThinPool
lvm.vg_name: default
size: 894GiB
source: /var/lib/incus/disks/default.img
description: ""
name: default
driver: lvm
used_by:
- /1.0/images/fca0e03cf119fbee233ef4b2378f0a91233151274d788fba4d0feb118e3e31e3
- /1.0/instances/duplicati
- /1.0/instances/mydesktop
- /1.0/instances/samba
- /1.0/profiles/default
- /1.0/profiles/default-no-net
status: Unavailable
locations:
- none
pvdisplay and vgdisplay showing
--- Physical volume ---
PV Name /dev/sda1
VG Name vg-incus-pool
PV Size 894.25 GiB / not usable 2.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 228928
Free PE 228928
Allocated PE 0
PV UUID 1mDvU9-To4q-ro3C-IBln-Znjq-D4ny-ACFBnk
--- Physical Segments ---
Physical extent 0 to 228927:
FREE
--- Volume group ---
VG Name vg-incus-pool
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 894.25 GiB
PE Size 4.00 MiB
Total PE 228928
Alloc PE / Size 0 / 0
Free PE / Size 228928 / 894.25 GiB
VG UUID 9YhBmY-wsed-KImu-3zBJ-sLnr-GTwE-Zn06rR
I was getting crazy and then I’ve found that no default.img file exists, but
source: /var/lib/incus/disks/default.img in my storage config....
What could be happening?
EDIT3: trying incus admin recovery:
incus admin recover
This server currently has the following storage pools:
- default (backend="lvm", source="/var/lib/incus/disks/default.img")
Would you like to recover another storage pool? (yes/no) [default=no]:
The recovery process will be scanning the following storage pools:
- EXISTING: "default" (backend="lvm", source="/var/lib/incus/disks/default.img")
Would you like to continue with scanning for lost volumes? (yes/no) [default=yes]:
Scanning for unknown volumes...
Error: Failed validation request: Failed mounting pool "default": Failed to run: losetup --find --nooverlap --direct-io=on --show /var/lib/incus/disks/default.img: exit status 1 (losetup: /var/lib/incus/disks/default.img: failed to set up loop device: No such file or directory)
Original message:
Hello. I have imaged a Windows 2012r2 server using disk2vhd
.
Then converted it to raw using qemu-img convert -f vhdx -O raw
In my Rocky 9.5 server:
incus --version
6.12
rsync --version
rsync version 3.2.3 protocol version 31
Copyright (C) 1996-2020 by Andrew Tridgell, Wayne Davison, and others.
Web site: https://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, hardlinks, hardlink-specials, symlinks, IPv6, atimes,
batchfiles, inplace, append, ACLs, xattrs, optional protect-args, iconv,
symtimes, prealloc, stop-at, no crtimes
Optimizations:
SIMD, asm, openssl-crypto
Checksum list:
md5 md4 none
Compress list:
zstd lz4 zlibx zlib none
When I choose ‘1’ to begín the import process executing bin.linux.incus-migrate.x86_64
I’m getting this rsync error:
The local Incus server is the target [default=yes]:
Would you like to create a container (1) or virtual-machine (2)?: 2
Name of the new instance: w2012
Please provide the path to a disk, partition, or qcow2/raw/vmdk image file: /home/miguel/mnt/windows2012.raw
Does the VM support UEFI booting? [default=yes]:
Does the VM support UEFI Secure Boot? [default=yes]: no
Instance to be created:
Name: w2012
Project: default
Type: virtual-machine
Source: /home/miguel/mnt/windows2012.raw
Source format: raw
Config:
security.secureboot: "false"
Additional overrides can be applied at this stage:
1) Begin the migration with the above configuration
2) Override profile list
3) Set additional configuration options
4) Change instance storage pool or volume size
5) Change instance network
Please pick one of the options above [default=1]:
Error: Failed sending filesystem volume: Failed to rsync: exit status 12
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(228) [sender=3.2.3]
Rsync is working locally with and without sudo.