Connect to SQL Server 2005 from JAVA 8 - sql-server-2005

Am preparing some code for migrating from VB&SQL Server to our new solution based on JAVA&Oracle DB, so am trying to connect on the SQL Server to query some data and then to put them on our new oracle tables, but when I try to connect via this code:
DriverManager.registerDriver(new com.microsoft.sqlserver.jdbc.SQLServerDriver());
Connexion con = DriverManager.getConnection("jdbc:sqlserver://192.168.10.97:1433;databaseName=ArchiveCCE", "test", "test");
it keeps show me the following error :
déc. 31, 2018 3:04:14 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: c199c628-c3c8-4850-8252-9446b6c90cab Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:14 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: f468dbd4-f340-4e6a-a6ab-103350c3a547 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:14 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: 8c96557e-88a6-4745-a1c6-f839bfc44142 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:15 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: 2987d710-3007-47a9-bfaa-2573c79ef049 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:15 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: f5f84cb6-33ac-4dc7-a500-cdb957470d01 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:16 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: f7eaa8cc-0a65-455b-bc8d-df64b18f0532 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:17 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: a223c4aa-f1c6-47c4-b40c-1d39a5a03db0 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:18 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: d822a2b8-8387-43ba-a814-6dade9f71e5f Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:19 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: d152a753-708b-4bcb-aa2e-87b5346911df Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:20 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: 1dba43a1-e6e3-4dc7-9707-42ba909a30aa Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:21 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: 193ee01c-f0b8-4e0c-8e06-77f4bde7ef5c Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:22 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: 34a6c52e-bbad-44a5-a4c3-acb712bf7a2a Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:23 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: 4bbfa516-99db-49bc-8648-657627b3010d Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:24 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: ea3649d5-1adc-4dd4-a340-a2d0d95e8af3 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:25 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: ad4d76d7-77ca-4686-ab2a-3f802f36d533 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:26 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: bbaa643f-1b0c-4d92-b5ff-81efb1f09a83 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
déc. 31, 2018 3:04:27 PM com.microsoft.sqlserver.jdbc.SQLServerConnection Prelogin AVERTISSEMENT: ConnectionID:1 ClientConnectionId: dcbff2e2-1673-435e-b1a8-de5ea610fc77 Prelogin error: host 192.168.10.97 port 1433 Unexpected end of prelogin response after 0 bytes read
com.microsoft.sqlserver.jdbc.SQLServerException: Échec de la connexion TCP/IP à l'hôte 192.168.10.97, port 1433. Erreur : « Le pilote a reçu une réponse de préconnexion inattendue. Examinez les propriétés de connexion et vérifiez qu'une instance de SQL Server est en cours d'exécution sur l'hôte et accepte les connexions TCP/IP au port. Ce pilote peut être utilisé uniquement avec SQL Server 2005 ou ultérieur. ». ClientConnectionId:dcbff2e2-1673-435e-b1a8-de5ea610fc77
SQL SERVER Test user
I verified that the SQL Server TCP/IP is enabled, I verified the port number (1344), I verified the Authentication method (SQL authentication) I even created the user "test" PW: "test" by my self, don't know how to get the connection established !
Could some one help me please ?

Related

libvrt: dnsmasq: failed to bind DHCP server socket: Address already in use

I am trying to create a VM using virt-manager. BUt i see
Error starting network 'default': internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper) unexpected exit status 2:
dnsmasq: failed to bind DHCP server socket: Address already in use
Traceback (most recent call last):
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, in tmpcb
callback(*args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/network.py", line 69, in start
self._backend.create()
File "/usr/lib/python3.9/site-packages/libvirt.py", line 3463, in create
raise libvirtError('virNetworkCreate() failed')
libvirt.libvirtError: internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper) unexpected exit status 2:
dnsmasq: failed to bind DHCP server socket: Address already in use
Can anyone help me what to do now.
also checked
# journalctl -u libvirtd.service
-- Journal begins at Fri 2022-01-07 04:27:05 IST, ends at Sat 2022-01-08 11:10:46 IST. --
Jan 08 10:34:38 gauranga systemd[1]: Started Virtualization daemon.
Jan 08 11:03:20 gauranga dnsmasq[702843]: failed to bind DHCP server socket: Address already in use
Jan 08 11:03:20 gauranga dnsmasq[702843]: FAILED to start up
Jan 08 11:03:20 gauranga libvirtd[699713]: libvirt version: 7.9.0
Jan 08 11:03:20 gauranga libvirtd[699713]: hostname: gauranga
Jan 08 11:03:20 gauranga libvirtd[699713]: internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf>
dnsmasq: failed to bind DHCP server socket: Address already in use
Jan 08 11:03:49 gauranga dnsmasq[702936]: failed to bind DHCP server socket: Address already in use
Jan 08 11:03:49 gauranga dnsmasq[702936]: FAILED to start up
Jan 08 11:03:49 gauranga libvirtd[699713]: internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf>
dnsmasq: failed to bind DHCP server socket: Address already in use
Jan 08 11:04:10 gauranga dnsmasq[703015]: failed to bind DHCP server socket: Address already in use
Jan 08 11:04:10 gauranga dnsmasq[703015]: FAILED to start up
Jan 08 11:04:10 gauranga libvirtd[699713]: internal error: Child process (VIR_BRIDGE_NAME=virbr0 /usr/bin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf>
dnsmasq: failed to bind DHCP server socket: Address already in use

Unable to register to the hub [duplicate]

This question already has answers here:
Getting error while running the selenium test cases with selenium grid?
(1 answer)
What is the exact purpose of Selenium Grid?
(1 answer)
selenium grid listening on node port instead of hub port
(3 answers)
Closed 2 years ago.
I am trying to bring the selenium Grid up and running in my local machine and the below is the command that i ran on my local machine.
java -jar selenium-server-standalone-2.28.0.jar -role webdriver -hub http://<IP>:4444/grid/register -host <IP>
Nov 27, 2017 7:42:06 PM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a selenium grid node
Nov 27, 2017 7:42:07 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect
INFO: I/O exception (java.net.NoRouteToHostException) caught when connecting to the target host: No route to host (Host unreachable)
Nov 27, 2017 7:42:07 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect
INFO: Retrying connect
Nov 27, 2017 7:42:07 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect
INFO: I/O exception (java.net.NoRouteToHostException) caught when connecting to the target host: No route to host (Host unreachable)
Nov 27, 2017 7:42:07 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect
INFO: Retrying connect
Nov 27, 2017 7:42:07 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect
INFO: I/O exception (java.net.NoRouteToHostException) caught when connecting to the target host: No route to host (Host unreachable)
Nov 27, 2017 7:42:07 PM org.apache.http.impl.client.DefaultRequestDirector tryConnect
INFO: Retrying connect
Nov 27, 2017 7:42:07 PM org.openqa.grid.internal.utils.SelfRegisteringRemote startRemoteServer
WARNING: error getting the parameters from the hub. The node may end up with wrong timeouts.No route to host (Host unreachable)
19:42:07.460 INFO - Java: Oracle Corporation 25.131-b11
19:42:07.464 INFO - OS: Linux 4.10.0-38-generic amd64
19:42:07.477 INFO - v2.28.0, with Core v2.28.0. Built from revision 18309
19:42:07.582 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:5555/wd/hub
19:42:07.583 INFO - Version Jetty/5.1.x
19:42:07.584 INFO - Started HttpContext[/selenium-server,/selenium-server]
19:42:07.586 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler#1d8d30f7
19:42:07.587 INFO - Started HttpContext[/wd,/wd]
19:42:07.587 INFO - Started HttpContext[/selenium-server/driver,/selenium-
Also, i am facing the same issue while running the above command in my Virtual machine as well.

How to re-route the Openshift private address to a public one

I set up openshift V3 all-in-one on a VM in the cloud so how can I contact it as the address is private and internal.
I think I have to start Vagrand with some magic parameters but I haven't clue about them.
Thanks
When testing Openshift, I deployed the all in one VM in an Openstack instance.
To be able to access Openshift, I had to change master-config.yaml configuration (which in the VM is located in /var/lib/origin/openshift.local.config/master/master-config.yaml)
Changing all references of the internal IP (10.2.2.2) to my public domain (https://my-domain.com:8443) did the trick.
I also had to regenerate the server certificates, including the public IP of my Openstack instance, this way:
oadm ca create-server-cert --cert=master.server.crt --key=master.server.key --signer-cert=/var/lib/origin/openshift.local.config/master/ca.crt --signer-key=/var/lib/origin/openshift.local.config/master/ca.key --signer-serial=/var/lib/origin/openshift.local.config/master/ca.serial.txt --hostnames=kubernetes.default.svc,kubernetes.default.svc.cluster.local,localhost,openshift.default.svc.cluster.local,127.0.0.1,10.2.2.2,yourdomain.com,yourpublicIP
Hope this helps
Here is what I've tried (in an answer to better document my attempts)
1 -
systemctl stop origin
2 -
oadm ca create-server-cert --cert=/var/lib/origin/openshift.local.config/master/master.server.crt --key=/var/lib/origin/openshift.local.config/master/master.server.key --signer-cert=/var/lib/origin/openshift.local.config/master/ca.crt --signer-key=/var/lib/origin/openshift.local.config/master/ca.key --signer-serial=/var/lib/origin/openshift.local.config/master/ca.serial.txt --hostnames=kubernetes.default.svc,kubernetes.default.svc.cluster.local,localhost,openshift.default.svc.cluster.local,127.0.0.1,192.168.76.120
3 -
edit /var/lib/origin/openshift.local.config/master/master-config.yaml, replace all occurences of "10.2.2.2" with "192.168.76.120"
4 -
edit /etc/systemd/system/origin.service, replace "10.2.2.2" with "192.168.76.120"
5 -
systemctl daemon-reload
6 -
systemctl start origin
Following these steps, I get the following in the /var/log/messages:
Dec 29 21:12:29 localhost systemd: Starting Session 7 of user root.
Dec 29 21:13:30 localhost systemd: Starting OpenShift...
Dec 29 21:13:30 localhost openshift: W1229 16:13:30.512389 9725 start_master.go:272] Warning: assetConfig.loggingPublicURL: Invalid value: "": required to view aggregated container logs in the console, master start will continue.
Dec 29 21:13:30 localhost openshift: E1229 16:13:30.525718 9725 cacher.go:220] unexpected ListAndWatch error: pkg/storage/cacher.go:163: Failed to list *api.ClusterPolicyBinding: client: etcd cluster is unavailable or misconfigured
Dec 29 21:13:30 localhost openshift: E1229 16:13:30.525809 9725 cacher.go:220] unexpected ListAndWatch error: pkg/storage/cacher.go:163: Failed to list *api.ClusterPolicy: client: etcd cluster is unavailable or misconfigured
Dec 29 21:13:30 localhost openshift: E1229 16:13:30.526034 9725 cacher.go:220] unexpected ListAndWatch error: pkg/storage/cacher.go:163: Failed to list *api.Policy: client: etcd cluster is unavailable or misconfigured
Dec 29 21:13:30 localhost openshift: E1229 16:13:30.526127 9725 cacher.go:220] unexpected ListAndWatch error: pkg/storage/cacher.go:163: Failed to list *api.PolicyBinding: client: etcd cluster is unavailable or misconfigured
Dec 29 21:13:30 localhost openshift: E1229 16:13:30.526417 9725 cacher.go:220] unexpected ListAndWatch error: pkg/storage/cacher.go:163: Failed to list *api.Group: client: etcd cluster is unavailable or misconfigured
Dec 29 21:13:30 localhost openshift: E1229 16:13:30.527610 9725 reflector.go:203] github.com/openshift/origin/vendor/k8s.io/kubernetes/plugin/pkg/admission/limitranger/admission.go:154: Failed to list *api.LimitRange: Get https://10.2.2.2:8443/api/v1/limitranges?resourceVersion=0: dial tcp 10.2.2.2:8443: getsockopt: connection refused
Dec 29 21:13:30 localhost openshift: E1229 16:13:30.528199 9725 reflector.go:203] github.com/openshift/origin/vendor/k8s.io/kubernetes/plugin/pkg/admission/namespace/lifecycle/admission.go:122: Failed to list *api.Namespace: Get https://10.2.2.2:8443/api/v1/namespaces?resourceVersion=0: dial tcp 10.2.2.2:8443: getsockopt: connection refused
Dec 29 21:13:30 localhost openshift: E1229 16:13:30.530127 9725 reflector.go:203] github.com/openshift/origin/vendor/k8s.io/kubernetes/plugin/pkg/admission/limitranger/admission.go:154: Failed to list *api.LimitRange: Get https://10.2.2.2:8443/api/v1/limitranges?resourceVersion=0: dial tcp 10.2.2.2:8443: getsockopt: connection refused
Dec 29 21:13:30 localhost openshift: E1229 16:13:30.530246 9725 reflector.go:214] github.com/openshift/origin/vendor/k8s.io/kubernetes/plugin/pkg/admission/serviceaccount/admission.go:103: Failed to list *api.ServiceAccount: Get https://10.2.2.2:8443/api/v1/serviceaccounts?resourceVersion=0: dial tcp 10.2.2.2:8443: getsockopt: connection refused
Dec 29 21:13:30 localhost openshift: E1229 16:13:30.530309 9725 reflector.go:214] github.com/openshift/origin/vendor/k8s.io/kubernetes/plugin/pkg/admission/serviceaccount/admission.go:119: Failed to list *api.Secret: Get https://10.2.2.2:8443/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token&resourceVersion=0: dial tcp 10.2.2.2:8443: getsockopt: connection refused
Dec 29 21:13:30 localhost openshift: E1229 16:13:30.530494 9725 reflector.go:214] github.com/openshift/origin/vendor/k8s.io/kubernetes/plugin/pkg/admission/resourcequota/resource_access.go:83: Failed to list *api.ResourceQuota: Get https://10.2.2.2:8443/api/v1/resourcequotas?resourceVersion=0: dial tcp 10.2.2.2:8443: getsockopt: connection refused
Dec 29 21:13:30 localhost openshift: E1229 16:13:30.530524 9725 cacher.go:220] unexpected ListAndWatch error: pkg/storage/cacher.go:163: Failed to list *api.OAuthAccessToken: client: etcd cluster is unavailable or misconfigured

bees SDK is attempting to communicate with localhost

The cloudbees SDK 1.1 is attempting to connect to localhost:8080 when I run commands.
Any idea what I need to do to fix it?
Example
bees app:info -v
# CloudBees SDK version: 1.1
Enter application ID (ex: account/appname) : account/app
API call: http://localhost:8080/api?timestamp=1344846702&v=1.0&api_key=KEY&action=application.info&app_id=account%2Fapp&format=xml&sig_version=1&sig=SIGN
Aug 13, 2012 6:31:42 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
Aug 13, 2012 6:31:42 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Aug 13, 2012 6:31:42 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
Aug 13, 2012 6:31:42 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Aug 13, 2012 6:31:42 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (java.net.ConnectException) caught when processing request: Connection refused
Aug 13, 2012 6:31:42 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
ERROR: Connection refused
Thank you
Jono
Add bees.api.url=https\://api.cloudbees.com/api to ~/.bees/bees.config
After backing up ~/.bees and then running bees init and recreating my bees configuration directory I noticed the extra entry in bees.config.

Two virtual machines limited in one physical machine above Eucalyptus Xen

I have an Eucalyptus-based cloud using Xen with 3 nodes. When I run a VM more than twice the number of physical machines in the xen cluster, the extra VMs never boot up, they always change state from pending to terminate, and the log file shows the node controller shutoff the extra VM after it check the instances number. When I manually shutdown some VM, then I can easily start up some VM exactly as the number I've shutdown.
The log shows this error:
ERROR: [Tue Jan 17 12:51:05 2012][004231][EUCAERROR ] libvirt: POST
operation failed: xend_post: error from xen daemon: (xend.err 'Device
2049 (vbd) could not be connected. /etc/xen/scripts/block failed;
error detected.') (code=11) [Tue Jan 17 12:51:05
2012][004231][EUCADEBUG ] doDescribeResource() invoked [Tue Jan 17
12:51:06 2012][004231][EUCADEBUG ] doDescribeInstances() invoked [Tue
Jan 17 12:51:06 2012][004231][EUCADEBUG ] doDescribeInstances():
instanceId=i-3BB00757 publicIp=192.168.4.165 privateIp=192.168.4.165
mac=d0:0d:3B:B0:07:57 vlan=-1 networkIndex=-1 [Tue Jan 17 12:51:06
2012][004231][EUCADEBUG ] doDescribeInstances(): instanceId=i-473807EE
publicIp=192.168.4.112 privateIp=192.168.4.112 mac=d0:0d:47:38:07:EE
vlan=-1 networkIndex=-1 [Tue Jan 17 12:51:06 2012][004231][EUCADEBUG ]
doDescribeInstances(): instanceId=i-348A06AE publicIp=0.0.0.0
privateIp=0.0.0.0 mac=d0:0d:34:8A:06:AE vlan=-1 networkIndex=-1 [Tue
Jan 17 12:51:06 2012][004231][EUCAERROR ] libvirt: POST operation
failed: xend_post: error from xen daemon: (xend.err 'Device 2049 (vbd)
could not be connected. /etc/xen/scripts/block failed; error
detected.') (code=11) [Tue Jan 17 12:51:08 2012][004231][EUCAERROR ]
libvirt: POST operation failed: xend_post: error from xen daemon:
(xend.err 'Device 2049 (vbd) could not be connected.
/etc/xen/scripts/block failed; error detected.') (code=11) [Tue Jan 17
12:51:09 2012][004231][EUCAERROR ] libvirt: POST operation failed:
xend_post: error from xen daemon: (xend.err 'Device 2051 (vbd) could
not be connected. /etc/xen/scripts/block failed; error detected.')
(code=11) [Tue Jan 17 12:51:10 2012][004231][EUCAERROR ] libvirt: POST
operation failed: xend_post: error from xen daemon: (xend.err 'Device
2051 (vbd) could not be connected. /etc/xen/scripts/block failed;
error detected.') (code=11) [Tue Jan 17 12:51:10
2012][004231][EUCAFATAL ] hypervisor failed to start domain [Tue Jan
17 12:51:10 2012][004231][EUCADEBUG ] state change for instance
i-348A06AE: Staging -> Shutoff (Extant) [Tue Jan 17 12:51:10
2012][004231][EUCAERROR ] libvirt: Domain not found:
xenUnifiedDomainLookupByName (code=42) [Tue Jan 17 12:51:10
2012][004231][EUCAINFO ] cleaning up state for instance i-348A06AE
Is this a limitation for CentOS 5.* and RedHat 5.? Is it fixed on CentOS 6.?
http://docs.vmd.citrix.com/XenServer/5.0.0/1.0/en_gb/guest.html#rhel5_limitations
"Only 3 virtual network interfaces are supported in versions below 5.2. For 5.2 and above, 7 virtual network interfaces are supported."
I opened this topic in both CentOS and Eucalyptus forums without luck:
https://www.centos.org/modules/newbb/viewtopic.php?topic_id=35491&forum=38
http://open.eucalyptus.com/forum/unable-run-more-4-instances-even-extra-resources
Thanks, Leandro
The error you are seeing seems related to disk not to network (Device 2049 (vbd) could not be connected. /etc/xen/scripts/block failed; error detected). I don't see that script on a CentOS 5.7 install I have here, so you may want to dig into that script to see if there is some obvious error.
The solution was to increase number of loop devices in CentOS 5, as detailed in the following link:
http://open.eucalyptus.com/participate/wiki/increase-number-loop-devices-centos-5
As the link is no longer valid, you have to go to archive.org or see this similar answer:
how to increase the loop devices number