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

Centos 6 CT defaults to venet at boot

0
0
Here is my issue:

I have server with two bridges, one for network A (vmbr0) and the other for B(vmbr1). These are two separate networks built under two separate models.

The default gateway is set to vmbr0 for cluster management and what not.


Here is the main issue, whenever I create a CT for machines running on network B I have to use veth connections so that they will talk with the outside world properly. I can go in and configure the veth and get it working.

The main issue I am having is that whenever I reboot one of my containers that has a veth on network B, it defaults the GATEWAYDEV in /etc/sysconfig/network to venet, and then I have to console in (or setup a venet and ssh) and change it back to eth0.

Is there a way to stop this from happening?

virt-viwer mega fail on kubuntu 12.04

0
0
Hi all!

Im trying to spice working so i can view vms console..

I have gotten it working on my windows 7 maschine but not my Kubuntu 12.04.. :(...

Accroding to the poxmox doku the driver should be installed .. I have run apt-get install virt-viewer but the version it installed was a 0.4.something..

How do i do this on my Kubuntu client? im using chrome

THANKS

Casper

Sshfs mounts fine but bootlog error.

0
0
To automount sshfs I added this to fstab;
sshfs#root@123.123.123.3:/BACKUPS/backup-on-vztl4 /BACKUPS/backup-on-vztl4 fuse defaults,nonempty,auto,_netdev 0 0

And to /etc/fuse.conf;
user_allow_other
allow_other
allow_root

and to /etc/odules.conf
ipmi_devintf
ipmi_si
fuse

I also created a private/public key pair and transfer the public key to server2 so that not be asked for a password on every mount.

And after a reboot, sshfs is mounted fine. But in bootlog I noted;
Code:

Sat Sep 21 02:18:35 2013: Mounting local filesystems...done.
Sat Sep 21 02:18:35 2013: Activating swapfile swap...done.
Sat Sep 21 02:18:35 2013: Cleaning up temporary files....
Sat Sep 21 02:18:35 2013: Setting kernel variables ...done.
Sat Sep 21 02:18:35 2013: Configuring network interfaces...
Sat Sep 21 02:18:35 2013: Waiting for vmbr0 to get ready (MAXWAIT is 2 seconds).
Sat Sep 21 02:18:40 2013: read: Connection reset by peer
Sat Sep 21 02:18:41 2013: done.

Why is that read: Connection reset by peer ? It seems harmless but wondering why it is being logged so.

Kernel 2.6.32-24-pve problems building r8168-8.036.00 Realtek drivers

0
0
Anyone having issues with 2.6.32-24-pve and building latest Realtek drivers r8168-8.036.00 ?

r8168-8.036.00 worked without problems on 2.6.32-23-pve Now after updating to -24 and having installed -24 kernel headers I get the following:

Code:


root@proxmox-ve /tmp/r8168-8.036.00 # make all
make -C src/ clean
make[1]: Entering directory `/tmp/r8168-8.036.00/src'
make -C /lib/modules/2.6.32-24-pve/build SUBDIRS=/tmp/r8168-8.036.00/src clean
expr: syntax error
make[2]: Entering directory `/usr/src/linux-headers-2.6.32-24-pve'
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-24-pve'
make[1]: Leaving directory `/tmp/r8168-8.036.00/src'
make -C src/ modules
make[1]: Entering directory `/tmp/r8168-8.036.00/src'
make -C /lib/modules/2.6.32-24-pve/build SUBDIRS=/tmp/r8168-8.036.00/src modules
expr: syntax error
make[2]: Entering directory `/usr/src/linux-headers-2.6.32-24-pve'
  CC [M]  /tmp/r8168-8.036.00/src/r8168_n.o
  CC [M]  /tmp/r8168-8.036.00/src/r8168_asf.o
  CC [M]  /tmp/r8168-8.036.00/src/rtl_eeprom.o
  CC [M]  /tmp/r8168-8.036.00/src/rtltool.o
  LD [M]  /tmp/r8168-8.036.00/src/r8168.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/r8168-8.036.00/src/r8168.mod.o
  LD [M]  /tmp/r8168-8.036.00/src/r8168.ko
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-24-pve'
make[1]: Leaving directory `/tmp/r8168-8.036.00/src'
make -C src/ install
make[1]: Entering directory `/tmp/r8168-8.036.00/src'
make -C /lib/modules/2.6.32-24-pve/build SUBDIRS=/tmp/r8168-8.036.00/src INSTALL_MOD_DIR=kernel/drivers/net modules_install
expr: syntax error
make[2]: Entering directory `/usr/src/linux-headers-2.6.32-24-pve'
  INSTALL /tmp/r8168-8.036.00/src/r8168.ko
  DEPMOD  2.6.32-24-pve
make[2]: Leaving directory `/usr/src/linux-headers-2.6.32-24-pve'
make[1]: Leaving directory `/tmp/r8168-8.036.00/src'

and I can't use that driver anymore. Same thing with older versions of the realtek driver, like v.35 etc.

Anyone having an idea what could have caused this to not work anymore since last kernel Update?
I am not sure if I want to use the in the past vey often know to cause lot of problems "r8169" drivers coming with kernels.....

IO delay probleme and slow hard disk speed need help

0
0
i have dedicated server 128 giga ram processor xeon 2670 hard disk 2 TB sata3 no raid controller and my all vms conf is :
bootdisk: virtio0
cores: 4
cpu: host
cpuunits: 8
ide2: local:iso/winoriginal.iso,media=cdrom
memory: 4096
name: desha3
net0: virtio=7E:A6:24:6A:58:E7,bridge=vmbr1
ostype: win7
sockets: 1
tablet: 0
vga: std
virtio0: local:100/vm-100-disk-1.raw,format=raw,cache=writeback,,size=150G

i have realy high IO delay and my pvperf (all vms running) output:
:~# pveperf
CPU BOGOMIPS: 83202.88
REGEX/SECOND: 730482
HD SIZE: 1828.96 GB (/dev/sda2)
BUFFERED READS: 0.79 MB/sec
AVERAGE SEEK TIME: 503.41 ms
FSYNCS/SECOND: 0.21
DNS EXT: 23.59 ms
DNS INT: 2.30 ms (ovh.net)


i hope any one can help me why this delay happen ? an buffered reads so slow on running vms but if all vms off it will be 170 Mega/sec

VZ mem + swap not shown in free -m

0
0
Hi guys,

I am evaluating proxmox to use in some servers, and I have a question about the proxmox configuration for openvz.

When creating a new container I set 1gb to memory and 1gb to swap.

But in the guest it does not turn it into all 2gb available memory, as you can see:

[root@centos-ovz ~]# free -m
total used free shared buffers cached
Mem: 1024 27 996 0 0 12
-/+ buffers/cache: 15 1009
Swap: 1024 0 1024


Even if I set the script below:

veid=01
vzctl set ${veid} --vmguarpages 1024M --save
vzctl set ${veid} --oomguarpages 1024M --save
vzctl set ${veid} --privvmpages 1024M:2048M --save


It keeps showing only 1GB on the free -m in the guest OS.


In KVM there is no such problem as we can set guaranted and burstable.

But I want to set a burstable memory for Openvz containers...
to make the guest have 1GB memory guaranteed but 2GB burstable.

Any ideas?

Thank you!

Backup of VMs with problems

0
0
Hi to all

To anyone that can help me with my Backups:

My scenery on the LAN:
For Backup:
- I have a Centos 6.4 x86_64 as backup Server through NFS, two NICs Gb/s with balance XOR
- All nodes (PVEs and Centos) have NICs of Gb/s
- All Backups of VMs are "Snapshot"

Hosts PVE with VMs:
- I have four PVE 2.3 nodes with some VMs, each node with bond active-backup (for the moment i can't upgrade to PVE 3.1)
- I have a single PVE 1.8 node with some VMs, the host with bond balance-alb (for the moment i can't upgrade to PVE 3.1)
- All the Virtual Disks of the VMs are local

Start time of the backup:
For all PVE nodes: 00:00 hours

My NFS configuration on all the nodes:
- In the NFS Server:
/backups/vm xxx.yyy.zzz.a/32(rw,sync,no_subtree_check,no_root_squash)

- In all PVE Nodes:
Using PVE GUI, then "mount" shows:
A) In all PVE 2.3 nodes:
xxx.yyy.zzz.a:/backups/vm on /mnt/pve/Server-Backup1 type nfs (rw,vers=3,addr=xxx.yyy.zzz.a)

b) In PVE 1.8 node:
xxx.yyy.zzz.a:/backups/vm/dump on /mnt/pve/Server-Backup1 type nfs (rw,addr=xxx.yyy.zzz.a)

The Problem:
- The PVE 2.3 nodes do backup without problems
- The PVE 1.8 node starts the backup, but after some time vzdump is frozen, after in this node i have that kill the vzdump process, unmount and remove the LV created by vzdump

Analysis extras:
- During the freezing of vzdump in PVE 1.8, if i try to connect by ssh to PVE 1.8, the connect is quick and successfully

- During the freezing of vzdump in PVE 1.8, if i since this node connected by ssh run "ls -l" to the NFS resource shared, the screen don't shows the files, and [ctrl - c] not is useful for come back to prompt and the screen shows "^C"

- During the freezing of vzdump in PVE 1.8, if i since a PVE 2.3 node connected by ssh run "ls -l" to the NFS resource shared, his screen shows the files after of some seconds

- After, in the morning, if i since the node PVE 1.8 connected by ssh run "ls -l" to the NFS resource shared, the screen shows quickly the files and the prompt come back

- Before i have the backup Server, "PVE 1.8" always did ​​backups successfully to another node PVE

The Question:
1- Where are the logs for revise this problem?
2- How do I prevent this freezing to achieve a successful backup?

I will be very grateful to anyone who can help

Best regards
Cesar

ipcc_send_rec failed: Connection refused

0
0
This morning one of the node running all VMs was kicked out of the cluster. A reboot seems to be fixed whatever the issue was. Going back in the log there are many dozen lines with this error msg:
Quote:

pveproxy[299993]: WARNING: ipcc_send_rec failed: Connection refused
Quote:

pvestatd[3148]: WARNING: ipcc_send_rec failed: Connection refused
Several lines of this msg:
Quote:

/usr/sbin/cron[2764]: (*system*vzdump) CAN'T OPEN SYMLINK (/etc/cron.d/vzdump)
While trying to SSH before the reboot, i could access the server and goto /etc. But if i tried to goto /etc/pve it gave me Connection time out error. Any idea what might have caused this or how can i trace the root cause of the issue?

No backup was scheduled when the problem happened.

recover scenario with external storage cluster

0
0
Hi guys,

I am about to build an external storage cluster (2 servers) with HAST + CARP. The kind Active/Passive. They will be connected to a 3 nodes cluster of proxmox with HA.

My concern is, if a storage node fails, the other will assume with some seconds of delay with the same IP, however probably all the vms will break/crash.

Did proxmox will restart all those VMs?

Is there some way of proxmox recover from this process? HOW?

Thank you very much!!

Vlan tagging from inside KVM Guest Issues

0
0
Hi Guys,

Having a few issues with getting vlan tagging from inside the guests working.

I am putting the eth0 of the guest into vmbr0 and then tagging from the guest with vlan 103. This is confirmed working (tcpdump on tap interface facing vm). The issue that I encounter is that doing a tcpdump on eth0 of the host I see the frame from the Guest with QinQ tagging with the management vlan as the outer.

Code:

21:41:54.905877 ae:f9:37:25:8f:79 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 64: vlan 50, p 0, ethertype 802.1Q, vlan 103, p 0, ethertype ARP, Request who-has 10.0.103.254 tell 10.0.103.250, length 42
Here is my /etc/network/interfaces file from the host:

Code:

auto eth0
iface eth0 inet manual


auto vmbr0
iface vmbr0 inet manual
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0


#Management Network
auto eth0.50
iface eth0.50 inet manual
        vlan-raw-device eth0


auto vmbr50
iface vmbr50 inet static
        address 10.0.101.61
        netmask  255.255.255.224
        gateway  10.0.101.62
        bridge_ports eth0.50
        bridge_stp off
        bridge_fd 0

And my brctl show
Code:

bridge name    bridge id              STP enabled    interfaces
vmbr0          8000.c86000706be7      no              eth0
                                                        tap100i0
vmbr50          8000.c86000706be7      no              eth0.50

Does anyone have any ideas what might be causing this?

Thanks

Fraser

Backuppc to backup /home on VM.

0
0
Hello!
Proxmox with installed Backuppc and VM with Zentyal. I want to backup Zentyal samba's shares to Proxmox host using backuppc and rsync. Under the user BACKUPPC c Zentyal backup works, but zentyal's shares (/home) avalaible only for root user. In the settings xfer backuppc make change backuppc user to root, and backup pc end job with error.
SSH access without a password from Proxmox to Zentyal set up and work fine (for backuppc and root).
For example - make backup /var/log/zentyal folder:


1. with root user
full backup started for directory /var/log/zentyal
Running: /usr/bin/ssh -x -l root 192.168.2.50 /usr/bin/rsync --server --sender --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --ignore-times . /var/log/zentyal/
Xfer PIDs are now 71799
Got remote protocol 1836213584
Fatal error (bad version): Permission denied, please try again.

Read EOF:
Tried again: got 0 bytes
fileListReceive() failed
Done: 0 files, 0 bytes
Got fatal error during xfer (fileListReceive failed)
Backup aborted (fileListReceive failed)
Not saving this as a partial backup since it has fewer files than the prior one (got 0 and 0 files versus 0)


2. with backuppc user
xafer: $sshPath -x -l backuppc $host $rsyncPath $argList+
2013-09-20 20:23:07 full backup started for directory /var/log/zentyal
2013-09-20 20:23:19 full backup 0 complete, 9 files, 359072008 bytes, 0 xferErrs (0 bad files, 0 bad shares, 0 other)

- all ok.

root user can't use rsync

how to HA V3.1 on iscsi

0
0
Hi,
can anyone tell me where to find a manual to settle HA using two servers connected to a synology through iscsi ?
Thanks a lot.
Pierre

V3.1

HTTPS Certificate Configuration for Proxmox 3.1

0
0
Hi!

Today I was playing with cacert and with a new proxmox 3.1 installation... According to http://pve.proxmox.com/wiki/HTTPSCer...eConfiguration , at first I have to backup the following files:

Backup PVE created files

cp /etc/pve/pve-root-ca.pem /etc/pve/pve-root-ca.pem.orig
cp /etc/pve/local/pve-ssl.key /etc/pve/local/pve-ssl.key.orig
cp /etc/pve/local/pve-ssl.pem /etc/pve/local/pve-ssl.pem.orig

I have not found these files, so I supposed that the correct files are the following:

- authkey.pub <--> corresponds to pve-ssl.pem
- pve-root-ca.pem <--> corrensponds to pve-root-ca.pem
- pve-www.key <--> corresponds to pve-ssl.key

Is it so ?

Thank you for reply.

Fail2ban for Proxmox 3.1

0
0
Taking a look to this link http://pve.proxmox.com/wiki/Fail2ban seems that it lacks of updates for the newest Proxmox 3.1, so I have decide to write down the following guide (it is a traslation and adaptation to this guide http://wiki.csnu.org/index.php?title..._avec_fail2ban ) :

Protecting the web interface with fail2ban

Code:

aptitude install fail2ban
Add the following string to the end of this file /etc/fail2ban/jail.local :

Code:

[proxmox3]
enabled = true
port = https,http,8006
filter = proxmox3
logpath = /var/log/daemon.log
maxretry = 3
bantime = 3600 # 1 hour

Create the file /etc/fail2ban/filter.d/proxmox3.conf :

Code:

[Definition]
failregex = pvedaemon\[.*authentication failure; rhost=<HOST> user=.* msg=.*
ignoreregex =

You can test your configuration with the command :

Code:

fail2ban-regex /var/log/daemon.log /etc/fail2ban/filter.d/proxmox3.conf
Restart fail2ban:

Code:

/etc/init.d/fail2ban restart
PS Can you update your wiki?

Configuring automatic vmbrXvY bridges.

0
0
I was changing some network config on our hosts and ran in to ifupdown-ing a bridge and than all the tap devices are disabled ( http://forum.proxmox.com/threads/130...network-access ).

So I build a quick and dirty fix for it:

Code:

#!/usr/bin/env bash

hostname=`hostname`
script_name=`basename $0`
bridge_number=${script_name: -1:1}


result=`grep vmbr$bridge_number /etc/pve/nodes/$hostname/qemu-server/*.conf \
  | sed -E "s/^.*server\/([0-9]+).conf\:net([0-9]+)\:\s.*bridge\=(vmbr[0-9]+)(,tag=([0-9]+))?$/brctl addif \3v\5 tap\1i\2/" \
  | sed -E "s/(^.*vmbr[0-9])v(\s.*$)/\1\2/"`


while read -r line
do
  # get status for vm
  vm_id=`echo $line | sed -E "s/^brctl addif vmbr[0-9]+(v[0-9]+)? tap([0-9]+)i.*$/\2/"`
  echo "Checking if $vm_id is running."
  status=`qm status $vm_id`


  # check if vm is running
  if [[ $status == "status: running" ]]; then
    # remove trailing v when there is no tag
    if [[ ${line: -1:1} == "v" ]]; then
      line=${line: 0:-1}
    fi
    echo "$line"
    $line
  fi
done <<< "$result"


# always exit with succes otherwise the device will be completely down
exit 0

And added a post-up hook to my /etc/network/interfaces:
Code:

auto loiface lo inet loopback


auto eth0
iface eth0 inet manual


auto vmbr0
iface vmbr0 inet manual
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0
    post-up /usr/local/bin/post-up-vmbr0


auto eth1
iface eth1 inet static
    address 172.18.100.1
    netmask 255.255.255.0


auto vmbr1
iface vmbr1 inet static
    address 172.18.100.1
    netmask 255.255.255.0
    gateway 172.18.100.11
    bridge_ports eth1
    bridge_stp off
    bridge_fd 0
    post-up /usr/local/bin/post-up-vmbr1

But now I'm also connecting tap devices to vmbr0v1 post-up to vmbr0, but vmbr0v1 never went down in the first place.

So is it possible to add the vmbrXvY bridges explicitly to my /etc/network/interfaces, that way I can give them their own post-up directive

Should it look like this?:
Code:

iface vmbr0v4 inet manual
    bridge_ports eth0.4
    bridge_stp off
    bridge_fd 0
    post-up /usr/local/bin/post-up-vmbr0v4

(offcourse I have to edit the script to support these new type of bridges)

Problems with VNC-Console over API

0
0
Hello,

we have some problems with the vnc-console (especially via api) and pve 3.0/3.1.
I managed to open VNC-Sessions via. webinterface by increasing $timeout in /usr/share/perl5/PVE/API2/Qemu.pm to 20 (no other changes made so far).
VNC via. webinterface now works but needs one reload before opening the session.
Error from log:
Code:

no connection : Connection timed out
TASK ERROR: command '/bin/nc -l -p 5900 -w 20 -c '/usr/bin/ssh -T -o BatchMode=yes <ip4> /usr/sbin/qm vncproxy 695 2>/dev/null'' failed: exit code 1

pveversion:
Code:

proxmox-ve-2.6.32: 3.1-109 (running kernel: 2.6.32-22-pve)
pve-manager: 3.1-3 (running version: 3.1-3/dc0e9b0e)
pve-kernel-2.6.32-22-pve: 2.6.32-107
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-1
pve-cluster: 3.0-7
qemu-server: 3.1-1
pve-firmware: 1.0-23
libpve-common-perl: 3.0-6
libpve-access-control: 3.0-6
libpve-storage-perl: 3.0-10
pve-libspice-server1: 0.12.4-1
vncterm: 1.1-4
vzctl: 4.0-1pve3
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.0-2

VNC-Console via API however doesn't work at all (it times out with same error in log and offers to login again).
Other API-functions (like creating backups, changing vm settings, power-functions, ...) work perfectly.
We tried with different Java-versions and clients.
How can we get the vnc-console working on first-try (I think that would also the fix for the problem with api-vnc)?

Proxmox 2.3 using vzctl instead of pvectl

0
0
hello,

I have an installation that was upgraded from 1.9 to 2.3.

I'm trying to create a container but it fails with an error that "vzctl" cannot find a sample conf file.

Now, I understand that the GUI should use pvectl and not vzctl.

How do I fix this?

thank you.

ERROR : Could Not Connect to server 192.168.100.130:5900

0
0
Hi everyone,
well , i created a VM with Windows XP iso
and when i tried to open the console , i receive this error "Network ERROR : Could Not Connect to server 192.168.100.130:5900"
can someone help me ?
thank you.

Virtual internal network

0
0
Hi,

Is it possible to configure virtual internal networking with Proxmox 3?
I want to have connection beetwen two Guests, that is separate from the external network.
Similar to the VMnet2,VMnet3,... networks creation in VMware Workstation.

Thanks a lot.

Problem with vm console (proxmox 2.3)

0
0
Hi ..
when i try to open THE VM CONSOLE , i have this error " Network error: could not connect to server: proxmox:5900 "
where a reload the console , i receive this error " network error remote side closed connection "
what i'm supposed to do .. ?
help me please
Viewing all 114791 articles
Browse latest View live




Latest Images