debug log output of a vm

lozair

Member
Nov 4, 2008
89
0
6
Hi all,

We attempt to make a script to easily deploy centos5 vm (lvm based storage) on proxmox as there is no "template" for kvm in proxmox.

We create the LV on our proxmox storage and we "make" the virtual disk using fdisk/LVM.
Next we copying the filesystem from our centos5 golden image to this vdisk and we attempt to boot it.
The vm freeze on "booting from hard disk"

Is there any way to get "debug" messages from specific vm like we saw with libvirt.

thks for your help
 
Hi all,

We attempt to make a script to easily deploy centos5 vm (lvm based storage) on proxmox as there is no "template" for kvm in proxmox.

We create the LV on our proxmox storage and we "make" the virtual disk using fdisk/LVM.
Next we copying the filesystem from our centos5 golden image to this vdisk and we attempt to boot it.
The vm freeze on "booting from hard disk"

Is there any way to get "debug" messages from specific vm like we saw with libvirt.

thks for your help
Hi,
you can start the vm from console to get perhaps an message.
You need the right boot-order in the conf-file and to be clean the right lvm-tag for the disk:
e.g. for vm 110:
Code:
lvchange --addtag pve-vm-110 /dev/lvmstorage/vm-110-disk-1
edit: you have installed an bootloader inside the mbr?

Udo
 
Last edited:
thks for the reply.
you are right i missed the "grub-install" in my disk creation.
i will test it
 
Maybe it is in the docs and you've already discarded this procedure. This is a workaround to the missing kvm template feature, not an answer to your question.

Prepare a working VM and take a backup of it with proxmox. Then restore it using a different VMID, remove and re-add the NIC(s) (to get a new MAC address assigned). I have done it manually using the proxmox CLI.

I wish this procedure could be automated through the webgui.

Paolo
 
Hi,

thks for your advice :)

i have a question about this method.

If your kvm golden image use a 10 go disk, with the backup and restore proxmox command the new vm will be also 10 go.
in my case we want deploy new vm on different disk size.
for some server 10 go is ok but for other applications we just want 20 go and we don't want add a new hard disk (10 go) to the vm.

I can create vdisk with fdisk/kpartx/lvm but for now i can't install grub on this virtual disk.
My grub shell exiting saying error 22: partition doesn't exist
I know it is out of the scope of proxmox but if anyone as advice or idea...
I will continue my attempts.
 
...
I can create vdisk with fdisk/kpartx/lvm but for now i can't install grub on this virtual disk.
My grub shell exiting saying error 22: partition doesn't exist
I know it is out of the scope of proxmox but if anyone as advice or idea...
I will continue my attempts.
Hi,
what's about dd? simply copy the mbr of an disk with dd and copy this back to the vm-disk "dd if=mbr.dd of=/dev/lmstorage/vm-110-disk-1".

Udo
 
i did the dd command and it seems it's ok for grub install.
When my vm boot i'm now blocked with the message "GRUB".
I think grub is installed now.
I think we have a probleme with our virtual disk.
We will re-create this vdisk and test again with the dd procedure to install mbr.

thks for your help :)
 
OK,
The job was made.
I definitively can't install grub with the dd command but using the grub command from the node did the trick.

We can now create new vm using "golden image" with kvm.

Thks again for your help