Linux VM IDE zu virtio

Tdreissi

Active Member
May 21, 2019
38
3
28
47
Servus,

ich habe alte KVM VMs mit Linux OS. Leider wurden die mit DISK "IDE" angelegt.
Ich würde die DISK gerne nach "virtio" ändern.

Habe es folgendes gemacht in der GUI:
- Shutdown vm
- Hardware - disk "Detach"
- disk auf virtio geändert und image gewählt
- Options - Boot Order geändert auf "virtio"
- VM Start

Linux bootet, aber läuft nicht lange und geht "read only filesystem"
Platz ist genug frei.

Habe ich was übersehen ??? Windows geht das einfacher....
 
Windows geht das einfacher....

Haaa .... der Witz war gut :p

ich habe alte KVM VMs mit Linux OS

Linux OS gibts nicht, was hast du genau?

Habe es folgendes gemacht in der GUI:
- Shutdown vm
- Hardware - disk "Detach"
- disk auf virtio geändert und image gewählt
- Options - Boot Order geändert auf "virtio"
- VM Start

Linux bootet, aber läuft nicht lange und geht "read only filesystem"
Platz ist genug frei.

Ich schätze es liegt an einem fehlerhaften /etc/fstab Eintrag, der noch hda aufzeigt, anstelle von vda.
 
Hi,

es sind ubuntu 18.04 VMs.
Was muss in der /etc/fstab angepasst werden ?

Hier eine fstab
/dev/mapper/lpubcdc01--vg-root / ext4 errors=remount-ro 0 1
UUID=b494e446-7abf-4837-9bba-9911a286de56 /boot ext2 defaults 0 2
/dev/mapper/lpubcdc01--vg-swap_1 none swap sw 0 0
 
Hi,

hier mal Fehler, "lsblk" "df -h" "fstab" & "blkid"

Fehler wenn ich z.B. mit TAB arbeiten will. Nach reboot würde er im "INITRAMFS" landen.
bash: cannot create temp file for here-document: Read-only file system

Code:
root@xxxxxx:~# lsblk
NAME                     MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
vda                      252:0    0   30G  0 disk
├─vda1                   252:1    0  487M  0 part /boot
├─vda2                   252:2    0    1K  0 part
├─vda3                   252:3    0   20G  0 part
│ └─lpubcdc01--vg-root   253:0    0   20G  0 lvm  /
└─vda5                   252:5    0  9.5G  0 part
  ├─lpubcdc01--vg-root   253:0    0   20G  0 lvm  /
  └─lpubcdc01--vg-swap_1 253:1    0 1020M  0 lvm  [SWAP]

Code:
root@xxxxxx:~# df -h
Filesystem                      Size  Used Avail Use% Mounted on
udev                            3.9G     0  3.9G   0% /dev
tmpfs                           798M  652K  798M   1% /run
/dev/mapper/lpubcdc01--vg-root   20G  8.2G   11G  44% /
tmpfs                           3.9G     0  3.9G   0% /dev/shm
tmpfs                           5.0M     0  5.0M   0% /run/lock
tmpfs                           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/vda1                       472M  143M  305M  32% /boot
tmpfs                           798M     0  798M   0% /run/user/

Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/lpubcdc01--vg-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=b494e446-7abf-4837-9bba-9911a286de56 /boot           ext2    defaults        0       2
/dev/mapper/lpubcdc01--vg-swap_1 none            swap    sw              0       0

Code:
root@xxxxxxx:~# blkid
/dev/vda1: UUID="b494e446-7abf-4837-9bba-9911a286de56" TYPE="ext2" PARTUUID="9e06f8f7-01"
/dev/vda3: UUID="ZyUsCh-AaGt-o7Cz-FjkB-cRK4-I2hZ-OZwJfI" TYPE="LVM2_member" PARTUUID="9e06f8f7-03"
/dev/vda5: UUID="zPBGos-S7qg-JEVf-thgU-U0fN-2d7t-6ImA2U" TYPE="LVM2_member" PARTUUID="9e06f8f7-05"
/dev/mapper/lpubcdc01--vg-root: UUID="74083b0d-f1b0-467f-b536-7975df725b5d" TYPE="ext4"
/dev/mapper/lpubcdc01--vg-swap_1: UUID="e8dc3356-4668-49ea-a9ea-9177fceeb7a4" TYPE="swap"
 
Hi,
habe folgendes probiert und es sieht besser aus.

sudo mount -o rw,remount /
cannot remount block device /dev/mapper/lpubcdc01--vg-root read-write, is write-protected

mount
/dev/mapper/lpubcdc01--vg-root on / type ext4 (ro,relatime,errors=remount-ro,data=ordered)

sudo fsck /dev/mapper/lpubcdc01--vg-root -y
2x reboot es es ist wieder alles i.O.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!