Closed vpetcu1 closed 10 years ago
Hi Vasilica,
Quick question, are you using the appliance to get a multi node environment working?,
Anyway, first requirement to get an environment with multinode is an isolate network for this. Take a look on to the 5.3 section in the admin manual to the networking diagram. (http://theqvd.com/support/documentation/the-qvd-administration-manual#_networking_requirements.) Basically is a requirement to get the the hosts, and the virtual machines stays at the same subnet on order to get the L7R working properly.
So you must have the hosts interfaces and the Virtual Machine interfaces in the same subnet. Therefore your /etc/networks/interfaces should be something similar to this.
auto lo iface lo inet loopback
auto qvdnet0 address 192.168.1.x --> Node Ip netmask 255.255.255.0 network 192.168.1.0 gateway 192.168.1.1 pre-up ip link set eth0 down pre-up brctl addbr br0 pre-up brctl addif br0 eth0 pre-up ip addr flush dev eth0 post-down ip link set eth0 down post-down ip link set br0 down post-down brctl delif br0 eth0 post-down brctl delbr br0
You must to reserve the lower numbers in the subnet for the nodes, so get the vm.network.ip.start=192.168.1.11 and the 10 first will be reserved for the Nodes. And also, you should keep the gateway in this range to avoid possible conflicts.
Regards.
Thank you for your reply...
Yes, I'm trying to adapt the qindel appliance to a multi-node environment...
As I understand from the multi-node schema, the ideal environment will have each node with 3 NIC's... One for the outside LAN comunication, and 2 isolated NIC's (one for node comunication and one for Storage and database comunication...)
But for a test multinode environment, having the same subnet for everything will work, right ?
Thank you, Vasilica Petcu
Yes it works,
The point here is that you must to have, all the network interfaces for both nodes and virtual machines in the same subnetwork.
eg:
vm.network.ip.start=192.168.1.10
node1: 192.168.1.2/24 node2: 192.168.1.3/24
vms: 192.168.1.10-254/24
Regards.
Thank you for your reply.. I'll try later :)
Hello everyone,
I am tying to add one more node to config but cannot start a vm on the node that I have just added
log
2013/02/03 23:03:04 1674 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD.pm 512 - Command 'start' received for vm '118' 2013/02/03 23:03:04 1674 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/VMHandler.pm 74 - Command start received by vm 118 2013/02/03 23:03:04 1674 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/VMHandler.pm 114 - Successfully loaded row for VM '118' 2013/02/03 23:03:04 1674 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/DHCPDHandler.pm 53 - Registering mac '54:52:00:03:0f:f6', ip '10.3.15.246' for VM 118 in DHCP 2013/02/03 23:03:04 1674 ERROR /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/VMHandler/LXC.pm 709 - Unable to open '/cgroup/qvd-118/cgroup.procs': No such file or directory 2013/02/03 23:03:04 1674 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 215 - Running command 'ip link del qvd118' 2013/02/03 23:03:04 1674 ERROR /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 229 - Command 'ip link del qvd118' failed: 256 2013/02/03 23:03:04 1674 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 215 - Running command '/usr/lib/qvd/bin/lxc-destroy -n qvd-118' 2013/02/03 23:03:04 1674 ERROR /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 229 - Command '/usr/lib/qvd/bin/lxc-destroy -n qvd-118' failed: 256 2013/02/03 23:03:04 1674 ERROR /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/VMHandler/LXC.pm 834 - Command 'umount /var/lib/qvd/storage/rootfs/118-fs' exited with signal 1 2013/02/03 23:03:04 1674 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 215 - Running command '/usr/lib/qvd/bin/lxc-create -n qvd-118 -f /tmp/QTy71NQ5AE' 2013/02/03 23:03:04 1674 ERROR /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/VMHandler.pm 262 - Unable to delete chain 'QVD_118_INPUT', rc: 16711680 2013/02/03 23:03:04 1674 ERROR /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/VMHandler.pm 262 - Unable to delete chain 'QVD_118_FORWARD', rc: 16711680 2013/02/03 23:03:04 1674 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 215 - Running command '/usr/lib/qvd/bin/lxc-start -n qvd-118' 2013/02/03 23:03:04 1674 ERROR /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 229 - Command '/usr/lib/qvd/bin/lxc-start -n qvd-118' failed: 65280 2013/02/03 23:03:04 1674 ERROR /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/VMHandler/LXC.pm 709 - Unable to open '/cgroup/qvd-118/cgroup.procs': No such file or directory 2013/02/03 23:03:04 1674 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 215 - Running command 'ip link del qvd118' 2013/02/03 23:03:04 1674 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 215 - Running command '/usr/lib/qvd/bin/lxc-destroy -n qvd-118' 2013/02/03 23:03:04 1674 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/Agent.pm 215 - Running command 'umount /var/lib/qvd/storage/rootfs/118-fs' 2013/02/03 23:03:04 1674 INFO /usr/lib/qvd/lib/perl5/site_perl/5.14.2/QVD/HKD/DHCPDHandler.pm 62 - Unregistering mac '54:52:00:03:0f:f6', ip '10.3.15.246' for VM 118 in DHCP
environment
Virtual appliance provided by qindel
add a new VM with Ubuntu 12.04 and installed a new node... with :
apt-get install perl-qvd-node installed and configured dnsmasq with:
apt-get install dnsmasq service dnsmasq stop sed -i s/ENABLED=1/ENABLED=0/ /etc/default/dnsmasq
added to /etc/sysctl.conf net.ipv4.ip_forward=1
I had copied /etc/qvd/* from the VM appliance provided by qindel
my /etc/network/interfaces
auto eth0 iface eth0 inet static address 192.168.1.101 netmask 255.255.255.0 gateway 192.168.1.254 broadcast 192.168.1.255 dns-nameservers 192.168.1.254
auto qvdnet0 iface qvdnet0 inet static pre-up brctl addbr qvdnet0 pre-up iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source 192.168.1.101 pre-up iptables -t nat -A PREROUTING -d 192.168.1.101 -p tcp --dport 8443 -j DNAT --to-destination 10.3.15.2 address 10.3.15.2 netmask 255.255.255.0
/etc/qvd/node.conf
nodename=qvdnode1 vm.network.gateway=10.3.15.2
database.host = qvddatabase database.name = qvddatabase database.user = qvduser database.password = 2467d3744600858cc9026d5ac6005305
path.run = /var/run/qvd path.log = /var/log/qvd path.tmp = /var/tmp/qvd
log.filename = /var/log/qvd/qvd.log
wat.admin.login=admin wat.admin.password=admin
log.level=DEBUG
Added the new node on admin console and it show its status as "running"
I could use some help here... thank you Greetings, Vasilica Petcu
P.S. if you need more info... tell me :)