프로그램 사용/xen2012. 4. 4. 23:16
도대체.. 머가 문제일까.. OTL
그냥 i3라도 사고 할까 하아...



설치를 완료할 수 없음: 'POST 작업 실패: xen_post: xen 데몬으로부터 오류: <Fault 3: 'virt0'>'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 44, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 1899, in do_install
    guest.start_install(False, meter=meter)
  File "/usr/lib/pymodules/python2.7/virtinst/Guest.py", line 1223, in start_install
    noboot)
  File "/usr/lib/pymodules/python2.7/virtinst/Guest.py", line 1291, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1686, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: POST 작업 실패: xen_post: xen 데몬으로부터 오류: <Fault 3: 'virt0'> 

겁나 검색해보니
/usr/share/qemu/keymap 이 있어야 하는데
/usr/share/qemu-linaro/keymap만 존재한다 -_-

아무튼 이거 하나 해주면 실행됨 -_-
$ sudo ln -s /usr/share/qemu-linaro /usr/share/qemu 

[링크 : https://bugs.launchpad.net/ubuntu/+source/xen/+bug/811635]



'프로그램 사용 > xen' 카테고리의 다른 글

xen 전가상화로 설치하기  (0) 2012.04.11
xen paravirt로 설치하기....?  (0) 2012.04.11
xend 실행안하고 virt-manager 실행하기 (으악!)  (0) 2012.04.04
qemu-dm not found  (4) 2012.04.03
xen에서 cdrom 사용하기  (0) 2012.04.03
Posted by 구차니
프로그램 사용/xen2012. 4. 4. 22:05
아무생각 없이
$ sudo vi /etc/xen/xend-config.sxp 
(xend-unix-server no) 

이렇게 주석만 풀어주고 실행했더니 아래와 같은 에러가 발생한다.


내용을 yes로 수정후, 서비스만 재시작 해주면 해결된다.
$ sudo service xend restart
 * Restarting Xen daemons                                                [ OK ] 
 

'프로그램 사용 > xen' 카테고리의 다른 글

xen paravirt로 설치하기....?  (0) 2012.04.11
xen / qemu keymap 심볼릭 링크  (0) 2012.04.04
qemu-dm not found  (4) 2012.04.03
xen에서 cdrom 사용하기  (0) 2012.04.03
Xen (ubuntu 11.10) with AMD 4200+x2  (0) 2012.04.01
Posted by 구차니
Linux/Ubuntu2012. 4. 4. 21:35
fstab에서 마운트 옵션을 noatime, discard 를 추가해주면 된다고 한다.
noatime은 atime(Access TIME)을 변경하지 않도록 하는 것이고
discard는 블럭이 사용하지 않을때 TRIM 명령을 사용하도록 하는 것이다.

noatime
Do not update inode access times on this filesystem (e.g, for faster access on the news spool to speed up news servers). 

discard
/nodiscard
Controls whether ext4 should issue discard/TRIM commands to the underlying block device when blocks are freed. This is useful for SSD devices and sparse/thinly-provisioned LUNs, but it is off by default until sufficient testing has been done.

[링크 : 
http://linux.die.net/man/8/mount] 

아무튼 fstrim을 통해서 주기적으로 해주라는데 이건 옵션적인거니까 머 일단 패스?
FSTRIM(8)                                                            FSTRIM(8)



NAME
       fstrim - discard unused blocks on a mounted filesystem

SYNOPSIS
       fstrim [-o offset] [-l length] [-m minimum-extent] [-v] mountpoint


DESCRIPTION
       fstrim  is  used  on a mounted filesystem to discard (or "trim") blocks
       which are not in use by the filesystem.  This is useful for solid-state
       drives (SSDs) and thinly-provisioned storage.

       By  default,  fstrim  will discard all unused blocks in the filesystem.
       Options may be used to modify this behavior based on range or size,  as
       explained below.

       The  mountpoint  argument  is  the  pathname of the directory where the
       filesystem is mounted.


OPTIONS
       The offset, length, and minimum-free-extent arguments may  be  followed
       by  binary  (2^N) suffixes KiB, MiB, GiB, TiB, PiB and EiB (the "iB" is
       optional, e.g. "K" has the same meaning as  "KiB")  or  decimal  (10^N)
       suffixes KB, MB, GB, PB and EB.

       -h, --help
              Print help and exit.

       -o, --offset offset
              Byte offset in filesystem from which to begin searching for free
              blocks to discard.  Default  value  is  zero,  starting  at  the
              beginning of the filesystem.

       -l, --length length
              Number  of  bytes after starting point to search for free blocks
              to discard.  If the specified value extends past the end of  the
              filesystem,  fstrim  will  stop at the filesystem size boundary.
              Default value extends to the end of the filesystem.

       -m, --minimum minimum-free-extent
              Minimum contiguous free range to discard, in bytes. (This  value
              is  internally  rounded up to a multiple of the filesystem block
              size).  Free ranges smaller  than  this  will  be  ignored.   By
              increasing  this  value, the fstrim operation will complete more
              quickly  for  filesystems  with  badly   fragmented   freespace,
              although  not  all  blocks  will be discarded.  Default value is
              zero, discard every free block.

       -v, --verbose
              Verbose execution. When specified fstrim will output the  number
              of  bytes passed from the filesystem down the block stack to the
              device for potential discard. This number is a  maximum  discard
              amount  from  the  storage  device's perspective, because FITRIM
              ioctl called repeated will keep sending  the  same  sectors  for
              discard repeatedly.

              fstrim  will  report the same potential discard bytes each time,
              but only sectors which had been written to between the  discards
              would actually be discarded by the storage device.  Further, the
              kernel block layer reserves the  right  to  adjust  the  discard
              ranges  to fit raid stripe geometry, non-trim capable devices in
              a LVM setup, etc.  These reductions would not  be  reflected  in
              fstrim_range.len (the --length option).


AUTHOR
       Lukas Czerner <lczerner@redhat.com>
       Karel Zak <kzak@redhat.com>

SEE ALSO
       mount(8)

AVAILABILITY
       The  fstrim  command is part of the util-linux package and is available
       from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.



                                   Nov 2010                          FSTRIM(8) 

[링크 : http://www.wilderssecurity.com/showthread.php?t=310021]
Posted by 구차니
embeded/ARM2012. 4. 4. 10:04
stellarisware를 설치하면 기본적으로 추가되는 예제를 추려내서 테스트 해보면 되는데,
대부분의 장비들이 굳이 하이버네이트 모드로 들어가는 행동을 취할수 없을때가 있다.
항상 켜져있어야 하는 장비인데, 언제꺼질지 모르지만 시간은 유지해야 한다면
하이버네이트 모드를 들어갈수 있는 시점을 정할수 없기 때문에 항상 하이버네이트 모드를 켜주면 된다.

C:\StellarisWare\boards\ek-lm3s1968\hibernate\hibernate.c
파일을 참고해서 추려내자면
static void SetRTCFucntion(void)
{
//	time_t current_time;
//	struct tm struct_time = { 0, 0, 10, 26,2,2012 - 1900,0,0,0};
//	current_time = mktime(&struct_time);
	
	SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE);
		HibernateEnableExpClk(SysCtlClockGet());
		HibernateClockSelect(HIBERNATE_CLOCK_SEL_DIV128);
		HibernateRTCEnable();
//		HibernateRTCSet(current_time);
		HibernateWakeSet(HIBERNATE_WAKE_PIN);
		HibernateRequest();
}

일단 RTC를 사용하려면 무조건 하이버네이트 장치를 사용하도록 해야한다.
    SysCtlPeripheralEnable(SYSCTL_PERIPH_HIBERNATE);

하이버네이트 모듈에 들어갈 클럭을 지정해주는데, 32.768Khz가 들어가거나 4.194304Mhz를 /128 해서 넣어주도록 한다.
    HibernateEnableExpClk(SysCtlClockGet());
    HibernateClockSelect(HIBERNATE_CLOCK_SEL_DIV128); // 4.194304 Mhz input divider to 32.768kHz

 하이버네이트 모듈에 내장된 RTC 를 사용하도록 설정하고
    HibernateRTCEnable(); 

원인은 알수 없지만 wakeup 조건을 반드시 설정해 주어야 하이버네이트 모드가 작동한다.
WAKE 핀은 NC 처리해도 작동에 이상은 없는듯 하다.
    HibernateWakeSet(HIBERNATE_WAKE_PIN); 

마지막으로 하이버네이트 모드를 들어가도록 요청한다.
    HibernateRequest(); 


RTC 시간은 배터리가 소진된 시점의 마지막 시간이 다음 부팅시까지 유지된다.

'embeded > ARM' 카테고리의 다른 글

KEIL Program Size 항목별 의미  (0) 2012.04.19
타이머 핸들러 시간 충돌 안나게 조절하기?  (0) 2012.04.13
TI LM3S1607 time epoch  (0) 2012.03.27
H-JTAG 에러이유?  (0) 2012.03.23
KEIL MDK(ARM)에 H-JTAG 사용하기  (0) 2012.03.23
Posted by 구차니
프로그램 사용/xen2012. 4. 3. 22:51

"인터페이스 목록을 위한 HAL을 초기화 할 수 없음" 빨간 느낌표 무시하고 그냥 다음을 누르면


"'/usr/lib64/xen/qemu-dm' not found" 라는 에러가 발생한다.


우분투 데스크탑 11.10 64bit를 깔았는데
/usr/lib/xen-4.0.1 은 존재하지만
/usr/lib64가 존재하지 않는다.

그런 이유로 아래처럼 심볼릭 링크를 걸어준다.

$ sudo mkdir /usr/lib64
$ sudo ln -s /usr/lib64/xen /usr/lib/xen-4.0.1  

[링크 : http://bderzhavets.wordpress.com/2011/07/23/build-xen-4-1-1-on-ubuntu-11-10/]
[링크 : http://www.xen-support.com/?p=408]



아무튼 그러면 생성하다 말고 이런 에러를 또 뱉어낸다 -_-


---
2012.04.04
루프 디바이스
[링크 : http://www.linuxhelp.in/2011/06/error-device-vbd-could-not-be-connected.html ]

2012.04.14
$ sudo vi /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash max_loop=64"
$ sudo update-grub
 
[링크 : http://lists.debian.org/debian-user/2006/12/msg00901.html]

도움이 될듯한 링크 후우.. 언제 또 읽어보나?
[링크 :  http://wiki.libvirt.org/page/VirtualNetworking]
Posted by 구차니
LG전자 고갱센터에 전화하니
바로확인할수 없는건지 좀이따 전화준다는데
무려 파트장에게 물어보고 왔는데

지원안하는 기능입니다 고갱님~



상담원이 무슨죄가 있겠어라는 생각에
지원안한다니 어쩔수 없죠~ 하고 끊었지만

다시다시 검색해도 가상화를 지원하는데
일단 소비전력상의 문제로 노트북에는 빼놓았고,
bios 업데이트가 안되서 기능을 지원하지 않는다 라고 하는게 낫지 않았을까 싶기도 한디...
머.. 일반 유저들에게는 지원안하는 기능입니다 고갱님~ 하는게 순순히 물러나는 마법의 키워드일듯?

[링크 : http://ark.intel.com/products/27254/Intel-Core2-Duo-Processor-T5600-(2M-Cache-1_83-GHz-667-MHz-FSB)]
[링크 : http://www.cpu-world.com/.../Intel-Core 2 Duo Mobile T5600 LF80537GF0342M (BX80537T5600).html]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

LW20 / LW25 LCD 호환성  (0) 2012.04.07
아.. 우울해 ㅠ.ㅠ  (0) 2012.04.05
지름목록(예정)  (0) 2012.04.03
super talent SSD 8GB IDE vertical type  (0) 2012.03.28
마음을 비우자~  (0) 2012.03.26
Posted by 구차니
프로그램 사용/xen2012. 4. 3. 07:44
cdrom 사용하는건 여전히 미궁... OTL
그냥 ISO로 깔라는 신의 계시인가? -_-

$ sudo virsh -c xen:/// capabilities

$ sudo cat /var/log/xen/xend-debug.log 

[링크: https://bugzilla.redhat.com/show_bug.cgi?id=585460]

[링크 : http://docs.fedoraproject.org/...Creating_guests_with_virt_manager.html]
[링크 : http://www.linuxquestions.org/questions/linux-software-2/how-to-use-physics-cdrom-in-xen-695471/]

---
2012.4.4 추가
혹시나 해서 /etc를 hda로 뒤졌는데 cd롬이 hda로 인식하도록 py 파일들을 작성한듯 하다 -_-
usb cdrom이라서 그런지 /dev/sr0 로 인식을 해서 virt-manager에서 인식을 못하는 걸려나?

[링크 : http://www.option-c.com/xwiki/Xen_CDROM_Support]
 
Posted by 구차니
CPU
G620 부터 가상화 지원하고 (G530은 가상화 지원안함)
G630 부터 DDR3-1333을 지원한다.

M/B
H67이 좋다지만, SATA3나 USB3.0에 목숨걸거 아니니 무난한 가격으로 대충 때려박고
어짜피 트리플 모니터가 불가능 하다면 DVI-D 보다는 HDMI to DVI-D로 변환하는게 이득이니
D-SUB / HDMI 조합으로 고르고, 메모리 슬롯은 별 의미가 없으니 2개던 4개던 하지만
그래도 4개가 좋지 않을까 0.2mg 정도 희망을... OTL
---
2012.4.4 추가
HVGS 모델은 단종수순이라고 한다. 그리고 DGS경우 아이비브릿지 대응이라니 머 가격차이도 없으니 변경!
[링크 : http://blog.danawa.com/prod/?prod_c=1629479...&keyword=H61M-DGS]

RAM
머 누가 머래도 삼성램이 일단은 가장 무난하고 적절하니.. 가상화를 고려하면 풀뱅 채우고 싶지만
돈.. OTL 8기가인데 설마 부족하겠어?

케이스
전에 사용했던 종잇장에 파워가 좀 시끄럽지만 가볍고 쓸만했으니까 머
400W 뻥파워라도 그래픽 카드도 없이 쓰는데 설마 못 버텨주겠어?

HDD
SSD 사고 싶으나.. 아직 가격이 치킨이 안되서 좀더 기다리고
그동안은 예전에 사둔 중고 320GB로 버티기 작전 ㅠ.ㅠ

ODD
USB2.0 외장 DVD 있으니까 머..

이미지

분류

상품명/상품설명

평균가

최저가

수량

합계

CPU

인텔 펜티엄 G840 (샌디브릿지)

85,978

76,000

1

76,000

RAM

삼성전자 DDR3 4G PC3-10600

24,279

22,200

2

44,400

메인보드

ASRock H61M-HVGS (B3) 디앤디컴

55,482

53,900

1

53,900

케이스

2MONS 엘포즈

31,354

29,500

1

29,500

 

부품별 합계 (수량이 여러 개일 경우 전체 합산 금액입니다)

221,372

203,800

 


[링크 : http://blog.danawa.com/prod/?section_m=PC&prod_c=1359190]
[링크 : http://blog.danawa.com/prod/?prod_c=1346806

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

아.. 우울해 ㅠ.ㅠ  (0) 2012.04.05
LW25는 가상화 지원안해!  (0) 2012.04.03
super talent SSD 8GB IDE vertical type  (0) 2012.03.28
마음을 비우자~  (0) 2012.03.26
740g 와 780g 내장 그래픽 성능차이  (1) 2012.03.16
Posted by 구차니
저번주에는 과장님이
오늘은 출장다녀오신 이사님께서 프로젝트가 너무 지연되고 있다면서
노골적으로 야근을 이야기 하시는데 솔찍히 기분이 좋을리는 없지만

  우씨 그냥 빨리 끝내고 때려쳐?
  그냥 때려쳐?

이런생각도 들지만
여자친구가 소개해준 다른 업체라던가
전산 기술직 공무원 이라던가
이런걸 데굴데굴 머리를 굴리면서 생각을 해보니

  아.. 나 또 도망가고 있었구나
  자신감을 잃고는 또 도망가고 있었구나

이런 생각이 들었다.
열심히 일하지도 않고는 다른데를 찾고 있었다니.. 부끄럽기도 하고
왜 열심히 하지 않았을까 하는 후회가 또 다시 든다..




다시 달리자. 

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

마음은 둥실둥실  (0) 2012.04.09
식목일  (0) 2012.04.05
광포화 코딩중  (0) 2012.03.21
개발자가 막판에 후다닥 일이 끝나는 이유?  (0) 2012.03.20
종이비행기를 날리다  (2) 2012.03.15
Posted by 구차니
Linux/Ubuntu2012. 4. 2. 22:51
Ubuntu 11.10 Desktop 64bit 에서 발생하고 있고 AMD 4200+x2 이다.
대충 찾아봐도 Cool'n'Quiet 관련해서 문제라는 이야기가 있는데
내가 그걸 안켜놨던가...?


---
2012.4.3 추가

위의 에러는 ACPI 관련해서 문제가 발생하는 것으로 Cool'n'Quiet를 켜놓으면 발생한다고 한다.

On AMD with Xen, the cpuidle is set to use the halt one (this is b/c the halt
ends up doing a yield hypercall) - look in setup.c - and the hypervisor does
the appropiate halt operation (MWAIT, halt, etc, or schedules another guest on
the CPU). Anyhow, to not have the cpuidle trying to activate, the
"boot_option_idle_override" is set. Therefore, the ACPI _PSS driver
(processor.ko) ends up bailing out, b/c of that parameter. As such the "older"
AMD pstate driver is invoked (powernow-k8), and the older driver attempts to
use ACPI _PSD - but only if in UP mode, or it attempts to use the voltage
tables - which are k8 or earlier. To detect that, it use the MSR (sadly not
CPUID values), which Xen traps and returns 00, which the powernow-k8 driver
interprets as "buggy hardware - can't use". Which is exactly what you are
seeing.

I believe (and sadly I don't have the hardware to check this - but I think I
saw the somebody using it) if you were running on K8 hardware - it ought to
work.

Solution: Have the ACPI processor driver cooperate with Xen. Patches are in the
queue for it (if you are really interested look in oss.oracle.com/kwilk/xen.git
#devel/acpi-cpufreq.v2 - but they are not yet upstream-able material. Actually,
they are quite ugly).

Other solution:
The "easy" option for right now would be to do what Dave suggest until the
upstream patches are ready and reviewed.
---
Just to add, per Konrad's comment above.

This issue also occurs on K8 hardware (Athlon II 4850e) with powernow enabled
in the BIOS (aka Cool'n'quiet).

Disabling Cool'n'quiet removes the messages.

I just performed the standard Desktop install of the F16 Beta, installed Xen,
rebuilt the grub menu, and rebooted to dom0.  Syslog is full of the same
message per this bug.

It would be great to see Dave's solution (see comment 5 above); an interim
kernel-patch solution to this bug - as it currently stands dom0 functionality
is largely unuseable.
 
[링크 : https://bugzilla.redhat.com/show_bug.cgi?id=739159]  
---
2012.4.4 추가
확실히 Cool'n'Quiet를 끄니 에러가 발생하진 않음.


Posted by 구차니