[SOLVED] VM hängt bei "Booting from Hard Disk"

D

Deleted member 46289

Guest
Hallo zusammen,

ich möchte eine VM von libvirt KVM nach Proxmox umziehen. Das hat grundsätzlich auch schon mehrfach funktioniert, nur von dem letzten System aus gibt es Probleme.

Es handelt sich um eine Ubuntu 16.04 VM.
Folgendes vorgehen:
- dd des vm images auf den neuen Server
- auf dem neuen server qemu-img convert vm -O raw rbd:rbd-rmvh/vm-126-disk-1 -p
- features vom rbd image entfernen
- vm starten

Leider startet die VM nicht wie die vorherigen einfach, sondern bleibt direkt stehen mit der Meldung: "Booting from Hard Disk"

Folgendes habe ich schon probiert:
- auf dem source system image nach raw convertiert und danach kopiert
- Hard Disk von virtio auf ide/sata etc geändert

Hat wer einen Tipp woran das liegen könnte?

Vielen Dank & Gruß

# pveversion --verbose proxmox-ve: 4.4-87 (running kernel: 4.4.49-1-pve) pve-manager: 4.4-13 (running version: 4.4-13/7ea56165) pve-kernel-4.4.59-1-pve: 4.4.59-87 pve-kernel-4.4.49-1-pve: 4.4.49-86 lvm2: 2.02.116-pve3 corosync-pve: 2.4.2-2~pve4+1 libqb0: 1.0.1-1 pve-cluster: 4.0-49 qemu-server: 4.0-110 pve-firmware: 1.1-11 libpve-common-perl: 4.0-94 libpve-access-control: 4.0-23 libpve-storage-perl: 4.0-76 pve-libspice-server1: 0.12.8-2 vncterm: 1.3-2 pve-docs: 4.4-4 pve-qemu-kvm: 2.7.1-4 pve-container: 1.0-99 pve-firewall: 2.0-33 pve-ha-manager: 1.0-40 ksm-control-daemon: 1.2-1 glusterfs-client: 3.5.2-2+deb8u3 lxc-pve: 2.0.7-4 lxcfs: 2.0.6-pve1 criu: 1.6.0-1 novnc-pve: 0.5-9 smartmontools: 6.5+svn4324-1~pve80
 
Ok wir haben die Lösung des Problems gefuden:
In der VM war weder Grub noch ein Linux Kernel installiert. wir haben die VM mit einer live CD gebootet, Grub2 und Kernel installiert und danach ging auch alles einwandfrei.

als Hilfe hier die Befehle:
mount /dev/vmsys/root /mnt/custom
cd alt-.
mount --bind /dev dev
mount --bind /sys sys
mount --bind /proc proc
chroot . /bin/bash
apt-get install grub2 linux-image-generic
grub-install /dev/vda
update-grub
vi /boot/grub/grub.cfg

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

umount proc sys dev
cd
umount /mnt/custom
reboot
 
Ok wir haben die Lösung des Problems gefuden:
In der VM war weder Grub noch ein Linux Kernel installiert. wir haben die VM mit einer live CD gebootet, Grub2 und Kernel installiert und danach ging auch alles einwandfrei.

als Hilfe hier die Befehle:
mount /dev/vmsys/root /mnt/custom
cd alt-.
mount --bind /dev dev
mount --bind /sys sys
mount --bind /proc proc
chroot . /bin/bash
apt-get install grub2 linux-image-generic
grub-install /dev/vda
update-grub
vi /boot/grub/grub.cfg

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"


umount proc sys dev
cd
umount /mnt/custom
reboot
Wo hast du denn diese Commands eingegeben?
 

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!