Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: balloon manipulation within a domU?



On Thu, Jul 26, 2012 at 11:12:25AM +0100, Cherry G. Mathew wrote:
> On 24 July 2012 07:33, Aaron J. Grier <agrier%poofygoof.com@localhost> wrote:
> > manipulating a NetBSD domU's memory seems to work fine with "xl
> > mem-set", but trying to manipulate this within the domU with "sysctl
> > -w machdep.xen.balloon.target=XXXX" yields "error 13, couldn't write
> > xenbus target node".
> 
> Could you post what
> # xenstore-ls
> 
> says from the dom0 ?
> There should be an entry for memory/target

there is such an entry, and I can change the target from the dom0 side.
I've attached the full output.

> > is there something I need to enable in my xen configuration to allow
> > a domU to do its own balloon requests?

the problem seems to be that the domU cannot write its own memory /
target entry.

thanks for looking at this.  hopefully it's something simple.

-- 
  Aaron J. Grier | "Not your ordinary poofy goof." | 
agrier%poofygoof.com@localhost
tool = ""
 xenstored = ""
local = ""
 pool = ""
  0 = ""
   other_config = ""
   description = "Pool-0"
   uuid = "8e61052c-5226-deb1-5af3-7f6a04542768"
   name = "Pool-0"
 domain = ""
  0 = ""
   vm = "/vm/00000000-0000-0000-0000-000000000000"
   device = ""
   control = ""
    platform-feature-multiprocessor-suspend = "1"
   error = ""
   memory = ""
    target = "262144"
   guest = ""
   hvmpv = ""
   data = ""
   description = ""
   console = ""
    limit = "1048576"
    type = "xenconsoled"
   domid = "0"
   cpu = ""
    0 = ""
     availability = "online"
   name = "Domain-0"
   backend = ""
    vbd = ""
     1 = ""
     2 = ""
     3 = ""
     4 = ""
     5 = ""
     6 = ""
     7 = ""
     8 = ""
     9 = ""
     10 = ""
     11 = ""
     12 = ""
     14 = ""
     17 = ""
     18 = ""
     19 = ""
     20 = ""
      769 = ""
       frontend = "/local/domain/20/device/vbd/769"
       physical-device = "64"
       params = "/dev/wd4a"
       frontend-id = "20"
       online = "1"
       removable = "0"
       bootable = "1"
       state = "4"
       dev = "hda1"
       type = "phy"
       mode = "w"
       hotplug-status = "connected"
       sectors = "83886080"
       info = "0"
       sector-size = "512"
       feature-flush-cache = "1"
      770 = ""
       frontend = "/local/domain/20/device/vbd/770"
       physical-device = "65"
       params = "/dev/wd4b"
       frontend-id = "20"
       online = "1"
       removable = "0"
       bootable = "1"
       state = "4"
       dev = "hda2"
       type = "phy"
       mode = "w"
       hotplug-status = "connected"
       sectors = "4194304"
       info = "0"
       sector-size = "512"
       feature-flush-cache = "1"
      771 = ""
       frontend = "/local/domain/20/device/vbd/771"
       physical-device = "87"
       params = "/dev/wd5h"
       frontend-id = "20"
       online = "1"
       removable = "0"
       bootable = "1"
       state = "4"
       dev = "hda3"
       type = "phy"
       mode = "w"
       hotplug-status = "connected"
       sectors = "348318384"
       info = "0"
       sector-size = "512"
       feature-flush-cache = "1"
     21 = ""
     22 = ""
      769 = ""
       frontend = "/local/domain/22/device/vbd/769"
       physical-device = "80"
       params = "/dev/wd5a"
       frontend-id = "22"
       online = "1"
       removable = "0"
       bootable = "1"
       state = "4"
       dev = "hda1"
       type = "phy"
       mode = "w"
       hotplug-status = "connected"
       sectors = "16777216"
       info = "0"
       sector-size = "512"
       feature-flush-cache = "1"
      770 = ""
       frontend = "/local/domain/22/device/vbd/770"
       physical-device = "81"
       params = "/dev/wd5b"
       frontend-id = "22"
       online = "1"
       removable = "0"
       bootable = "1"
       state = "4"
       dev = "hda2"
       type = "phy"
       mode = "w"
       hotplug-status = "connected"
       sectors = "16777216"
       info = "0"
       sector-size = "512"
       feature-flush-cache = "1"
      771 = ""
       frontend = "/local/domain/22/device/vbd/771"
       physical-device = "84"
       params = "/dev/wd5e"
       frontend-id = "22"
       online = "1"
       removable = "0"
       bootable = "1"
       state = "4"
       dev = "hda3"
       type = "phy"
       mode = "w"
       hotplug-status = "connected"
       sectors = "16777216"
       info = "0"
       sector-size = "512"
       feature-flush-cache = "1"
      772 = ""
       frontend = "/local/domain/22/device/vbd/772"
       physical-device = "85"
       params = "/dev/wd5f"
       frontend-id = "22"
       online = "1"
       removable = "0"
       bootable = "1"
       state = "4"
       dev = "hda4"
       type = "phy"
       mode = "w"
       hotplug-status = "connected"
       sectors = "16777216"
       info = "0"
       sector-size = "512"
       feature-flush-cache = "1"
      773 = ""
       frontend = "/local/domain/22/device/vbd/773"
       physical-device = "86"
       params = "/dev/wd5g"
       frontend-id = "22"
       online = "1"
       removable = "0"
       bootable = "1"
       state = "4"
       dev = "hda5"
       type = "phy"
       mode = "w"
       hotplug-status = "connected"
       sectors = "209715200"
       info = "0"
       sector-size = "512"
       feature-flush-cache = "1"
     23 = ""
     25 = ""
      768 = ""
       frontend = "/local/domain/25/device/vbd/768"
       physical-device = "68"
       params = "/dev/wd4e"
       frontend-id = "25"
       online = "1"
       removable = "0"
       bootable = "1"
       state = "4"
       dev = "hda"
       type = "phy"
       mode = "w"
       hotplug-status = "connected"
       sectors = "68221104"
       info = "0"
       sector-size = "512"
       feature-flush-cache = "1"
    vif = ""
     1 = ""
     2 = ""
     3 = ""
     4 = ""
     5 = ""
     6 = ""
     7 = ""
     8 = ""
     9 = ""
     10 = ""
     11 = ""
     12 = ""
     14 = ""
     17 = ""
     18 = ""
     19 = ""
     20 = ""
      0 = ""
       frontend = "/local/domain/20/device/vif/0"
       frontend-id = "20"
       online = "1"
       state = "4"
       script = "/usr/pkg/etc/xen/scripts/vif-bridge"
       mac = "00:16:3e:6a:00:1d"
       bridge = "bridge0"
       handle = "0"
       vifname = "xvif20i0"
       feature-rx-copy = "1"
       feature-rx-flip = "1"
       hotplug-status = "connected"
     21 = ""
     22 = ""
      0 = ""
       frontend = "/local/domain/22/device/vif/0"
       frontend-id = "22"
       online = "1"
       state = "4"
       script = "/usr/pkg/etc/xen/scripts/vif-bridge"
       mac = "00:16:3e:6a:00:1e"
       bridge = "bridge0"
       handle = "0"
       vifname = "xvif22i0"
       feature-rx-copy = "1"
       feature-rx-flip = "1"
       hotplug-status = "connected"
     23 = ""
     25 = ""
      0 = ""
       frontend = "/local/domain/25/device/vif/0"
       frontend-id = "25"
       online = "1"
       state = "2"
       script = "/usr/pkg/etc/xen/scripts/vif-bridge"
       mac = "00:16:3e:6f:5d:dc"
       bridge = "bridge0"
       handle = "0"
       vifname = "xvif25i0"
       feature-rx-copy = "1"
       feature-rx-flip = "1"
       hotplug-status = "connected"
    console = ""
     1 = ""
     2 = ""
     3 = ""
     4 = ""
     5 = ""
     6 = ""
     7 = ""
     8 = ""
     9 = ""
     10 = ""
     11 = ""
     12 = ""
     14 = ""
     17 = ""
     18 = ""
     19 = ""
     20 = ""
      0 = ""
       domain = "milo"
       protocol = "vt100"
       uuid = "46bf08fe-62e4-1efa-b1a5-e73bdbefdfd8"
       frontend = "/local/domain/20/device/console/0"
       state = "1"
       location = "2"
       online = "1"
       frontend-id = "20"
     21 = ""
     22 = ""
      0 = ""
       domain = "theano"
       protocol = "vt100"
       uuid = "c8d05475-3b80-3099-f80f-b471390e9759"
       frontend = "/local/domain/22/device/console/0"
       state = "1"
       location = "2"
       online = "1"
       frontend-id = "22"
     23 = ""
     25 = ""
      0 = ""
       frontend = "/local/domain/25/console"
       frontend-id = "25"
       online = "1"
       state = "1"
       domain = "damo"
       protocol = "vt100"
    qdisk = ""
     23 = ""
     25 = ""
      5632 = ""
       frontend = "/local/domain/25/device/vbd/5632"
       params = "aio:/usr/pkg/lib/xen/images/xp_pro_sp1.iso"
       frontend-id = "25"
       online = "1"
       removable = "1"
       bootable = "1"
       state = "1"
       dev = "hdc"
       type = "tap"
       mode = "r"
   device-model = ""
    10 = ""
     disable_pf = "0"
    25 = ""
     disable_pf = "0"
     state = "running"
  20 = ""
   vm = "/vm/34e8738f-6ad1-e111-8f78-20cf30f44958"
   name = "milo"
   control = ""
    platform-feature-multiprocessor-suspend = "1"
   device = ""
    suspend = ""
     event-channel = ""
    vbd = ""
     769 = ""
      backend = "/local/domain/0/backend/vbd/20/769"
      backend-id = "0"
      state = "4"
      virtual-device = "769"
      device-type = "disk"
      ring-ref = "511"
      event-channel = "8"
      protocol = "x86_64-abi"
     770 = ""
      backend = "/local/domain/0/backend/vbd/20/770"
      backend-id = "0"
      state = "4"
      virtual-device = "770"
      device-type = "disk"
      ring-ref = "510"
      event-channel = "9"
      protocol = "x86_64-abi"
     771 = ""
      backend = "/local/domain/0/backend/vbd/20/771"
      backend-id = "0"
      state = "4"
      virtual-device = "771"
      device-type = "disk"
      ring-ref = "509"
      event-channel = "10"
      protocol = "x86_64-abi"
    vif = ""
     0 = ""
      backend = "/local/domain/0/backend/vif/20/0"
      backend-id = "0"
      state = "4"
      handle = "0"
      mac = "00:16:3e:6a:00:1d"
      vifname = "xennet0"
      tx-ring-ref = "508"
      rx-ring-ref = "507"
      request-rx-copy = "1"
      feature-rx-notify = "1"
      event-channel = "11"
    console = ""
     0 = ""
      state = "1"
      backend-id = "0"
      backend = "/local/domain/0/backend/console/20/0"
   data = ""
   cpu = ""
    0 = ""
     availability = "online"
    1 = ""
     availability = "online"
   memory = ""
    static-max = "2621440"
    target = "2621440"
    videoram = "0"
   error = ""
   drivers = ""
   attr = ""
   messages = ""
   domid = "20"
   store = ""
    port = "1"
    ring-ref = "1348254"
   console = ""
    backend = "/local/domain/0/backend/console/20/0"
    backend-id = "0"
    limit = "1048576"
    type = "xenconsoled"
    output = "pty"
    port = "2"
    ring-ref = "1348253"
    tty = "/dev/pts/2"
   device-misc = ""
    console = ""
     nextDeviceID = "1"
  22 = ""
   vm = "/vm/2855e49d-9fd7-e111-8f78-20cf30f44958"
   name = "theano"
   control = ""
    platform-feature-multiprocessor-suspend = "1"
   device = ""
    suspend = ""
     event-channel = ""
    vbd = ""
     769 = ""
      backend = "/local/domain/0/backend/vbd/22/769"
      backend-id = "0"
      state = "4"
      virtual-device = "769"
      device-type = "disk"
      ring-ref = "511"
      event-channel = "8"
      protocol = "x86_32-abi"
     770 = ""
      backend = "/local/domain/0/backend/vbd/22/770"
      backend-id = "0"
      state = "4"
      virtual-device = "770"
      device-type = "disk"
      ring-ref = "510"
      event-channel = "9"
      protocol = "x86_32-abi"
     771 = ""
      backend = "/local/domain/0/backend/vbd/22/771"
      backend-id = "0"
      state = "4"
      virtual-device = "771"
      device-type = "disk"
      ring-ref = "509"
      event-channel = "10"
      protocol = "x86_32-abi"
     772 = ""
      backend = "/local/domain/0/backend/vbd/22/772"
      backend-id = "0"
      state = "4"
      virtual-device = "772"
      device-type = "disk"
      ring-ref = "508"
      event-channel = "11"
      protocol = "x86_32-abi"
     773 = ""
      backend = "/local/domain/0/backend/vbd/22/773"
      backend-id = "0"
      state = "4"
      virtual-device = "773"
      device-type = "disk"
      ring-ref = "507"
      event-channel = "12"
      protocol = "x86_32-abi"
    vif = ""
     0 = ""
      backend = "/local/domain/0/backend/vif/22/0"
      backend-id = "0"
      state = "4"
      handle = "0"
      mac = "00:16:3e:6a:00:1e"
      vifname = "xennet0"
      tx-ring-ref = "506"
      rx-ring-ref = "505"
      request-rx-copy = "1"
      feature-rx-notify = "1"
      event-channel = "13"
    console = ""
     0 = ""
      state = "1"
      backend-id = "0"
      backend = "/local/domain/0/backend/console/22/0"
   data = ""
   cpu = ""
    0 = ""
     availability = "online"
    1 = ""
     availability = "online"
   memory = ""
    static-max = "2621440"
    target = "2621440"
    videoram = "0"
   error = ""
   drivers = ""
   attr = ""
   messages = ""
   domid = "22"
   store = ""
    port = "1"
    ring-ref = "2138063"
   console = ""
    backend = "/local/domain/0/backend/console/22/0"
    backend-id = "0"
    limit = "1048576"
    type = "xenconsoled"
    output = "pty"
    port = "2"
    ring-ref = "2138062"
    tty = "/dev/pts/6"
   device-misc = ""
    console = ""
     nextDeviceID = "1"
  25 = ""
   vm = "/vm/3649274a-aad7-e111-8f78-20cf30f44958"
   name = "damo"
   control = ""
    shutdown = ""
    platform-feature-multiprocessor-suspend = "1"
   device = ""
    suspend = ""
     event-channel = ""
    vbd = ""
     768 = ""
      backend = "/local/domain/0/backend/vbd/25/768"
      backend-id = "0"
      state = "1"
      virtual-device = "768"
      device-type = "disk"
     5632 = ""
      backend = "/local/domain/0/backend/qdisk/25/5632"
      backend-id = "0"
      state = "1"
      virtual-device = "5632"
      device-type = "cdrom"
    vif = ""
     0 = ""
      backend = "/local/domain/0/backend/vif/25/0"
      backend-id = "0"
      state = "1"
      handle = "0"
      mac = "00:16:3e:6f:5d:dc"
   data = ""
   cpu = ""
    0 = ""
     availability = "online"
    1 = ""
     availability = "online"
   memory = ""
    static-max = "2097152"
    target = "2088960"
    videoram = "8192"
   error = ""
   drivers = ""
   attr = ""
   messages = ""
   domid = "25"
   store = ""
    port = "3"
    ring-ref = "1044476"
   console = ""
    backend = "/local/domain/0/backend/console/25/0"
    backend-id = "0"
    limit = "1048576"
    type = "xenconsoled"
    output = "pty"
    port = "4"
    ring-ref = "1044479"
    tty = "/dev/pts/7"
    vnc-port = "5900"
    vnc-listen = "127.0.0.1"
   image = ""
    device-model-pid = "2012"
vm = ""
 00000000-0000-0000-0000-000000000000 = ""
  on_xend_stop = "ignore"
  pool_name = "Pool-0"
  shadow_memory = "0"
  uuid = "00000000-0000-0000-0000-000000000000"
  on_reboot = "restart"
  image = "(linux (kernel '') (superpages 0) (nomigrate 0) (tsc_mode 0))"
   ostype = "linux"
   kernel = ""
   cmdline = ""
   ramdisk = ""
  on_poweroff = "destroy"
  bootloader_args = ""
  on_xend_start = "ignore"
  on_crash = "restart"
  xend = ""
   restart_count = "0"
  vcpus = "1"
  vcpu_avail = "1"
  bootloader = ""
  name = "Domain-0"
 34e8738f-6ad1-e111-8f78-20cf30f44958 = ""
  uuid = "34e8738f-6ad1-e111-8f78-20cf30f44958"
  name = "milo"
  pool_name = "Pool-0"
  image = ""
   ostype = "linux"
   kernel = ""
   cmdline = ""
   ramdisk = ""
  start_time = "1342679141.49"
  memory = "2560"
  device = ""
   console = ""
    0 = ""
     frontend = "/local/domain/20/device/console/0"
     frontend-id = "20"
     backend-id = "0"
     backend = "/local/domain/0/backend/console/20/0"
 2855e49d-9fd7-e111-8f78-20cf30f44958 = ""
  uuid = "2855e49d-9fd7-e111-8f78-20cf30f44958"
  name = "theano"
  pool_name = "Pool-0"
  image = ""
   ostype = "linux"
   kernel = ""
   cmdline = ""
   ramdisk = ""
  start_time = "1343361636.58"
  device = ""
   console = ""
    0 = ""
     frontend = "/local/domain/22/device/console/0"
     frontend-id = "22"
     backend-id = "0"
     backend = "/local/domain/0/backend/console/22/0"
 3649274a-aad7-e111-8f78-20cf30f44958 = ""
  uuid = "3649274a-aad7-e111-8f78-20cf30f44958"
  name = "damo"
  pool_name = "Pool-0"
  rtc = ""
   timeoffset = ""
  image = ""
   ostype = "linux"
   kernel = ""
   cmdline = ""
   ramdisk = ""
  start_time = "1343366433.81"


Home | Main Index | Thread Index | Old Index