Hi,
I have Ubuntu LXD 4.4 stable and created a LXC VM with Windows Server 2019, like described in Running virtual machines with LXD 4.0
The VM is running just fine but if I try to publish the VM I always get IO error message from qemu-img convert
:
user@lxd:~$ lxc publish win2k19-new --alias win2k19-new
Error: Failed converting image to qcow2: Failed to run: qemu-img convert -c -O qcow2 /var/snap/lxd/common/lxd/storage-pools/pool2/virtual-machines/win2k19-new/root.img /var/snap/lxd/common/lxd/images/lxd_export_373165696/rootfs.img: qemu-img: error while reading at byte 705429504: Input/output error
Also I can’t lxc copy
the image or directly copy, rsync or tar.gz the rootfs.img
- it always fails with IO error.
I already tried with different storage pools on different HDD/SSD disks. The pool is using btrfs, but also I got the same error with zfs.
Also I run btrfsck
on the on the pools, but it reported no errors.
Currently I don’t know what to do anymore and hope someone can help me out here.
user@lxd:~$ lxc storage list
+---------+-------------+--------+---------------------------------------------------+---------+
| NAME | DESCRIPTION | DRIVER | SOURCE | USED BY |
+---------+-------------+--------+---------------------------------------------------+---------+
| default | | btrfs | /var/snap/lxd/common/lxd/disks/default.img | 2 |
+---------+-------------+--------+---------------------------------------------------+---------+
| pool2 | | btrfs | /media/user/8f0cfae9-0ea7-4cc3-bc44-457dcb07d457/ | 1 |
+---------+-------------+--------+---------------------------------------------------+---------+
user@lxd:~$ lxc config show win2k19-new --expanded
architecture: x86_64
config:
boot.autostart: "false"
limits.cpu: "2"
limits.memory: 4GB
security.secureboot: "false"
volatile.eth0.hwaddr: 00:16:3e:4e:0a:4f
volatile.last_state.power: STOPPED
volatile.vm.uuid: 4c81c67a-e210-4fc7-913f-8cb4f84e6fa6
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: pool2
size: 256GB
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""
user@lxd:~$ lxc profile show default
config:
boot.autostart: "false"
description: Default LXD profile
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
name: default
used_by:
- /1.0/instances/win2k19
- /1.0/instances/win2k19-new
Please let me know if you need more information about the system.