Error cloning debian

naturlight

Member
Jan 2, 2011
65
0
6
Hello everybody

My version informations :
pve-manager: 1.7-10 (pve-manager/1.7/5323)
running kernel: 2.6.32-4-pve
pve-kernel-2.6.32-4-pve: 2.6.32-28
qemu-server: 1.1-25
pve-firmware: 1.0-9
libpve-storage-perl: 1.0-16
vncterm: 0.9-2
vzctl: 3.0.24-1pve4
vzdump: 1.2-9
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1dso1
I get error when i cloned a DEBIAN ( 32 and 64bits too)
Starting NFS common utilities : statd_
=> i get error

I used this script to clone the template :
#!/bin/sh

SOURCE_VM_ID=$1
DEST_VM_ID=$2
DEST_VM_NAME=$3
DEST_VM_MACADD=$4

# new vm physic file directory
mkdir /var/lib/vz/images/$2

# new vm configuration file directory
echo -e "name: $DEST_VM_NAME\nide2: local:iso/ubuntu-10.04-server-amd64.iso,media=cdrom\nvlan0: virtio=$DEST_VM_MACADD\nbootdisk: ide0\nostype: l26\nide0: local:$DEST_VM_ID/vm-$DEST_VM_ID-disk-1.raw\nmemory: 512\nonboot: 1\nsockets: 1\ncores: 1" >> /etc/qemu-server/$DEST_VM_ID.conf

# clone the physic vm
cp /var/lib/vz/images/$SOURCE_VM_ID/vm-$SOURCE_VM_ID-disk-1.raw /var/lib/vz/images/$DEST_VM_ID/vm-$DEST_VM_ID-disk-1.raw

Any idea ?
Thanks for help !
 

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!