I have a VM with Debian installed to SCSI disk and I would convert it to VIRTIO. The VM is running inside a Proxmox VE 5.3-12 server.
I have detached the disk and re-added it on the VirtIo bus device. I have changed the boot order to bot from the VirtIo disk.
The /etc/fstab file is unchanged as the virtio disk has the same UUID:
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=82686cca-5f45-4544-bf04-e034174ea20f / ext4 errors=remount-ro 0 1
# swap
UUID=a6a8fc8c-2f69-4925-b904-1ad871fa657b none swap sw 0 0
When I start the server again, it does not boot. I see the following errors in the VM console:
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /run on /root/dev failed: No such file or directory
run-init: opening console: No such file or directory
Target filesystem doesn't have requested /sbin/init.
run-init: opening console: No such file or directory
run-init: opening console: No such file or directory
run-init: opening console: No such file or directory
run-init: opening console: No such file or directory
No Init found. Try passing init= bootarg.
BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
(initramfs)
With blkid I can see that the disk is there as /dev/vda1:
(initramfs) blkid
/dev/vda1: UUID="82686cca-5f45-4544-bf04-e034174ea20f" TYPE="ext4" PARTUUID="d6022cd6-01"
/dev/vda5: UUID="a6a8fc8c-2f69-4925-b904-1ad871fa657b" TYPE="swap" PARTUUID="d6022cd6-05"
but cannot be mounted:
(initramfs) mkdir /tmp/aaa
(initramfs) mount /dev/vda1 /tmp/aaa
[ 378.110453] EXT4-fs (vda1): couldn't mount as ext3 due to feature incompatibilities
[ 378.110453] EXT4-fs (vda1): couldn't mount as ext2 due to feature incompatibilities
(initramfs) mount -t ext4 /dev/vda1 /tmp/aaa
mount: mounting /dev/vda1 on /tmp/foo failed: Device or resource busy
Can someone give me a hint on how to proceed to convert the SCSI virtual hard disk to Virtio ?
Any help would be sincerely appreciated...
Apax
I have detached the disk and re-added it on the VirtIo bus device. I have changed the boot order to bot from the VirtIo disk.
The /etc/fstab file is unchanged as the virtio disk has the same UUID:
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=82686cca-5f45-4544-bf04-e034174ea20f / ext4 errors=remount-ro 0 1
# swap
UUID=a6a8fc8c-2f69-4925-b904-1ad871fa657b none swap sw 0 0
When I start the server again, it does not boot. I see the following errors in the VM console:
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /run on /root/dev failed: No such file or directory
run-init: opening console: No such file or directory
Target filesystem doesn't have requested /sbin/init.
run-init: opening console: No such file or directory
run-init: opening console: No such file or directory
run-init: opening console: No such file or directory
run-init: opening console: No such file or directory
No Init found. Try passing init= bootarg.
BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
(initramfs)
With blkid I can see that the disk is there as /dev/vda1:
(initramfs) blkid
/dev/vda1: UUID="82686cca-5f45-4544-bf04-e034174ea20f" TYPE="ext4" PARTUUID="d6022cd6-01"
/dev/vda5: UUID="a6a8fc8c-2f69-4925-b904-1ad871fa657b" TYPE="swap" PARTUUID="d6022cd6-05"
but cannot be mounted:
(initramfs) mkdir /tmp/aaa
(initramfs) mount /dev/vda1 /tmp/aaa
[ 378.110453] EXT4-fs (vda1): couldn't mount as ext3 due to feature incompatibilities
[ 378.110453] EXT4-fs (vda1): couldn't mount as ext2 due to feature incompatibilities
(initramfs) mount -t ext4 /dev/vda1 /tmp/aaa
mount: mounting /dev/vda1 on /tmp/foo failed: Device or resource busy
Can someone give me a hint on how to proceed to convert the SCSI virtual hard disk to Virtio ?
Any help would be sincerely appreciated...
Apax