xen 서버 게스트 네트워크 문제

kjyong98의 이미지

안녕하세요.

젠서버 설치 후에 게스트를 생성했는데

게스트에서 인터넷 등 외부로는 통신이 되는데 호스트나 외부에서는 게스트에 통신이 안되고있습니다.

호스트 NIC를 통해서 자동으로 브릿지형태로 게스트에 동일한 대역의 새로운 ip가 할당이 되긴했는데 어디가 문제인걸까요

일단 호스트 ip addr 결과 올려보겠습니다. 호스트에선 랜카드 두개 사용중인데 현재 eth1만 사용중입니다.

1: lo: mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc mq master ovs-system state DOWN qlen 1000
link/ether 38:2c:4a:c8:78:4e brd ff:ff:ff:ff:ff:ff
3: eth1: mtu 1500 qdisc mq master ovs-system state UP qlen 1000
link/ether 38:2c:4a:c8:78:4f brd ff:ff:ff:ff:ff:ff
4: ovs-system: mtu 1500 qdisc noop state DOWN qlen 1
link/ether 2a:df:24:77:79:93 brd ff:ff:ff:ff:ff:ff
5: xenbr1: mtu 1500 qdisc noqueue state UNKNOWN qlen 1
link/ether 38:2c:4a:c8:78:4f brd ff:ff:ff:ff:ff:ff
inet 192.168.0.77/24 brd 192.168.0.255 scope global dynamic xenbr1
valid_lft 6977sec preferred_lft 6977sec
6: xenbr0: mtu 1500 qdisc noqueue state UNKNOWN qlen 1
link/ether 38:2c:4a:c8:78:4e brd ff:ff:ff:ff:ff:ff
19: vif7.0: mtu 1500 qdisc mq master ovs-system state DOWN qlen 32
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
20: tap7.0: mtu 1500 qdisc pfifo_fast master ovs-system state UNKNOWN qlen 1000
link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff

shint의 이미지

- VirtualBox 에서도 비슷한 경우가 있는데요. ㅇ_ㅇ;;
NAT (DHCP로 IP를 할당한다) : 컴퓨터가 IP를 할당해주는 방식으로 공유기와 같습니다. xxx.xxx.xxx.255 마지막 IP대역의 주소로 패킷을 보내면 받습니다.
Host (네트워크 카드의 IP 를 각각 할당한다) : 외부 공유기가 있다면. IP 를 할당하고. 통신이 가능합니다.
Bridge (네트워크 카드를 공유한다) : 네트워크 카드를 공유합니다.

공유기가 있는경우. 보통 Host 가 같은 IP 대역이기 때문에. 양방향 통신이 될겁니다. ㅇ_ㅇ;; 잘못아는걸 수 도 있죠...
일단. 가상 PC 에서. 방화벽 포트가 막혀 있는지. 확인 후. 테스트해보세요.

이중에 하나는 될겁니다. ㅇ_ㅇ;; 외부 공유폴더로 접근하셔도 되구요.
NAT
NAT 네트워크
어댑터에 브리지
내부 네트워크
호스트 전용 어댑터
일반 드라이버

호스트 네트워크'로 하니. 네트워크 공유폴더'로 접속이 \\shint-pc\test 되네요.

//VirtualBox
 IPv4 주소 . . . . . . . . . : 192.168.56.101
 서브넷 마스크 . . . . . . . : 255.255.255.0
 기본 게이트웨이 . . . . . . :

//
이더넷 어댑터 Ethernet 4: //Wi-Fi USB 테더링
 
   연결별 DNS 접미사. . . . :
   IPv4 주소 . . . . . . . . . : 192.168.42.214
   서브넷 마스크 . . . . . . . : 255.255.255.0
   기본 게이트웨이 . . . . . . : 192.168.42.129
 
이더넷 어댑터 VirtualBox Host-Only Network:
 
   연결별 DNS 접미사. . . . :
   IPv4 주소 . . . . . . . . . : 192.168.56.1
   서브넷 마스크 . . . . . . . : 255.255.255.0
   기본 게이트웨이 . . . . . . :
 
이더넷 어댑터 Ethernet 2: //USB 테더링으로 사용중인 가상 랜카드
 
   연결별 DNS 접미사. . . . :
   IPv4 주소 . . . . . . . . . : 192.168.137.1
   서브넷 마스크 . . . . . . . : 255.255.255.0
   기본 게이트웨이 . . . . . . :

//
DHCP issue on XEN virtual machine
https://software.intel.com/en-us/forums/intel-business-client-software-development/topic/298765

Host Citrix XenServer Installation¶
http://docs.cloudstack.apache.org/projects/archived-cloudstack-installation/en/4.11/hypervisor/xenserver.html

Giving Virtual Machines in Xen their own IP Addresses
https://serverfault.com/questions/339688/giving-virtual-machines-in-xen-their-own-ip-addresses

VMware Workstation 11에서 XenServer 6.5와 XenCenter 설치하기 1/2
https://m.blog.naver.com/PostView.nhn?blogId=baljern&logNo=220355777188&proxyReferer=https%3A%2F%2Fwww.google.com%2F

2. #Xen VM template설치#가상컴퓨터 만들기#마이그레이션#네트워크(Router)#HA#Xen AD가입
http://cloud165.tistory.com/m/81

Citrix Xenserver Adding a network interface to a VM
https://www.youtube.com/watch?v=-nEe2MOZgg4

4. 각각 vm들의 설정을 해보자.
http://hsmcloud.blogspot.com/2014/10/4-vm.html

XENCENTER에서 CENTOS 그래픽 모드 설치
http://bashlinux.tistory.com/4

Xen Server의 guest os로 설치
https://joungkyun.gitbooks.io/annyung3-installation-guide/content/chapter3.html

XEN: Configuring the 3 bridge types on a XEN VM Host
https://www.youtube.com/watch?v=ef02qmIsvwg

Citrix Xenserver Adding a network interface to a VM
https://www.youtube.com/watch?v=-nEe2MOZgg4

//
xenserver guest ip
https://www.google.com/search?q=xenserver+guest+ip&source=lnms&sa=X&ved=0ahUKEwir-OiB6-vdAhWxHTQIHYRiBn8Q_AUICSgA&biw=1228&bih=761&dpr=1

SET WINDOWS GUEST VM STATIC IP ADDRESS IN XENSERVER
https://xenserver.org/blog/entry/set-windows-guest-vm-static-ip-address-in-xenserver.html

How to get the ip address of an VM in Xen without logging in?
https://superuser.com/questions/438914/how-to-get-the-ip-address-of-an-vm-in-xen-without-logging-in

Citrix XenServer - Storage - Network Settings
https://docs.bmc.com/docs/ServerAutomation/87/using/creating-and-modifying-bmc-server-automation-jobs/panel-reference-for-jobs-for-virtual-environments/virtual-guest-job-wizard-panels/citrix-xenserver-specific-panels/citrix-xenserver-storage-network-settings

Get xen guest IP address without Login
https://tejparkash.wordpress.com/2010/01/19/get-xen-guest-ip-address-without-login/

Xen guest VM with two static IP address
https://stackoverflow.com/questions/39462997/xen-guest-vm-with-two-static-ip-address

Using XenServer in a routed IP network
https://jansipke.nl/using-xenserver-in-a-routed-ip-network/

How to get the IP address of a VM using XenServer 6.2 PowerShell API/SDK
https://www.reddit.com/r/Citrix/comments/2fcubb/how_to_get_the_ip_address_of_a_vm_using_xenserver/

Xen FAQ Networking
https://wiki.xenproject.org/wiki/Xen_FAQ_Networking

XenServer VM IP management
https://xen-orchestra.com/blog/xenserver-vm-ip-management/

IP Address of XenServer VM’s Using the Command Line
https://dopensource.com/2016/11/05/ip-address-of-xenserver-vms-using-the-command-line/

Managing XenServer with a XenCenter and Xen Orchestra Web Interfaces – Part – 7
https://www.tecmint.com/manage-xenserver-with-xencenter-and-xen-orchestra/

VMWare Workstationdp XenServer 설치하기
https://m.blog.naver.com/PostView.nhn?blogId=bokmail83&logNo=220577714114&proxyReferer=https%3A%2F%2Fwww.google.com%2F

Deploy VA on XenServer
http://rx-hdx.ncomputing.com/kb/Deploy_VA_on_XenServer

XenServer 6.5 VM Join Domain Issue
https://discussions.citrix.com/topic/379285-xenserver-65-vm-join-domain-issue/

----------------------------------------------------------------------------
젊음'은 모든것을 가능하게 만든다.

매일 1억명이 사용하는 프로그램을 함께 만들어보고 싶습니다.
정규 근로 시간을 지키는. 야근 없는 회사와 거래합니다.

각 분야별. 좋은 책'이나 사이트' 블로그' 링크 소개 받습니다. shintx@naver.com

kjyong98의 이미지

답변 감사합니다.

말씀해주신데로 VM의 방화벽 문제였습니다. VM의 OS 가 윈도우 서버였는데

윈도우 서버는 기본적으로 ping 패킷을 막아두었는지

해당 VM으로 ping이 안나가서 제가 외부통신이 안되는것으로 착각했었습니다...

다른 애플리케이션으로 서버포트를 열어서 테스트를해보니 통신이 잘되더군요.

그리고 Xen 호스트에서 VM으로 통신이 안됬던건 보안상 막혀있기 때문이라고 합니다.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.