[one-users] ssh connection to a running VM fails
Ruben S. Montero
rubensm at dacya.ucm.es
Tue Jun 16 07:25:35 PDT 2009
Yes, but you need to modify the following line, in src/vmm/XenDriver.cc
// TODO: "file" method to specify disk images in xen is deprecated.
// The new method is using "tap:aio:" instead of "file:"
file << " "
<< "'tap:aio:" << vm->get_remote_dir() << "/disk." << i << ","
<< target << ","
<< mode
<< "'," << endl;
Just change tap:aio: for file: recompile and copy the new oned
executable (in src/nebula) to $ONE_LOCATION/bin. You do not need to
touch the DB or config files
Cheers
PS: As you see we are probably wrong with the comment above the code line ...
On Tue, Jun 16, 2009 at 4:14 PM, Denis Jurkovic <DenisJurkovic at web.de> wrote:
> ok my mistake was a different one it woks now when i change teh deployment.0 file
>
> is there a possibiliy that opennebula does this change automatically in my deployment ?
>
> thanks a lot
>
> cheers denis
>
>> -----Ursprüngliche Nachricht-----
>> Von: "Ruben S. Montero" <rubensm at dacya.ucm.es>
>> Gesendet: 16.06.09 15:46:04
>> An: Denis Jurkovic <DenisJurkovic at web.de>
>> CC: users at lists.opennebula.org
>> Betreff: Re: [one-users] ssh connection to a running VM fails
>
>
>> Try to use file: instead of tap:io: in deployment.0 and check if xm
>> create deployment.0 works. From the console output it seems that the
>> problem is with the root VBD...
>>
>> Cheers
>>
>> On Tue, Jun 16, 2009 at 3:30 PM, Denis Jurkovic <DenisJurkovic at web.de> wrote:
>> > Hi,
>> >
>> > i have a little problem with my deployed images.
>> > When i deploy a vm via xm create on a specific mashine i have no problem to reach it via ssh or xm console,
>> > but if i try to deploy a VM via opennebula the following error occurs when i try to reach the Vm.
>> > SSH is not able to find a route to the host. Well i tried several things but didn't succeed at all to fix the problem.
>> > i attached the deployment.0 file as well as the xen.cfg so you can see that they are pretty much the same in their construction
>> > Do you have any hint ? because i have no idea why there is a problem.
>> >
>> > Thanks a lot for your considerations.
>> >
>> > cheers
>> >
>> > denis
>> >
>> > ################ xm console output #############################
>> >
>> > root at humilis:~# xm list
>> > Name ID Mem VCPUs State Time(s)
>> > Domain-0 0 874 2 r----- 449.5
>> > one-29 3 128 1 -b---- 0.2
>> > root at humilis:~# xm console 3
>> > [ 0.004000] pkmap : 0xf5000000 - 0xf5200000 (2048 kB)
>> > [ 0.004000] vmalloc : 0xc9000000 - 0xf4ffe000 ( 703 MB)
>> > [ 0.004000] lowmem : 0xc0000000 - 0xc8800000 ( 136 MB)
>> > [ 0.004000] .init : 0xc038f000 - 0xc03c0000 ( 196 kB)
>> > [ 0.004000] .data : 0xc02cd0d8 - 0xc03868a0 ( 741 kB)
>> > [ 0.004000] .text : 0xc0100000 - 0xc02cd0d8 (1844 kB)
>> > [ 0.004000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
>> > [ 0.588043] Calibrating delay using timer specific routine.. 5593.69 BogoMIPS (lpj=11187392)
>> > [ 0.588099] Security Framework initialized
>> > [ 0.588111] SELinux: Disabled at boot.
>> > [ 0.588119] Capability LSM initialized
>> > [ 0.588140] Mount-cache hash table entries: 512
>> > [ 0.588294] Initializing cgroup subsys ns
>> > [ 0.588306] Initializing cgroup subsys cpuacct
>> > [ 0.588313] Initializing cgroup subsys devices
>> > [ 0.588352] CPU: Trace cache: 12K uops, L1 D cache: 16K
>> > [ 0.588363] CPU: L2 cache: 1024K
>> > [ 0.588380] Checking 'hlt' instruction... OK.
>> > [ 0.588944] SMP alternatives: switching to UP code
>> > [ 0.610730] Freeing SMP alternatives: 16k freed
>> > [ 0.610863] Brought up 1 CPUs
>> > [ 0.614080] net_namespace: 660 bytes
>> > [ 0.614343] NET: Registered protocol family 16
>> > [ 0.616296] Brought up 1 CPUs
>> > [ 0.616320] PCI: Fatal: No config space access function found
>> > [ 0.616329] PCI: setting up Xen PCI frontend stub
>> > [ 0.617290] ACPI: Interpreter disabled.
>> > [ 0.617299] Linux Plug and Play Support v0.97 (c) Adam Belay
>> > [ 0.617345] pnp: PnP ACPI: disabled
>> > [ 0.617627] suspend: event channel 7
>> > [ 0.617710] xen_mem: Initialising balloon driver.
>> > [ 0.620659] PCI: System does not support PCI
>> > [ 0.620671] PCI: System does not support PCI
>> > [ 0.621357] NET: Registered protocol family 2
>> > [ 0.621481] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
>> > [ 0.621758] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
>> > [ 0.621805] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
>> > [ 0.621846] TCP: Hash tables configured (established 8192 bind 8192)
>> > [ 0.621853] TCP reno registered
>> > [ 0.621932] NET: Registered protocol family 1
>> > [ 0.622062] checking if image is initramfs... it is
>> > [ 0.655644] Freeing initrd memory: 16456k freed
>> > [ 0.655852] platform rtc_cmos: registered platform RTC device (no PNP device found)
>> > [ 0.656224] audit: initializing netlink socket (disabled)
>> > [ 0.656243] type=2000 audit(1245156518.267:1): initialized
>> > [ 0.656417] VFS: Disk quotas dquot_6.5.1
>> > [ 0.656458] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
>> > [ 0.656488] msgmni has been set to 288
>> > [ 0.656612] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
>> > [ 0.656623] io scheduler noop registered
>> > [ 0.656629] io scheduler anticipatory registered
>> > [ 0.656634] io scheduler deadline registered
>> > [ 0.656649] io scheduler cfq registered (default)
>> > [ 0.659925] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
>> > [ 0.661919] brd: module loaded
>> > [ 0.662005] Xen virtual console successfully installed as hvc0
>> > [ 0.662058] Event-channel device installed.
>> > [ 0.671644] netfront: Initialising virtual ethernet driver.
>> > [ 0.672953] PNP: No PS/2 controller found. Probing ports directly.
>> > [ 0.673791] i8042.c: No controller found.
>> > [ 0.673940] mice: PS/2 mouse device common for all mice
>> > [ 0.674214] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
>> > [ 0.674521] No iBFT detected.
>> > [ 0.675171] TCP cubic registered
>> > [ 0.675180] NET: Registered protocol family 17
>> > [ 0.675193] Using IPI No-Shortcut mode
>> > [ 0.675369] registered taskstats version 1
>> > [ 5.774132] XENBUS: Waiting for devices to initialise: 295s...290s...285s...280s...275s...270s...265s...260s...255s...250s...245s...240s...235s...230s...225s...220s...215s...210s...205s...200s...195s...190s...185s...180s...175s...170s...165s...160s...155s...150s...145s...140s...135s...130s...125s...120s...115s...110s...105s...100s...95s...90s...85s...80s...75s...70s...65s...60s...55s...50s...45s...40s...35s...30s...25s...20s...15s...10s...5s...0s...
>> > [ 300.772819] XENBUS: Timeout connecting to device: device/vbd/2049 (local state 3, remote state 1)
>> > [ 300.772831] XENBUS: Device not ready: device/vbd/2049
>> > [ 300.772940] XENBUS: Timeout connecting to device: device/vbd/2050 (local state 3, remote state 1)
>> > [ 300.772952] XENBUS: Device not ready: device/vbd/2050
>> > [ 300.772959] XENBUS: Device with no driver: device/console/0
>> > [ 300.772968] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
>> > [ 300.773116] Freeing unused kernel memory: 196k freed
>> > Loading, please wait...
>> > Begin: Loading essential drivers ... done.
>> > Begin: Running /scripts/init-premount ... FATAL: Error inserting fan (/lib/modules/2.6.26-2-xen-686/kernel/drivers/acpi/fan.ko): No such device
>> > WARNING: Error inserting processor (/lib/modules/2.6.26-2-xen-686/kernel/drivers/acpi/processor.ko): No such device
>> > [ 300.947925] thermal: Unknown symbol acpi_processor_set_thermal_limit
>> > FATAL: Error inserting thermal (/lib/modules/2.6.26-2-xen-686/kernel/drivers/acpi/thermal.ko): Unknown symbol in module, or unknown parameter (see dmesg)
>> > done.
>> > Begin: Mounting root file system ... Begin: Running /scripts/local-top ... [ 301.441132] device-mapper: uevent: version 1.0.3
>> > [ 301.442976] device-mapper: ioctl: 4.13.0-ioctl (2007-10-18) initialised: dm-devel at redhat.com
>> > Volume group "humilis" not found
>> > done.
>> > Begin: Waiting for root file system ...
>> >
>> > ################################# xen.cfg #######################################
>> > #
>> > # Kernel + memory size
>> > #
>> > kernel = '/boot/vmlinuz-2.6.26-2-xen-686'
>> > ramdisk = '/boot/initrd.img-2.6.26-2-xen-686'
>> > memory = '128'
>> >
>> > #
>> > # Disk device(s).
>> > #
>> > root = '/dev/sda2 ro'
>> > disk = [
>> > 'file:/home/denis/Desktop/domains/testimageSDA/swap.img,sda1,w',
>> > 'file:/home/denis/Desktop/domains/testimageSDA/disk.img,sda2,w',
>> > ]
>> >
>> >
>> > #
>> > # Hostname
>> > #
>> > name = 'testimageSDA'
>> >
>> > #
>> > # Networking
>> > #
>> > vif = [ 'ip=141.28.94.111,mac=00:16:3E:0C:FF:88' ]
>> >
>> > #
>> > # Behaviour
>> > #
>> > on_poweroff = 'destroy'
>> > on_reboot = 'restart'
>> > on_crash = 'restart'
>> >
>> >
>> > #################################deployment.0###################################
>> > name = 'one-29'
>> > #O CPU_CREDITS = 26
>> > memory = '128'
>> > kernel = '/boot/vmlinuz-2.6.26-2-xen-686'
>> > ramdisk = '/boot/initrd.img-2.6.26-2-xen-686'
>> > root = '/dev/sda2'
>> > disk = [
>> > 'tap:aio:/var/lib/one//29/images/disk.0,sda1,w',
>> > 'tap:aio:/var/lib/one//29/images/disk.1,sda2,w',
>> > ]
>> > vif = [
>> > 'mac=00:03:8d:1c:5e:70,bridge=eth0',
>> > ]
>> >
>> >
>> >
>> >
>> > ___________________________________________________________________
>> > WEB.DE FreeDSL Komplettanschluss mit DSL 6.000 Flatrate und
>> > Telefonanschluss für 17,95 Euro/mtl.! http://produkte.web.de/go/02/
>> >
>> > _______________________________________________
>> > Users mailing list
>> > Users at lists.opennebula.org
>> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>> >
>>
>>
>>
>> --
>> +---------------------------------------------------------------+
>> Dr. Ruben Santiago Montero
>> Associate Professor
>> Distributed System Architecture Group (http://dsa-research.org)
>>
>> URL: http://dsa-research.org/doku.php?id=people:ruben
>> Weblog: http://blog.dsa-research.org/?author=7
>>
>> GridWay, http://www.gridway.org
>> OpenNebula, http://www.opennebula.org
>> +---------------------------------------------------------------+
>>
>
>
> ____________________________________________________________
> Text: GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://movieflat.web.de
>
>
--
+---------------------------------------------------------------+
Dr. Ruben Santiago Montero
Associate Professor
Distributed System Architecture Group (http://dsa-research.org)
URL: http://dsa-research.org/doku.php?id=people:ruben
Weblog: http://blog.dsa-research.org/?author=7
GridWay, http://www.gridway.org
OpenNebula, http://www.opennebula.org
+---------------------------------------------------------------+
More information about the Users
mailing list