Quantcast
Channel: Proxmox Support Forum
Viewing all 171654 articles
Browse latest View live

PVE API : wait for lock before action ?

$
0
0
Hi all,

I'm working with PVE API to move VMs from one storage to another (BTW, online moving does not work, I have to stop & start VM).

And I would like to send command to API, and to set this command waiting for previous to finish (wait for lock).
For example, start VM after disk migration is done.

Is that possible ? Of course I can do it application side, but is API able to do that ?

Thank you.

Proxmox 3.2 with 3-nodes cluster and ceph server: running openvz/containers possible?

$
0
0
Hi all,

I'm a noob on this subject, but is it possible to run openvz containers (not KVM!) stored on proxmox "ceph" powered nodes?
Maybe with Ceph File System (http://ceph.com/ceph-storage/file-system/) implementation?

Now I'm running the containers on the cluster from a separate NFS server (in DRBD setup), but that has low disk/IO performance.
Also this setup uses vzdump in "suspend" mode to make a container backup. The downtime for containers with many files is quite high (minutes).

Thanks!

Ruben

Hetzner and failover IP

$
0
0
Hi.
I installed a Proxmox host on an Hetzner server, and I succesfully configured the additional IP addresses on a bridged network interface using the virtual MAC address given by Hetzner.
I also bought a failover IP which is a single IP address with netmask 255.255.255.255 and it cannot have a virtual MAC address because it's routed on the main IP address of the physical server, and not on the additional one.
I tried to get the failover IP working on the virtual machine, but without any success.

Could you help me please?

Thank you very much!
Bye.

Clean installation of 3.2 works but ssl / web interface is broken

$
0
0
We have had some unusually problems with our cluster lately, and decided to installed Proxmox 3.2. Since all our VM's are on our SAN we decided to do a clean installation from ISO. Downloaded and verified the MD5 and the burn. Installation worked fine. Rebooted. When the host came back up I had to add a VLAN and move the management interface over to it. Restarted the network to make sure that it was accessable. It was. For good measure I rebooted again and then tried to login via the web, but it never connects. SSH'ed into the host to determine if there were any problems.
Here is the output from pveversion -v
Code:

root@vm03:~# pveversion -v
proxmox-ve-2.6.32: 3.2-121 (running kernel: 2.6.32-27-pve)
pve-manager: 3.2-1 (running version: 3.2-1/1933730b)
pve-kernel-2.6.32-27-pve: 2.6.32-121
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.5-1
pve-cluster: 3.0-12
qemu-server: 3.1-15
pve-firmware: 1.1-2
libpve-common-perl: 3.0-14
libpve-access-control: 3.0-11
libpve-storage-perl: 3.0-19
pve-libspice-server1: 0.12.4-3
vncterm: 1.1-6
vzctl: 4.0-1pve4
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.7-4
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.2-1

That seemed to be ok, so then I checked the logs. /var/log/messages seemed to be fine. But I found an interesting lines that keeps repeating in /var/log/daemon.log
Code:

Mar 20 14:48:12 vm03 pveproxy[3780]: worker 3781 finished
Mar 20 14:48:12 vm03 pveproxy[3780]: starting 1 worker(s)
Mar 20 14:48:12 vm03 pveproxy[3780]: worker 3844 started
Mar 20 14:48:12 vm03 pveproxy[3844]: /etc/pve/local/pve-ssl.pem: failed to use local certificate chain (cert_file or cert) at /usr/share/perl5/PVE/HTTPServer.pm line 1324

That led me to a post about the ssl keys not generating correctly. I found that you can force the certs to be updated. So I attempted a pvecm updatecerts --force
Code:

root@vm03:/var/log# pvecm updatecerts --force
problems making Certificate Request
140717792769704:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:a_mbstr.c:154:maxsize=64
unable to generate pve certificate request:
command 'openssl req -batch -new -config /tmp/pvesslconf-5639.tmp -key /etc/pve/nodes/vm03/pve-ssl.key -out /tmp/pvecertreq-5639.tmp' failed: exit code 1

So something is wrong with the keys, which would explain why https isn't working properly, and hence I cannot get into the web interface. I have not run any commands to alter anything other than what is explained in this post. This is just a clean installation from the ISO. This is the first time that I have had any problems installing directly from the ISO.
Am I missing something? Anyone have any ideas of what else I can check?
thanks.

Need Help with Network

$
0
0
Hello, my Name is michael and i'm from germany. Im using Proxmox 3.2 I could use some help with Networking. My provider gave me the possibility to host my pc but doesn't allow multiple mac adresses,therefore i can't use bridge. There is no Firewall or something like that active I tested the Routed setup and used the address from the real host in kvm as gateway and can also ping this gateway, but don't have any dns resolution. iptables -t nat -A POSTROUTING -s 10.10.10.10/24 -o eth0 -j MASQUERADE was also added. A firewall is not active and internet is working fine with all clients and also in nat mode. I also read this page http://servernetworktech.com/2012/12...rtual-machine/ up and down, but i can't figure out, why my virtual machines dont have any connection. The goal is, that only the real host ip and mac is visible, in which way this is achieved is irrelevant, but the vms need to be accessable via Internet or LAN. The virtual machine is an debian wheezy also. Regards

Ceph RBD and fencing

$
0
0
If used Ceph RBD only as a storage for KVM machines (i do not use openvz). Do I need configure fencing in this case? (i use fence_ipmilan)

unable to join via gui - login failed

$
0
0
Hi all,
last two days I have a problem to login via gui. I created a cluster, no HA, and everything was working (well two linux KVM guest - at all I have around twenty kvm guests and five openvz containers - got problems, that they were not backed up and they were shutted down during that, but if I run just a backup of these machines then everything was ok).

Anyway, on wednesday I moved two containers from local to a nfs shared storage, where is located the rest of containers. Until this time there had been no problem. But this backup run via cron did not finished. it got stucked on backuping one container. For some time I was able to log in but it is not possible anymore. Login via ssh is still working. I tried manually unmounting backup nfs server as it was not responding, restarting pveproxy on both server, but nothing helps. I found on this forum that it could be happening because of different time, but unfortunatelly time on both machines is correct.
In pveproxy/access.log I can see
ip - - [21/Mar/2014:09:12:43 +0100] "POST /api2/json/access/ticket HTTP/1.1" 500 -
ip - - [21/Mar/2014:09:12:53 +0100] "POST /api2/json/access/ticket HTTP/1.1" 500 -
ip - - [21/Mar/2014:09:15:06 +0100] "POST /api2/json/access/ticket HTTP/1.1" 500 -
ip - - [21/Mar/2014:09:15:29 +0100] "POST /api2/json/access/ticket HTTP/1.1" 500 -

while in syslog
pveproxy[844530]: WARNING: proxy detected vanished client connection
pveproxy[844530]: WARNING: proxy detected vanished client connection

I use also monitoring account created through web interface, which stopped working at the same time. Can you please give me some advises how to solve this?

On both servers same versions:
pveversion -v
proxmox-ve-2.6.32: 3.1-114 (running kernel: 2.6.32-26-pve)
pve-manager: 3.1-24 (running version: 3.1-24/060bd5a6)
pve-kernel-2.6.32-26-pve: 2.6.32-114
pve-kernel-2.6.32-23-pve: 2.6.32-109
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.0-2
pve-cluster: 3.0-8
qemu-server: 3.1-8
pve-firmware: 1.0-23
libpve-common-perl: 3.0-9
libpve-access-control: 3.0-8
libpve-storage-perl: 3.0-18
pve-libspice-server1: 0.12.4-2
vncterm: 1.1-6
vzctl: 4.0-1pve4
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.4-17
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.1-1

Mount a folder from host to a kvm guest (without samba or nfs)

$
0
0
Hi, I need to mount a folder from kvm host to guest, without use network (samba or nfs)
I saw in some howtos something about putting an xml code like this on the host, but not where it must to be:
Code:

<filesystem type='mount' accessmode='mapped'>
    <source dir='/tmp/shared'/>
    <target dir='mytag'/>
</ filesystem>

And then mount the folder on guest:

Code:

mount-t 9p-o tRNAs = virtio, version = 9p2000.L mytag / mnt
The point is that I could'n find the configuration file where I must insert the xml code.

I don't know neither if is posible to do it with "qm" command. I was looking for about on man page and google but I couldent find anything.

I would be very grateful if you can guide me a little about it.

Thank you very much.

J.:.

No cluster.conf after fresh installation

$
0
0
I installed from CD Proxmox PVE 3.1 (yesterday 3.2) on an HP Server.
It finished with the login prompt.
As our network is VLAN based I first had to adapt /etc/network/interfaces to cope with the VLAN environment.
Next I tried to add this node to an existing cluster:
pvecm add IP did not work, telling me cman service is not running.
service cman start did not do anything. I put set -x to the script an retried.
Now it is telling me that /etc/cluster/cluster.conf is missing.
This is very strange, indeed. Is it possible that the installation need internet access
during installation to download files?

I then copied the cluster.conf from the cluster which the HP Server should join.
and included the HP as a node. Now I can see the HP on both other nodes, but the
Webinterface of the HP Server does not come up.
OK this was only an attempt to see what happens.

Maybe the fact that the HP Server was in the cluster before. We changed the RAID and
wanted to put it to the cluster again. I removed the node on the remaining cluster node and
after that restarted all services. It seem that removing the node does not wipeout the
information.

Rgds
Dieter

Rename and Naming a Backup File

$
0
0
It's easier to remember backup file using hostname rather VM ID. Hope Proxmox able to naming or rename existing backup file.

confused about proxmox backup options

$
0
0
i guess these are mostly, Live Snapshot backup questions.

1) is there a snapshot backups for containers? i can only see it under KVM at the moment.

2) where are snapshot backups stored? i'd like to have them on remote storage if possible.

3) how dangerous/bad-idea is it to take snapshots without RAM?

4) is it supposed to freeze the VM while its making these snapshot backups? is there a way to do it without the freeze?

5) why it shows wrong file sizes when doing a "ls" and "du" ? raw files are 18G each?
root@server1:/var/lib/vz/images/101# ls -lnha
total 7.4G
drwxr-xr-x 2 0 0 4.0K Mar 21 10:03 .
drwxr-xr-x 3 0 0 4.0K Mar 21 09:07 ..
-rw-r--r-- 1 0 0 324G Mar 21 10:04 vm-101-disk-1.qcow2
-rw-r--r-- 1 0 0 18G Mar 21 10:04 vm-101-state-essentials.raw
-rw-r--r-- 1 0 0 18G Mar 21 09:58 vm-101-state-initial.raw
root@server1:/var/lib/vz/images/101# du -hs
7.4G .

6) why it stores these images as raw and not qcow2?

7) can i specify the live snapshot to be stored in a different storage? at the moment, it seems to only store in 'local'

would really appreciate if anyone could explain these questions, or contribute in anyway.

thanks in advance.

Adding node to cluster

$
0
0
I am trying to add a node to my cluster.

pvecm add server1

and i am getting the follwing error:
I/O warning : failed to load external entity "/etc/pve/cluster.conf"
ccs_tool: Error: unable to parse requested configuration file

command 'ccs_tool lsnode -c /etc/pve/cluster.conf' failed: exit code 1
unable to add node: command failed (ssh 172.162.128.20 -o BatchMode=yes pvecm addnode server --force 1)

Proxmox HA with ceph storage

$
0
0
I'm interested in deploying a Proxmox cluster with HA option enabled. Is that possible with Ceph as storage option? In the wiki i read NFS storage is a must for Proxmox HA.

after update to proxmox 3.2 vm crash with bluescreen when i restart it

$
0
0
hello proxmox team i wanna you to help me about this bug ? why after i update my proxmox from 3.1 to proxmox 3.2 from my gui my vms windows server 2008 r2 when i restart it i got blue screen and to fix it i have to stop and then start thank you

VZ backups with ACL and XATTR support, best way?

$
0
0
Hi all!

I have a container running Samba 4 that needs ACL and XATTR support. The container is stored on a EXT4 partition mounted in fstab with "user_xattr,acl" options, and all works perfectly.

Now, I want to create backups for this container saving those extended attributes. I have downloaded GNU TAR source code and I compiled with ACL and XATTR support. The problem is Proxmox backups is still not storing this extended information. So my question is, what is the best way to add ACL and XATTR support to Proxmox backups? Is there any official procedure?

Thanks in advance!

Best regards,
Ander.

2 serial ports and parallel port show up in Win7/2008R2 Guests after updating to 3.2

$
0
0
Hi,

I've updated to 3.2 and since then have 1 parallel port in the device manager with no problems and 2 serial ports which can't start (Code 10) in all KVM Windows 7/2008R2 guests. (I have no other guest OSes)

I tried to find out what these are, as I don't have any parallel or serial port on the host's mainboard, but didn't find any hint.
I also tried to delete them but they are autodiscovered again after deletion.
Looked up the vm.conf of the machines but there are no entries pointing to these devices.

Could someone tell me what they are (for)?
Also I would appreciate a hint on how to get them working properly, if they are needed - or if not, how to disable them on the host side, so that windows doesn't recognize them.

Thank you in advance!
Harry

Cluster across VPN?

$
0
0
We have two data centers - about 2,000 miles apart. They are linked together with a Net-to-Net IPSEC configuration, and have their own subnet addresses for the internal networks. Each can see the other. I can ping from either data center to the other without issue.

I have a cluster operational at one data center with 5 nodes connected and working just fine. I'm trying to add another node that is at the 2nd data center, on a different sub-net address.

When I attempt to add the node from the remote location, using pvecm add <ip address of master>

it goes through the motions just fine, but when it gets to quorum, it goes into a perpetual wait state. Like this:

pvecm add xxx.xxx.xxx.xxx
The authenticity of host 'xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx)' can't be established.
ECDSA key fingerprint is 56:94:e5:be:64:76:09:f6:5c:xx:xx:xx:aa:36:f4:ee.
Are you sure you want to continue connecting (yes/no)? yes
root@xxx.xxx.xxx.xxx's password:
copy corosync auth key
stopping pve-cluster service
Stopping pve cluster filesystem: pve-cluster.
backup old database
Starting pve cluster filesystem : pve-cluster.
Starting cluster:
Checking if cluster has been disabled at boot... [ OK ]
Checking Network Manager... [ OK ]
Global setup... [ OK ]
Loading kernel modules... [ OK ]
Mounting configfs... [ OK ]
Starting cman... [ OK ]
Waiting for quorum... Timed-out waiting for cluster
[FAILED]
waiting for quorum...

I read a lot about multicast issues, etc. but this is a VPN and should behave as if the communications is local. The difference, however, is that they are on different subnets.

Since we use VPNs to maintain a perpetual connection between data centers (common practice), how do you to a cluster between then through the VPN? We've had this working fine before with PM 1.8 but ever since the updates from v2+ the whole clustering thing has become an over complicated mess to deal with. That said, I'd really like to get this back to a working state again.

Can what we are trying to do be done? Can anyone who has done this before, give me some pointers?

Thanks
Myles

New to Proxmox, some guidance needed for network config

$
0
0
Hello !

First of all, let me congratulate the Proxmox dev team for the wonder that Proxmox is!! Unbelievable!

After several weeks (months) searching for the ideal hypervisor for my home/small office server, I have decided to opt for Proxmox. So far things have been fairly smooth and easy (installation was actually a piece of cake).

I am now wondering about network config. The goal here is to:

1. Eliminate the physical pfsense router and virtualize it
2. Have the physical machines on my LAN obtain an IP from the pfsense VM (just like it was previously done with the physical router)
3. Have the other proxmox VM's get an ip from the pfsense vm
4. Proxmox node shall be accessible only from LAN (from one of the physical machines)

I have prepared a simple diagram to show what I want to do. Is it feasible?

Thanks!!
Attached Images

pveceph createosd crashes all monitors

$
0
0
Hi,It seems that running pveceph createosd crashes all mons.However, running ceph-deploy instead seems to work fine..Found this bug report:http://tracker.ceph.com/issues/7611 Is there any fix / workaround in proxmox?

VGA (PCI-Passthrough) Power Consumption if VM is off

$
0
0
Hi,

if i passthrough a graphic card to a VM and shut down the VM, will the graphic card shut down too (=no power consumption)?

Thanks in advance
Viewing all 171654 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>