Taiwan Hadoop Forum

台灣 Hadoop 技術討論區
現在的時間是 2018-07-19, 17:33

所有顯示的時間為 UTC + 8 小時




發表新文章 回覆主題  [ 6 篇文章 ] 
發表人 內容
 文章主題 : [opennebula] 關於 onevm 的 ssh 登入問題
文章發表於 : 2010-06-30, 17:20 
離線

註冊時間: 2010-06-28, 09:01
文章: 19
pc1:/home/domains# onevm list
ID USER NAME STAT CPU MEM HOSTNAME TIME
48 root vm01 runn 0 131072 pc1 00 00:04:40
49 root vm02 runn 0 131072 pc2 00 00:04:23
pc1:/home/domains# ssh vm01
root@vm01's password:

pc1:/home/domains# ssh vm02
ssh: connect to host vm02 port 22: No route to host

訊息如上
我是直接將vm01 deploy 給 pc1
再將 vm02 直接 deploy 給 pc2
然後可以 使用ssh連到vm01
但是 要用 ssh 連到 vm02時

就會出現" ssh: connect to host vm02 port 22: No route to host " 的訊息

請問各位大大這能怎麼解決?


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: [opennebula] 關於 onevm 的 ssh 登入問題
文章發表於 : 2010-06-30, 17:32 
離線

註冊時間: 2010-01-04, 16:48
文章: 7
可能是網路的問題,
可以暴力一點到直接到 pc02 ,
然後 xm console vm02,
檢查網路是否有通
ping ptt.cc
sudo ifconfig


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: [opennebula] 關於 onevm 的 ssh 登入問題
文章發表於 : 2010-06-30, 19:12 
離線

註冊時間: 2010-06-28, 09:01
文章: 19
rock 寫:
可能是網路的問題,
可以暴力一點到直接到 pc02 ,
然後 xm console vm02,
檢查網路是否有通
ping ptt.cc
sudo ifconfig


先感謝rock老師的回答~

剛剛試過用# xm console one-55
發現.....會無法正常進入
不知道是不是image掛了~"~
顯示訊息如最下:
另外請問rock老師,如果要砍掉vm的image,是直接把/home/domains 下的vm01資料夾刪除就可以了嗎?
然後在用"$ sudo xen-create-image --hostname=vm01 --ip=192.168.0.241 --mac=00:16:00:00:00:41" 產生相同名稱的image
這樣子是可行的嗎?


pc1:/home/domains# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 1120 2 r----- 1481.0
one-55 7 128 1 -b---- 5.2
pc1:/home/domains# xm console one-55
000 (2728 kB)
[ 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 : 0xc02cd853 - 0xc03868a0 ( 740 kB)
[ 0.004000] .text : 0xc0100000 - 0xc02cd853 (1846 kB)
[ 0.004000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[ 0.668048] Calibrating delay using timer specific routine.. 6404.52 BogoMIPS (lpj=12809043)
[ 0.668155] Security Framework initialized
[ 0.668169] SELinux: Disabled at boot.
[ 0.668180] Capability LSM initialized
[ 0.668209] Mount-cache hash table entries: 512
[ 0.668412] Initializing cgroup subsys ns
[ 0.668426] Initializing cgroup subsys cpuacct
[ 0.668436] Initializing cgroup subsys devices
[ 0.668487] CPU: Trace cache: 12K uops, L1 D cache: 16K
[ 0.668500] CPU: L2 cache: 2048K
[ 0.668522] Checking 'hlt' instruction... OK.
[ 0.669151] SMP alternatives: switching to UP code
[ 0.694816] Freeing SMP alternatives: 16k freed
[ 0.694996] Brought up 1 CPUs
[ 0.699451] net_namespace: 660 bytes
[ 0.699755] NET: Registered protocol family 16
[ 0.702154] Brought up 1 CPUs
[ 0.702181] PCI: Fatal: No config space access function found
[ 0.702192] PCI: setting up Xen PCI frontend stub
[ 0.703406] ACPI: Interpreter disabled.
[ 0.703417] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.703475] pnp: PnP ACPI: disabled
[ 0.703974] suspend: event channel 7
[ 0.704579] xen_mem: Initialising balloon driver.
[ 0.707571] PCI: System does not support PCI
[ 0.707585] PCI: System does not support PCI
[ 0.708462] NET: Registered protocol family 2
[ 0.708622] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.708969] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.709033] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.709085] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.709096] TCP reno registered
[ 0.709201] NET: Registered protocol family 1
[ 0.709369] checking if image is initramfs... it is
[ 0.763794] Freeing initrd memory: 14672k freed
[ 0.764137] platform rtc_cmos: registered platform RTC device (no PNP device found)
[ 0.764674] audit: initializing netlink socket (disabled)
[ 0.764702] type=2000 audit(1277896019.784:1): initialized
[ 0.764973] VFS: Disk quotas dquot_6.5.1
[ 0.765039] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.765094] msgmni has been set to 284
[ 0.765273] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.765288] io scheduler noop registered
[ 0.765297] io scheduler anticipatory registered
[ 0.765308] io scheduler deadline registered
[ 0.765334] io scheduler cfq registered (default)
[ 0.770034] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
[ 0.773318] brd: module loaded
[ 0.773458] Xen virtual console successfully installed as hvc0
[ 0.773533] Event-channel device installed.
[ 0.787831] netfront: Initialising virtual ethernet driver.
[ 0.789326] PNP: No PS/2 controller found. Probing ports directly.
[ 0.790181] i8042.c: No controller found.
[ 0.790331] mice: PS/2 mouse device common for all mice
[ 0.790530] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[ 0.790810] No iBFT detected.
[ 0.791651] TCP cubic registered
[ 0.791663] NET: Registered protocol family 17
[ 0.791677] Using IPI No-Shortcut mode
[ 0.791910] registered taskstats version 1
[ 0.819979] xen-vbd: registered block device major 8
[ 0.890134] XENBUS: Device with no driver: device/console/0
[ 0.890162] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.890345] 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
[ 1.132169] 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 ... done.
Begin: Running /scripts/local-premount ... done.
[ 1.964905] kjournald starting. Commit interval 5 seconds
[ 1.964949] EXT3-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.86 booting
Starting the hotplug events dispatcher: udevd[ 3.189594] udevd version 125 started
.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
Setting the system clock.
Unable to set System Clock to: Wed Jun 30 11:07:05 UTC 2010 (warning).
Activating swap...[ 6.708354] Adding 131064k swap on /dev/sda1. Priority:-1 extents:1 across:131064k
done.
Checking root file system...fsck 1.41.3 (12-Oct-2008)
/dev/sda2 contains a file system with errors, check forced.
/dev/sda2:  Duplicate or bad block in use!
/dev/sda2: Multiply-claimed block(s) in inode 40993: 196582
/dev/sda2: Multiply-claimed block(s) in inode 44522: 196582
/dev/sda2: (There are 2 inodes containing multiply-claimed blocks.)

/dev/sda2: File /var/log/dmesg (inode #40993, mod time Wed Jun 30 13:20:53 2010)
has 1 multiply-claimed block(s), shared with 1 file(s):
/dev/sda2: /var/run/crond.pid (inode #44522, mod time Tue Jun 29 20:56:36 2010)
/dev/sda2:

/dev/sda2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
fsck died with exit status 4
failed (code 4).
An automatic file system check (fsck) of the root filesystem failed. A manual fsck must be performed, then the system restarted. The fsck should be performed in maintenance mode with the root filesystem mounted in read-only mode. failed!
The root filesystem is currently mounted in read-only mode. A maintenance shell will now be started. After performing system maintenance, press CONTROL-D to terminate the maintenance shell and restart the system. (warning).
Give root password for maintenance
(or type Control-D to continue):


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: [opennebula] 關於 onevm 的 ssh 登入問題
文章發表於 : 2010-07-05, 15:21 
離線

註冊時間: 2010-07-05, 14:31
文章: 11
您好:
可以加各參數( force) 把他強制覆蓋過去,或是直接砍掉重練. 去你放置設定檔和印像檔 (/etc/xen or /home/domains) 的目錄把該虛擬機器目錄 (vm01) 砍掉.
sudo xen-create-image --hostname=vm01 --ip=192.168.0.241 --mac=00:16:00:00:00:41" --force

依據您的 log 資訊, 看起來是產生虛擬機器時出了問題.在啟動時 rootfs 掛載起來後可能因為上次不正常 unload 導致強制檢查機制發生.
砍掉重練可能比較快,如果沒有其他顧慮的話.

Thanks


回頂端
 個人資料 E-mail  
 
 文章主題 : Re: [opennebula] 關於 onevm 的 ssh 登入問題
文章發表於 : 2010-07-06, 13:24 
離線

註冊時間: 2010-06-28, 09:01
文章: 19
rider 寫:
您好:
可以加各參數( force) 把他強制覆蓋過去,或是直接砍掉重練. 去你放置設定檔和印像檔 (/etc/xen or /home/domains) 的目錄把該虛擬機器目錄 (vm01) 砍掉.
sudo xen-create-image --hostname=vm01 --ip=192.168.0.241 --mac=00:16:00:00:00:41" --force

依據您的 log 資訊, 看起來是產生虛擬機器時出了問題.在啟動時 rootfs 掛載起來後可能因為上次不正常 unload 導致強制檢查機制發生.
砍掉重練可能比較快,如果沒有其他顧慮的話.

Thanks


先感謝 rider 老師的回答~~

後來經過測試,發現應該是 image 檔案壞了,至於怎麼壞的,尚未做一個歸納,不過有可能跟沒有正常執行 onevm shutdown vm 有關,之後有發現造成 image 檔案壞掉的確定原因,再貼上來~~

感謝各位的回答^0^


回頂端
 個人資料 E-mail  
 
 文章主題 : opennebula onevm ssh
文章發表於 : 2011-04-12, 23:58 
離線

註冊時間: 2011-02-02, 11:36
文章: 1
來自: Poland
Unfortunately we wont be able to open port 443 for ssh.


回頂端
 個人資料 E-mail  
 
顯示文章 :  排序  
發表新文章 回覆主題  [ 6 篇文章 ] 

所有顯示的時間為 UTC + 8 小時


誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客


不能 在這個版面發表主題
不能 在這個版面回覆主題
不能 在這個版面編輯您的文章
不能 在這個版面刪除您的文章
不能 在這個版面上傳附加檔案

搜尋:
前往 :  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
正體中文語系由 竹貓星球 維護製作