migrating VMWare/linuxVM to cloudmin/KVM - where to put ssh keys?

first of all: cloudmin/virtualmin/webmin are very very cool products.

thanks for releasing them under GPL.

i managed to get a VMWare/linuxVM to work under kvm.

  1. converted the hd image nohup qemu-img convert /vmwareDisk.vmdk -O raw /kvmDisk.raw &

  2. modify vm startup script vim /etc/qemu-ifup edit

!/bin/sh

set -x

switch=br0

if [ -n "$1" ];then /usr/bin/sudo /usr/sbin/tunctl -u whoami -t $1 /usr/bin/sudo /sbin/ip link set $1 up sleep 0.5s /usr/bin/sudo /usr/sbin/brctl addif $switch $1 exit 0 else echo "Error: no interface specified" exit 1 fi

  1. sudo /usr/bin/kvm -m 512 -drive file=/kvmDisk.raw -net tap -net nic,macaddr=52:54:00:12:34:56,model=e1000,name=webserver1 -vnc :1

the VM is running debian.

this is actually working well.

how do i "integrate" the system properly for use with cloudmin?

my recent problem is: where do i find the ssh-public keys on the host (generated by webmin) and where to place them on the client? (/root/.ssh/known_keys?)

... right now the host seems to crash... no ping... no console... no nothing... at various things. but this has to do with: large NFS copy locks up/hang client with large files (again) (lucid)

http://ubuntuforums.org/showthread.php?t=1478413

Status: 
Active

Comments

A better solution might be instead to convert that disk file into a Cloudmin image, at Cloudmin Settings -> New System Images -> Create image for KVM. Select the /kvmDisk.raw file, and make sure you select "Whole disk" format.

Once this is done, you can then using Cloudmin's regular system creation method to create a new VM from that image.