5 replies [Last post]
Karsten (Offline)
Cannot ping/rdp running windows instance
Posted: Thu, 01/28/2010 - 02:42

Hey all.

i am running into trouble accessing my Windows 2003 Server instance in Eucalyptus. I cannot ping or rdp the instance, which is shown as running.

post of nc.log

[Thu Jan 28 10:19:54 2010][019586][EUCAINFO ] StartNetwork(): SUCCESS return from vnetStartNetwork 0
[Thu Jan 28 10:19:54 2010][019586][EUCAINFO ] StartNetwork(): done
[Thu Jan 28 10:19:54 2010][019586][EUCAINFO ] doRunInstance() invoked (id=i-58B90B15 cores=4 disk=20 memory=4096)
[Thu Jan 28 10:19:54 2010][019586][EUCAINFO ] image=emi-61E40E41 at http://141.52.167.65:8773/services/Walrus/win2k3/win2$
[Thu Jan 28 10:19:54 2010][019586][EUCAINFO ] krnel=eki-3ABD0D6B at http://141.52.167.65:8773/services/Walrus/win-mem/mem$
[Thu Jan 28 10:19:54 2010][019586][EUCAINFO ] rmdsk=eri-DDBE10C9 at http://141.52.167.65:8773/services/Walrus/win2k3-ram/$
[Thu Jan 28 10:19:54 2010][019586][EUCAINFO ] vlan=15 priMAC=d0:0d:58:B9:0B:15 pubMAC=d0:0d:58:B9:0B:15
[Thu Jan 28 10:19:54 2010][019586][EUCAINFO ] network started for instance i-58B90B15
[Thu Jan 28 10:19:54 2010][019586][EUCAINFO ] retrieving images for instance i-58B90B15 (disk limit=20480MB)...
[Thu Jan 28 10:19:54 2010][019586][EUCAINFO ] verifying cached file in /var/lib/eucalyptus/instances/eucalyptus/cache/eki-3ABD0D6B/kernel...
[Thu Jan 28 10:19:54 2010][019586][EUCAINFO ] walrus_request(): downloading /tmp/walrus-digest-Bfreme
[Thu Jan 28 10:19:54 2010][019586][EUCAINFO ] from http://141.52.167.65:8773/services/Walrus/win-mem/memdisk.manifest.xml
[Thu Jan 28 10:19:54 2010][019586][EUCADEBUG ] walrus_request(): writing GET output to /tmp/walrus-digest-Bfreme
[Thu Jan 28 10:19:55 2010][019586][EUCADEBUG ] walrus_request(): wrote 3416 bytes in 2 writes
[Thu Jan 28 10:19:55 2010][019586][EUCAINFO ] walrus_request(): saved image in /tmp/walrus-digest-Bfreme
[Thu Jan 28 10:19:55 2010][019586][EUCAINFO ] vrun(): [cp -a /var/lib/eucalyptus/instances/eucalyptus/cache/eki-3ABD0D6B/kernel /var/lib/eucalyptu$
[Thu Jan 28 10:19:55 2010][019586][EUCAINFO ] verifying cached file in /var/lib/eucalyptus/instances/eucalyptus/cache/eri-DDBE10C9/ramdisk...
[Thu Jan 28 10:19:55 2010][019586][EUCAINFO ] walrus_request(): downloading /tmp/walrus-digest-pnjY4Z
[Thu Jan 28 10:19:55 2010][019586][EUCAINFO ] from http://141.52.167.65:8773/services/Walrus/win2k3-ram/win2k3-boot.img.manifest$
[Thu Jan 28 10:19:55 2010][019586][EUCADEBUG ] walrus_request(): writing GET output to /tmp/walrus-digest-pnjY4Z
[Thu Jan 28 10:19:55 2010][019586][EUCADEBUG ] walrus_request(): wrote 3437 bytes in 2 writes
[Thu Jan 28 10:19:55 2010][019586][EUCAINFO ] walrus_request(): saved image in /tmp/walrus-digest-pnjY4Z
[Thu Jan 28 10:19:55 2010][019586][EUCAINFO ] vrun(): [cp -a /var/lib/eucalyptus/instances/eucalyptus/cache/eri-DDBE10C9/ramdisk /var/lib/eucalypt$
[Thu Jan 28 10:19:55 2010][019586][EUCAINFO ] verifying cached file in /var/lib/eucalyptus/instances/eucalyptus/cache/emi-61E40E41/disk...
[Thu Jan 28 10:19:55 2010][019586][EUCAINFO ] walrus_request(): downloading /tmp/walrus-digest-k7zL5L
[Thu Jan 28 10:19:55 2010][019586][EUCAINFO ] from http://141.52.167.65:8773/services/Walrus/win2k3/win2k3.qcow2.manifest.xml
[Thu Jan 28 10:19:55 2010][019586][EUCADEBUG ] walrus_request(): writing GET output to /tmp/walrus-digest-k7zL5L
[Thu Jan 28 10:19:55 2010][019586][EUCADEBUG ] walrus_request(): wrote 14789 bytes in 6 writes
[Thu Jan 28 10:19:55 2010][019586][EUCAINFO ] walrus_request(): saved image in /tmp/walrus-digest-k7zL5L
[Thu Jan 28 10:19:55 2010][019586][EUCAINFO ] vrun(): [cp -a /var/lib/eucalyptus/instances/eucalyptus/cache/emi-61E40E41/disk /var/lib/eucalyptus/$
[Thu Jan 28 10:19:55 2010][019586][EUCADEBUG ] doDescribeResource() invoked
[Thu Jan 28 10:19:55 2010][019586][EUCADEBUG ] doDescribeInstances() invoked
[Thu Jan 28 10:19:56 2010][019586][EUCAERROR ] libvirt: Domain not found: no domain with matching name 'i-58B90B15' (code=42)
[Thu Jan 28 10:20:00 2010][019586][EUCAINFO ] vrun(): [//usr/lib/eucalyptus/euca_rootwrap //usr/share/eucalyptus/partition2disk /var/lib/eucalyptu$
[Thu Jan 28 10:20:00 2010][019586][EUCAINFO ] preparing images for instance i-58B90B15...
[Thu Jan 28 10:20:00 2010][019586][EUCAINFO ] running tune2fs on the root file system at using (/var/lib/eucalyptus/instances/karsten/i-58B90B15/$
[Thu Jan 28 10:20:00 2010][019586][EUCAINFO ] vrun(): [//usr/lib/eucalyptus/euca_rootwrap //usr/share/eucalyptus/add_key.pl //usr/lib/eucalyptus/e$
[Thu Jan 28 10:20:00 2010][019586][EUCADEBUG ] system_output(): [//usr/lib/eucalyptus/euca_rootwrap //usr/share/eucalyptus/gen_kvm_libvirt_xml --ra$
[Thu Jan 28 10:20:00 2010][019586][EUCAINFO ] currently running/booting: i-4EE6099C i-46810823 i-58B90B15
[Thu Jan 28 10:20:00 2010][019586][EUCAINFO ] started VM instance i-58B90B15
[Thu Jan 28 10:20:01 2010][019586][EUCADEBUG ] doDescribeInstances() invoked
[Thu Jan 28 10:20:01 2010][019586][EUCADEBUG ] doDescribeResource() invoked
[Thu Jan 28 10:20:07 2010][019586][EUCADEBUG ] doDescribeInstances() invoked
[Thu Jan 28 10:20:22 2010][019586][EUCADEBUG ] doDescribeResource() invoked
[Thu Jan 28 10:20:22 2010][019586][EUCAINFO ] doTerminateInstance() invoked (id=i-3592067D)
[Thu Jan 28 10:20:22 2010][019586][EUCAERROR ] ERROR: doTerminateInstance() failed error=101
[Thu Jan 28 10:20:22 2010][019586][EUCADEBUG ] doDescribeResource() invoked
[Thu Jan 28 10:20:22 2010][019586][EUCADEBUG ] doDescribeInstances() invoked

The last few lines make me stuck. The instance is started, but it will be terminated automatically, without giving a reason why. Can anyone tell me a reason why there is a doTerminateInstance()-command?

I checked the security groups. For me it looks fine.
GROUP karsten winRDP enables RDP through Windows instances
PERMISSION karsten winRDP ALLOWS tcp 22 22 FROM CIDR 141.52.0.0/16
PERMISSION karsten winRDP ALLOWS tcp 3389 3389 FROM CIDR 141.52.0.0/16
PERMISSION karsten winRDP ALLOWS icmp -1 -1 FROM CIDR 0.0.0.0/0

I setup the image with the help of following blog post:
http://ajmf.wordpress.com/2009/10/14/running-windows-on-eucalyptus-impro...

I checked the image in KVM. Everything runs fine, RDP works, VNC works. Status of the instance in Eucalyptus shows running, but I am not sure, if the image really runs. I don't know how to check this.

I hope you can help :)

hopefully,
Karsten

graziano (Offline)
Hello, your instance is not
Posted: Thu, 01/28/2010 - 08:35

Hello,

your instance is not terminated: if you notice the id is different. Eucalyptus tries hard to not leave behind run away instance: that terminate relates to a previous instance.

Do you have a non-windows instance that you can try? For example one of the instance we provide. Can you check if that instance gets network?

cheers
graziano

Karsten (Offline)
hi, thanks for your reply.
Posted: Fri, 01/29/2010 - 01:20

hi,

thanks for your reply. You're right, i didn't notice the id. But nevertheless the problem remains.
We're are already running some UNIX-distro without any problems. They are all running in stable way, getting network and full SSH connectivity.

My idea is that the instance runs into bluescreen after boot. According to the blog post, one of the requirements for running Windows in Eucalyptus is to install the system on scsi. But, starting the instance with libvirt (virt-manager & virt-install) the boot crashes. When i start the instance with cmd-line and plain kvm/qemu cmds, i finally works without any complains.
So as I think, eucalyptus is booting the instance with libvirt and it crashes.

But even this point is strange, cause i strictly worked as described in the blog.

cheers

graziano (Offline)
Hello, in this case the
Posted: Fri, 01/29/2010 - 15:13

Hello,

in this case the problem seems to be with the image itself: you can try to reproduce what eucalyptus does looking at the xml files in the INSTANCE_PATH directory (under the username who started the instance) and modifying it to be used with virsh directly. IN this way you may be able to debug the instance faster (and you can even add vnc too so you could check what is going on). Once you get your image to work with virsh, you should be able to use it with eucalyptus. Let us know if you get it to work.

cheers
graziano

Karsten (Offline)
I got the harddisk-file to
Posted: Mon, 02/08/2010 - 01:36

I got the harddisk-file to work via scsi under virsh / virt-manager. The problem might be the floppy-disk.
It definitely works with kvm/qemu to boot from floppy-disk. I double-checked the boot-configuration, copied all files correctly, but it comes to "hard disk configuration errors" when booting from floppy in virt-manager. So i think this is the point why the instance cannot be pinged in eucalyptus.

I am running out of ideas how to debug this scenario.

graziano (Offline)
Hello, indeed it looks like a
Posted: Mon, 02/08/2010 - 16:30

Hello,

indeed it looks like a problem with the image: as mentioned earlier we don't support windows images at this time. Are you trying to boot the image off a floppy image? Eucalyptus will not do that, if that is the case ...

cheers
graziano