WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] XenClient:How to install VM

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] XenClient:How to install VM
From: "Kobayashi Takanori" <kb-taka@xxxxxxxxxx>
Date: Tue, 2 Jun 2009 21:22:21 +0900
Delivery-date: Tue, 02 Jun 2009 05:23:37 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello
I am trying to boot/install VM on XenClient.
I would like to learn the way to install VM.

Please teach the example of the operation and config file.
(Especially, configuration file of method of displaying screen.)

thanks.


=========================================
[My Executed History]

(1) I made a config file for VM(Windows XP:below).
(2) I executed the following commands.
   # xenvm winxp.conf

----------------<winxp.conf>---------------
uuid = 00000000-0000-0000-0000-000000000002
hvm = true
memory = 512
disk = /root/xp.img:file:hda:w:disk
disk = /dev/sr0:phy:hdd:r:cdrom
boot = dc
pae = false
acpi = false
apic = false
-------------------------------------------
(I referred to the following.
http://xenbits.xensource.com/gitweb?p=xenclient/toolstack.git;a=blob_plain;f=xenvm/xenvm.readme;hb=HEAD
)

(3)After that, I heard the sound that CD-ROM drive is running.
  It seemed that a VM had started.
  And, many processes on XenClient is below.
  But I was not able to see the screen of VM.

-------------------------------------------
ps result:
- - - - -
1362 root     xenvm winxp.conf
1363 root     xenvm winxp.conf
1364 root     xenvm winxp.conf
1396 root /usr/lib/xen/bin/qemu-dm -d 3 -m 512 -boot dc -serial pty -vcpus 1 -
vncunused -k en-us
1397 root     xenvm winxp.conf
1398 root     xenvm winxp.conf
1400 root /usr/lib/xen/bin/qemu-dm -d 3 -m 512 -boot dc -serial pty -vcpus 1 -
vncunused -k en-us
1401 root /usr/lib/xen/bin/qemu-dm -d 3 -m 512 -boot dc -serial pty -vcpus 1 -
vncunused -k en-us
1402 root     xenvm winxp.conf
- - - - -
-------------------------------------------

# netstat -tan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 127.0.0.1:5900          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp 0 268 xx.xx.xx.xx:22 xx.xx.xx.xx:2644 ESTABLISHED tcp 0 0 xx.xx.xx.xx:22 xx.xx.xx.xx:2645 ESTABLISHED


-------------------------------------------
# /opt/xensource/libexec/xenstore-ls
local = ""
domain = ""
 0 = ""
  device = ""
   suspend = ""
    event-channel = "25"
  backend = ""
   vbd = ""
    12 = ""
     5696 = ""
      frontend = "/local/domain/12/device/vbd/5696"
      online = "1"
      params = "/dev/sr0"
      state = "2"
      dev = "hdd"
      physical-device = "b:0"
      removable = "0"
      mode = "r"
      frontend-id = "12"
      type = "phy"
     768 = ""
      frontend = "/local/domain/12/device/vbd/768"
      online = "1"
      params = "/root/xp.img"
      state = "2"
      dev = "hda"
      removable = "0"
      mode = "w"
      frontend-id = "12"
      type = "file"
   tap = ""
  device-model = ""
   2 = ""
    state = "running"
   3 = ""
    state = "running"
   4 = ""
    state = "running"
   7 = ""
    state = "running"
   8 = ""
    state = "running"
   11 = ""
    state = "running"
   12 = ""
    state = "running"
 12 = ""
  vm = "/vm/00000000-0000-0000-0000-000000000002"
  vss = "/vss/00000000-0000-0000-0000-000000000002"
  name = "Domain-12"
  cpu = ""
   0 = ""
    availability = "online"
  memory = ""
   static-max = "524288"
   target = "524288"
  device = ""
   vbd = ""
    5696 = ""
     backend = "/local/domain/0/backend/vbd/12/5696"
     state = "1"
     backend-id = "0"
     device-type = "cdrom"
     virtual-device = "5696"
    768 = ""
     backend = "/local/domain/0/backend/vbd/12/768"
     state = "1"
     backend-id = "0"
     device-type = "disk"
     virtual-device = "768"
  error = ""
  drivers = ""
  control = ""
   platform-feature-multiprocessor-suspend = "1"
  attr = ""
  data = ""
  messages = ""
  domid = "12"
  store = ""
   port = "2"
   ring-ref = "131069"
  qemu-pid = "2082"
  console = ""
   vnc-port = "5900"
   tty = "/dev/pts/2"
  serial = ""
   0 = ""
    tty = "/dev/pts/2"
  device-misc = ""
   dm-ready = "1"
pm = ""
ac_adapter = "1"
lid_state = "1"
vm = ""
00000000-0000-0000-0000-000000000002 = ""
 uuid = "00000000-0000-0000-0000-000000000002"
 name = "Domain-12"
 rtc = ""
  timeoffset = "0"
vss = ""
00000000-0000-0000-0000-000000000002 = ""
xapi = ""
12 = ""
 hotplug = ""
  vbd = ""
   5696 = ""
    hotplug = "online"
   768 = ""
    hotplug = "online"
#
-----------------------------------------------------

(4) It seems port 5900 is open. But Could not access.
-------------------------------------------
<from localhost>
# telnet localhost 5900
RFB 003.008
^C
Console escape. Commands are:

l      go to line mode
c      go to character mode
z      suspend telnet
e      exit telnet
#

<from vncclient on other pc>
ULTRA VNCviewer can't access to xx.xx.xx.xx::5900
-------------------------------------------

(5) If add "VNC=1" to config file.
  a. qemu process don't run.
  b. port 5900 is not open.
-------------------------------------------
ps result:
- - - - -
2375 root     xenvm winxp.conf
2376 root     xenvm winxp.conf
2377 root     xenvm winxp.conf
2416 root     xenvm winxp.conf

- - - - -
-------------------------------------------
# netstat -tan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp 0 268 xx.xx.xx.xx:22 xx.xx.xx.xx:2644 ESTABLISHED tcp 0 0 xx.xx.xx.xx:22 xx.xx.xx.xx:2645 ESTABLISHED

-------------------------------------------
# xenstore-ls
local = ""
domain = ""
 0 = ""
  device = ""
   suspend = ""
    event-channel = "25"
  backend = ""
   vbd = ""
    16 = ""
     5696 = ""
      frontend = "/local/domain/16/device/vbd/5696"
      online = "1"
      params = "/dev/sr0"
      state = "2"
      dev = "hdd"
      physical-device = "b:0"
      removable = "0"
      mode = "r"
      frontend-id = "16"
      type = "phy"
     768 = ""
      frontend = "/local/domain/16/device/vbd/768"
      online = "1"
      params = "/root/xp.img"
      state = "2"
      dev = "hda"
      removable = "0"
      mode = "w"
      frontend-id = "16"
      type = "file"
   tap = ""
  device-model = ""
   2 = ""
    state = "running"
   3 = ""
    state = "running"
   4 = ""
    state = "running"
   7 = ""
    state = "running"
   8 = ""
    state = "running"
   11 = ""
    state = "running"
   12 = ""
    state = "running"
   13 = ""
    state = "running"
   14 = ""
    state = "running"
   15 = ""
    state = "running"
 16 = ""
  vm = "/vm/00000000-0000-0000-0000-000000000002"
  vss = "/vss/00000000-0000-0000-0000-000000000002"
  name = "Domain-16"
  cpu = ""
   0 = ""
    availability = "online"
  memory = ""
   static-max = "524288"
   target = "524288"
  device = ""
   vbd = ""
    5696 = ""
     backend = "/local/domain/0/backend/vbd/16/5696"
     state = "1"
     backend-id = "0"
     device-type = "cdrom"
     virtual-device = "5696"
    768 = ""
     backend = "/local/domain/0/backend/vbd/16/768"
     state = "1"
     backend-id = "0"
     device-type = "disk"
     virtual-device = "768"
  error = ""
  drivers = ""
  control = ""
   platform-feature-multiprocessor-suspend = "1"
  attr = ""
  data = ""
  messages = ""
  domid = "16"
  store = ""
   port = "2"
   ring-ref = "131069"
  qemu-pid = "2409"
pm = ""
ac_adapter = "1"
lid_state = "1"
vm = ""
00000000-0000-0000-0000-000000000002 = ""
 uuid = "00000000-0000-0000-0000-000000000002"
 name = "Domain-16"
 rtc = ""
  timeoffset = "0"
vss = ""
00000000-0000-0000-0000-000000000002 = ""
xapi = ""
16 = ""
 hotplug = ""
  vbd = ""
   5696 = ""
    hotplug = "online"
   768 = ""
    hotplug = "online"
#
-------------------------------------------


(PC:Dell Optiplex 755:2.66GHz,4GB memory,
Getting Source Date: 2009/05/21)

----
Taka<kb-taka@xxxxxxxxxx>


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>